Вопрос Кто может переписать js?

Начинающий
Статус
Оффлайн
Регистрация
1 Ноя 2021
Сообщения
52
Реакции[?]
14
Поинты[?]
5K
Товары в продаже
1
Нужно переписать js с onetap alpha на stable версию
Вот сурс:
Код:
//Menu Stuff
var states = ["Global", "Stand", "Walk", "Move", "Duck", "Air", "Auto dir", "Manual"];
var pitches = ["Off", "Down", "Emotion", "Zero", "Up", "Fake up", "Fake down"];
const aa = UI.AddMultiDropdown(["Rage", "Anti Aim", "General"], "Defensive State", states);
const pitchvalues = UI.AddDropdown(["Rage", "Anti Aim", "General"], "Defensive Pitch", pitches, 0);
const flickfreq = UI.AddSliderInt(["Rage", "Anti Aim", "General"], "Flick Frequency (Ticks)", 1, 14);
UI.SetValue(["Config", "Cheat", "General", "Restrictions"], 0);

//Functions
function time_to_ticks(t) {
    return Math.floor(.5 + (t / Globals.TickInterval()));
}

var defensive = {
    active: false,
    until: 0,
    ticks: 0,
    lastsimtime: 0,
}

function get_defensive() {
    var cursimtime = time_to_ticks(Entity.GetProp(Entity.GetLocalPlayer(), 'CBaseEntity', 'm_flSimulationTime'))
    var simdif = cursimtime - defensive.lastsimtime
    if (simdif < 0) {
        defensive.until = Global.Tickcount() + Math.abs(simdif) - time_to_ticks(Local.Latency())
        defensive.ticks = defensive.until - Global.Tickcount()
    }

    dt = UI.GetValue(['Rage', 'Exploits', 'Keys', 'Key assignment', 'Double tap'])
    if (dt == 1) {
        defensive.active = defensive.until > Global.Tickcount()
        defensive.lastsimtime = cursimtime
        defensive.time = defensive.ticks - (defensive.until - Global.Tickcount())
    } else {
        defensive.active = false;
    }
    return defensive.active;
}

function setPitch(pitchValue) {
    var enabledStates = UI.GetValue(aa);
    for (var i = 0; i < states.length; i++) {
        if (enabledStates & (1 << i)) {
            var path = ["Rage", "Anti Aim", states[i], "Pitch mode"];
            UI.SetValue(path, pitchValue);
        }
    }
}

function defensivePitch() {
    var defensiveActive = get_defensive();
    var defensivePitchExploit = UI.GetValue(pitchvalues);
    if (defensiveActive && defensivePitchExploit != 0) {
        if (Global.Tickcount() % UI.GetValue(flickfreq) == 0) {
            setPitch(defensivePitchExploit);
        }
    } else {
        setPitch(1); // Pitch down
    }
}

function Unload() {
    setPitch(1); // Pitch down
}

//Callbacks
Cheat.RegisterCallback("CreateMove", "defensivePitch");
Cheat.RegisterCallback("Unload", "Unload");
 
Начинающий
Статус
Оффлайн
Регистрация
1 Ноя 2021
Сообщения
52
Реакции[?]
14
Поинты[?]
5K
Товары в продаже
1
Начинающий
Статус
Оффлайн
Регистрация
3 Июн 2023
Сообщения
19
Реакции[?]
10
Поинты[?]
15K
JavaScript:
//Menu Stuff
var states = "General"
var pitches = ["Off", "Down", "Emotion", "Zero", "Up", "Fake up", "Fake down"];
const aa = UI.AddMultiDropdown(["Rage", "Anti Aim", "General"], "Defensive State", states);
const pitchvalues = UI.AddDropdown(["Rage", "Anti Aim", "General"], "Defensive Pitch", pitches, 0);
const flickfreq = UI.AddSliderInt(["Rage", "Anti Aim", "General"], "Flick Frequency (Ticks)", 1, 14);
UI.SetValue(["Config", "Cheat", "General", "Restrictions"], 0);

//Functions
function time_to_ticks(t) {
    return Math.floor(.5 + (t / Globals.TickInterval()));
}

var defensive = {
    active: false,
    until: 0,
    ticks: 0,
    lastsimtime: 0,
}

function get_defensive() {
    var cursimtime = time_to_ticks(Entity.GetProp(Entity.GetLocalPlayer(), 'CBaseEntity', 'm_flSimulationTime'))
    var simdif = cursimtime - defensive.lastsimtime
    if (simdif < 0) {
        defensive.until = Global.Tickcount() + Math.abs(simdif) - time_to_ticks(Local.Latency())
        defensive.ticks = defensive.until - Global.Tickcount()
    }

    dt = UI.GetValue(['Rage', 'Exploits', 'Keys', 'Key assignment', 'Double tap'])
    if (dt == 1) {
        defensive.active = defensive.until > Global.Tickcount()
        defensive.lastsimtime = cursimtime
        defensive.time = defensive.ticks - (defensive.until - Global.Tickcount())
    } else {
        defensive.active = false;
    }
    return defensive.active;
}

