MM FD

  • 851
  • 114
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
есть
JavaScript:
function DEG2RAD(degree) {
    return (Math.PI / 180) * degree;
}

function ANGLE2VEC(angle) {
    pitch = angle[0];
    yaw = angle[1];
    return [Math.cos(DEG2RAD(pitch)) * Math.cos(DEG2RAD(yaw)), Math.cos(DEG2RAD(pitch)) * Math.sin(DEG2RAD(yaw)), -Math.sin(DEG2RAD(pitch))];
}

function getWallDistance(entity, angle) {
    vector = ANGLE2VEC(angle);
    origin = Entity.GetRenderOrigin(entity);
    origin[2] += Entity.GetProp(entity, "CBasePlayer", "m_vecViewOffset[2]")[0];
    end = [origin[0] + vector[0] * 8192, origin[1] + vector[1] * 8192, origin[2] + vector[2] * 8192];
    result = Trace.Line(entity, origin, end);
    if (result[1] != 1) {
        wall = [origin[0] + vector[0] * result[1] * 8192, origin[1] + vector[1] * result[1] * 8192, origin[2] + vector[2] * result[1] * 8192];
        distance = Math.sqrt(Math.pow(origin[0] - wall[0], 2) + Math.pow(origin[1] - wall[1], 2) + Math.pow(origin[2] - wall[2], 2));
        return distance;
    } else {
        return 0;
    }
}


function fastDuckUpdate() {
    var buttons = UserCMD.GetButtons();
    var localPlayer=Entity.GetLocalPlayer();
    var maxLevel=31;
    valve = Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS");
    if (valve) {
        if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"])) {
            enableFakeLag = false;
            duckAmount = Entity.GetProp(localPlayer, "CCSPlayer", "m_flDuckAmount");
            UserCMD.Choke();
            if (duckAmount <= maxLevel / 100) {
                crouched = true
            };
            if (duckAmount >= 0.8) {
                crouched = false;
                UserCMD.Send()
            };
            if (crouched) {
                UserCMD.SetButtons(buttons | (1 << 2));
            } else {
                UserCMD.SetButtons(buttons | (1 << 22));
            }
            eyePos = Entity.GetEyePosition(localPlayer);
            origin = Entity.GetRenderOrigin(localPlayer);
            eyePos[2] = origin[2] + 46 + (18 - (maxLevel + 1) / 100 * 18);
            cameraPos=Local.GetCameraPosition();
            if(!Input.IsKeyPressed(0x11)){
                if(UI.GetValue(["Misc.","Keys","General","Key assignment","Thirdperson"])==1){
                    angles=Local.GetViewAngles();
                    angles[0]=angles[0]*-1;
                    if(angles[1]>0){
                        angles[1]=angles[1]-180;
                    }else{
                        angles[1]=180+angles[1];
                    }
                    back = getWallDistance(localPlayer, angles);
                    angles=ANGLE2VEC(angles);
                    thirdDistance=UI.GetValue(["Misc.","View","General","Thirdperson Distance"]);
                    if(back<thirdDistance){
                        thirdDistance=back-10;
                    }
                    Local.SetCameraPosition([eyePos[0]+angles[0]*thirdDistance,eyePos[1]+angles[1]*thirdDistance,eyePos[2]+angles[2]*thirdDistance]);
                }else{
                    Local.SetCameraPosition([eyePos[0],eyePos[1],eyePos[2]]);
                }
            }
        } else {
            UserCMD.SetButtons(buttons | (1 << 22));
            enableFakeLag = true;
        }
    }
}

Cheat.RegisterCallback("CreateMove", "fastDuckUpdate")

Просто забиндить обычный фд на кнопку и он в напах работать будет
 
  • 386
  • 24
есть
JavaScript:
function DEG2RAD(degree) {
    return (Math.PI / 180) * degree;
}

function ANGLE2VEC(angle) {
    pitch = angle[0];
    yaw = angle[1];
    return [Math.cos(DEG2RAD(pitch)) * Math.cos(DEG2RAD(yaw)), Math.cos(DEG2RAD(pitch)) * Math.sin(DEG2RAD(yaw)), -Math.sin(DEG2RAD(pitch))];
}

function getWallDistance(entity, angle) {
    vector = ANGLE2VEC(angle);
    origin = Entity.GetRenderOrigin(entity);
    origin[2] += Entity.GetProp(entity, "CBasePlayer", "m_vecViewOffset[2]")[0];
    end = [origin[0] + vector[0] * 8192, origin[1] + vector[1] * 8192, origin[2] + vector[2] * 8192];
    result = Trace.Line(entity, origin, end);
    if (result[1] != 1) {
        wall = [origin[0] + vector[0] * result[1] * 8192, origin[1] + vector[1] * result[1] * 8192, origin[2] + vector[2] * result[1] * 8192];
        distance = Math.sqrt(Math.pow(origin[0] - wall[0], 2) + Math.pow(origin[1] - wall[1], 2) + Math.pow(origin[2] - wall[2], 2));
        return distance;
    } else {
        return 0;
    }
}


function fastDuckUpdate() {
    var buttons = UserCMD.GetButtons();
    var localPlayer=Entity.GetLocalPlayer();
    var maxLevel=31;
    valve = Entity.GetProp(Entity.GetGameRulesProxy(), "CCSGameRulesProxy", "m_bIsValveDS");
    if (valve) {
        if (UI.GetValue(["Rage", "Anti Aim", "General", "Key assignment", "Fake duck"])) {
            enableFakeLag = false;
            duckAmount = Entity.GetProp(localPlayer, "CCSPlayer", "m_flDuckAmount");
            UserCMD.Choke();
            if (duckAmount <= maxLevel / 100) {
                crouched = true
            };
            if (duckAmount >= 0.8) {
                crouched = false;
                UserCMD.Send()
            };
            if (crouched) {
                UserCMD.SetButtons(buttons | (1 << 2));
            } else {
                UserCMD.SetButtons(buttons | (1 << 22));
            }
            eyePos = Entity.GetEyePosition(localPlayer);
            origin = Entity.GetRenderOrigin(localPlayer);
            eyePos[2] = origin[2] + 46 + (18 - (maxLevel + 1) / 100 * 18);
            cameraPos=Local.GetCameraPosition();
            if(!Input.IsKeyPressed(0x11)){
                if(UI.GetValue(["Misc.","Keys","General","Key assignment","Thirdperson"])==1){
                    angles=Local.GetViewAngles();
                    angles[0]=angles[0]*-1;
                    if(angles[1]>0){
                        angles[1]=angles[1]-180;
                    }else{
                        angles[1]=180+angles[1];
                    }
                    back = getWallDistance(localPlayer, angles);
                    angles=ANGLE2VEC(angles);
                    thirdDistance=UI.GetValue(["Misc.","View","General","Thirdperson Distance"]);
                    if(back<thirdDistance){
                        thirdDistance=back-10;
                    }
                    Local.SetCameraPosition([eyePos[0]+angles[0]*thirdDistance,eyePos[1]+angles[1]*thirdDistance,eyePos[2]+angles[2]*thirdDistance]);
                }else{
                    Local.SetCameraPosition([eyePos[0],eyePos[1],eyePos[2]]);
                }
            }
        } else {
            UserCMD.SetButtons(buttons | (1 << 22));
            enableFakeLag = true;
        }
    }
}

Cheat.RegisterCallback("CreateMove", "fastDuckUpdate")

Просто забиндить обычный фд на кнопку и он в напах работать будет
а на кряк в3 есть?
 
Сверху Снизу