function setPitch(pitchValue) {
    var path = ["Rage", "Anti Aim", states, "Pitch mode"];
    UI.SetValue(path, pitchValue);
}

function defensivePitch() {
    var defensiveActive = get_defensive();
    var defensivePitchExploit = UI.GetValue(pitchvalues);
    if (defensiveActive && defensivePitchExploit != 0) {
        if (Global.Tickcount() % UI.GetValue(flickfreq) == 0) {
            setPitch(defensivePitchExploit);
        }
    } else {
        setPitch(1); // Pitch down
    }
}

function Unload() {
    setPitch(1); // Pitch down
}

//Callbacks
Cheat.RegisterCallback("CreateMove", "defensivePitch");
Cheat.RegisterCallback("Unload", "Unload");
 
Начинающий
Статус
Оффлайн
Регистрация
1 Ноя 2021
Сообщения
52
Реакции[?]
14
Поинты[?]
5K
Товары в продаже
1
JavaScript:
//Menu Stuff
var states = "General"
var pitches = ["Off", "Down", "Emotion", "Zero", "Up", "Fake up", "Fake down"];
const aa = UI.AddMultiDropdown(["Rage", "Anti Aim", "General"], "Defensive State", states);
const pitchvalues = UI.AddDropdown(["Rage", "Anti Aim", "General"], "Defensive Pitch", pitches, 0);
const flickfreq = UI.AddSliderInt(["Rage", "Anti Aim", "General"], "Flick Frequency (Ticks)", 1, 14);
UI.SetValue(["Config", "Cheat", "General", "Restrictions"], 0);

//Functions
function time_to_ticks(t) {
    return Math.floor(.5 + (t / Globals.TickInterval()));
}

var defensive = {
    active: false,
    until: 0,
    ticks: 0,
    lastsimtime: 0,
}

function get_defensive() {
    var cursimtime = time_to_ticks(Entity.GetProp(Entity.GetLocalPlayer(), 'CBaseEntity', 'm_flSimulationTime'))
    var simdif = cursimtime - defensive.lastsimtime
    if (simdif < 0) {
        defensive.until = Global.Tickcount() + Math.abs(simdif) - time_to_ticks(Local.Latency())
        defensive.ticks = defensive.until - Global.Tickcount()
    }

    dt = UI.GetValue(['Rage', 'Exploits', 'Keys', 'Key assignment', 'Double tap'])
    if (dt == 1) {
        defensive.active = defensive.until > Global.Tickcount()
        defensive.lastsimtime = cursimtime
        defensive.time = defensive.ticks - (defensive.until - Global.Tickcount())
    } else {
        defensive.active = false;
    }
    return defensive.active;
}

function setPitch(pitchValue) {
    var path = ["Rage", "Anti Aim", states, "Pitch mode"];
    UI.SetValue(path, pitchValue);
}

function defensivePitch() {
    var defensiveActive = get_defensive();
    var defensivePitchExploit = UI.GetValue(pitchvalues);
    if (defensiveActive && defensivePitchExploit != 0) {
        if (Global.Tickcount() % UI.GetValue(flickfreq) == 0) {
            setPitch(defensivePitchExploit);
        }
    } else {
        setPitch(1); // Pitch down
    }
}

function Unload() {
    setPitch(1); // Pitch down
}

//Callbacks
Cheat.RegisterCallback("CreateMove", "defensivePitch");
Cheat.RegisterCallback("Unload", "Unload");
По сути своей скрипт работает,но создает анрастед углы под 178 и 560 градусов и ломает игру на коннектах
 
Начинающий
Статус
Оффлайн
Регистрация
3 Июн 2023
Сообщения
19
Реакции[?]
10
Поинты[?]
15K
По сути своей скрипт работает,но создает анрастед углы под 178 и 560 градусов и ломает игру на коннектах
ты сам натыкал что то, там нужно выбирать питч, ставь обычный, а не антрастед
 
Начинающий
Статус
Оффлайн
Регистрация
1 Ноя 2021
Сообщения
52
Реакции[?]
14
Поинты[?]
5K
Товары в продаже
1
ты сам натыкал что то, там нужно выбирать питч, ставь обычный, а не антрастед
я уже понял и скрипт работает корректно.Лишь малый визуальный бак из-за которго питч ап якобы медленно работает и лишь при свитче оружия
 
Сверху Снизу