Вопрос Помогите сделать правильно Under crosshair hit

Начинающий
Статус
Оффлайн
Регистрация
21 Май 2021
Сообщения
5
Реакции[?]
0
Поинты[?]
0
Помогите сделать ползунок справа для X, Y и уберите мусора. Заранее спасибо.

PS. Я просто хуевый в этом плане

JavaScript:
function acidtechlogs() {
    attackerEntity = Entity.GetEntityFromUserID(Event.GetInt('attacker'));
    localEntity = Entity.GetLocalPlayer();
    if (attackerEntity == localEntity) {
        victimName = Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt('userid')));
        hitboxName = hitgroupToHitbox(Event.GetInt('hitgroup'));
        damageDone = Event.GetInt('dmg_health');
        healthRemaining = Event.GetInt('health');
        hurtLogs.push([victimName, hitboxName, damageDone, healthRemaining, 0, 255, (Math.random() * (-1) * 1.2).toFixed(4), Globals.Curtime()])
    }
}
hurtLogs = [];
typeSpeed = 0.05;
fadeOutSpeed = 8;
showDelayTime = typeSpeed + Globals.Curtime();

function acidtechlogs2() {
    for (var _0x1873x4 = 0; _0x1873x4 < hurtLogs.length; _0x1873x4++) {
        hurtLogs[_0x1873x4][4] ++;
        toSay = victimName + ' ' + hitboxName + ' ' + damageDone + ' ' + '(' + healthRemaining + ')';
        if (Globals.Curtime() - hurtLogs[_0x1873x4][7] < 2) {
            continue
        };
        hurtLogs[_0x1873x4][5] -= Globals.Frametime() * 500;
        if (hurtLogs[_0x1873x4][5] < 0) {
            hurtLogs.shift(_0x1873x4, 1)
        }
    }
}

function acidtechlogs3() {
    if (UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Acidtech logs')) {
        localplayer_index = Entity.GetLocalPlayer();
        localplayer_alive = Entity.IsAlive(localplayer_index);
        if (localplayer_alive == true) {
            screen = Render.GetScreenSize();
            textX = (screen[0] / 2);
            textY = (screen[1] / 2) + 100;
            textYIncrement = 12;
            textCol = [255, 255, 255];
            for (var _0x1873x4 = 0; _0x1873x4 < hurtLogs.length; _0x1873x4++) {
                currentLog = hurtLogs[_0x1873x4];
                victimName = currentLog[0];
                hitboxName = currentLog[1];
                damageDone = currentLog[2];
                healthRemaining = currentLog[3];
                currentTextPos = textY + (textYIncrement * _0x1873x4);
                toSay = victimName + ' ' + hitboxName + ' ' + '-' + damageDone + ' ' + '(' + healthRemaining + ')';
                textCol = [255, 255, 255];
                textColdead = [200, 0, 0];
                if (healthRemaining > 0) {
                    Render.String(textX + 1, currentTextPos + 1, 1, toSay, [0, 0, 0, hurtLogs[_0x1873x4][5]], 8);
                    Render.String(textX, currentTextPos, 1, toSay, [textCol[0], textCol[1], textCol[2], hurtLogs[_0x1873x4][5]], 8)
                };
                if (healthRemaining <= 0) {
                    Render.String(textX + 1, currentTextPos + 1, 1, toSay, [0, 0, 0, hurtLogs[_0x1873x4][5]], 8);
                    Render.String(textX, currentTextPos, 1, toSay, [textColdead[0], textColdead[1], textColdead[2], hurtLogs[_0x1873x4][5]], 8)
                }
            }
        }
    }
}

function hitgroupToHitbox(_0x1873x47) {
    hitbox = 'generic';
    switch (_0x1873x47) {
        case 0:
            hitbox = 'head';
            break;
        case 1:
            hitbox = 'neck';
            break;
        case 2:
            hitbox = 'pelvis';
            break;
        case 3:
            hitbox = 'body';
            break;
        case 4:
            hitbox = 'chest';
            break;
        case 5:
            hitbox = 'chest';
            break;
        case 6:
            hitbox = 'upper chest';
            break;
        case 7:
            hitbox = 'left thigh';
            break;
        case 8:
            hitbox = 'right thigh';
            break;
        case 9:
            hitbox = 'left calf';
            break;
        case 10:
            hitbox = 'right calf';
            break;
        case 11:
            hitbox = 'left foot';
            break;
        case 12:
            hitbox = 'right foot';
            break;
        case 13:
            hitbox = 'left hand';
            break;
        case 14:
            hitbox = 'right hand';
            break;
        case 15:
            hitbox = 'left arm';
            break;
        case 16:
            hitbox = 'left forearm';
            break;
        case 17:
            hitbox = 'right arm';
            break;
        case 18:
            hitbox = 'right forearm'
    };
    return hitbox
}

function ad() {
    if (UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Indicators')) {
        screen_size = Render.GetScreenSize();
        local = Entity.GetLocalPlayer();
        font = Render.AddFont('Verdana', 8, 400);
        font1 = Render.AddFont('Tahoma', 10, 500);
        font11 = Render.AddFont('Tahoma', 7, 100);
        x = screen_size[0];
        y = screen_size[1];
        col = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Indicator color');
        real_yaw = Local.GetRealYaw();
        fake_yaw = Local.GetFakeYaw();
        delta = Math.min(Math.abs(real_yaw - fake_yaw) / 2, 60).toFixed(0);
        delta_size = Render.TextSizeCustom(delta, font);
        deuswalk = UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Slow walk');
        isDmgActive = UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Script items', 'Damage override');
        isPingActive = UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Script items', 'Ping spike');
        isDtActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'Exploits', 'Doubletap');
        isHSActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'Exploits', 'Hide shots');
        isBAimActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force body aim');
        isSPActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point');
        isInverter = UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter');
        color228 = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Selected inverter');
        add_y = 0;
        var _0x1873x49 = Math.sin(Globals.Curtime() * 5) * 255;
        var localplayer_index = Entity.GetLocalPlayer();
        var localplayer_alive = Entity.IsAlive(localplayer_index);
        if (localplayer_alive == true) {
            Render.StringCustom(x / 2, y / 17, 1, delta, [255, 255, 255, 255], font);
            Render.Circle(x / 2 + delta_size[0] - 3, y / 18, 2, [255, 255, 255, 255]);
            Render.GradientRect(x / 2, y / 32, (1.0666666666667) * delta, 4, 1, col, [0, 0, 0, 0]);
            Render.GradientRect(x / 2 - (1.0666666666667) * delta + 1, y / 32, (1.0666666666667) * delta, 4, 1, [0, 0, 0, 0], col);
            if (isInverter) {
                Render.StringCustom(x / -23, y / 35, 0, 'deus', [0, 0, 0, _0x1873x49], font1);
                Render.StringCustom(x / -24, y / 35, 0, 'deus', [color228[0], color228[1], color228[2], _0x1873x49], font1);
                Render.StringCustom(x / 5, y / 35, 0, 'yaw', [0, 0, 0, _0x1873x49], font1);
                Render.StringCustom(x / 4, y / 35, 0, 'yaw', [255, 255, 255, _0x1873x49], font1)
            } else {
                if (!isInverter) {
                    Render.StringCustom(x / 5, y / 35, 0, 'yaw', [0, 0, 0, _0x1873x49], font1);
                    Render.StringCustom(x / 4, y / 35, 0, 'yaw', [color228[0], color228[1], color228[2], _0x1873x49], font1);
                    Render.StringCustom(x / -23, y / 35, 0, 'deus', [0, 0, 0, _0x1873x49], font1);
                    Render.StringCustom(x / -24, y / 35, 0, 'deus', [255, 255, 255, _0x1873x49], font1)
                }
            };
            if (isHSActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -21, screen_size[1] / 38 + add_y, 0, 'ONSHOT', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -22, screen_size[1] / 38 + add_y, 0, 'ONSHOT', [255, 255, 255, 255], font1)
            };
            if (isBAimActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -10, screen_size[1] / 38 + add_y, 0, 'BAIM', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -11, screen_size[1] / 38 + add_y, 0, 'BAIM', [255, 255, 255, 255], font1)
            };
            if (isDmgActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -9, screen_size[1] / 38 + add_y, 0, 'DMG', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -10, screen_size[1] / 38 + add_y, 0, 'DMG', [255, 255, 255, 255], font1)
            };
            if (isSPActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -3, screen_size[1] / 38 + add_y, 0, 'SP', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -4, screen_size[1] / 38 + add_y, 0, 'SP', [255, 255, 255, 255], font1)
            };
            if (isDtActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -3, screen_size[1] / 38 + add_y, 0, 'DT', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -4, screen_size[1] / 38 + add_y, 0, 'DT', Exploit.GetCharge() == 1 ? [255, 255, 255, 255] : [255, 0, 0, 255], font1)
            }
        }
    }
}
UI.SetValue('Acidtech logs', 1);
Cheat.RegisterCallback('Draw', 'acidtechlogs2');
Cheat.RegisterCallback('Draw', 'acidtechlogs3');
Cheat.RegisterCallback('player_hurt', 'acidtechlogs');
UI.AddCheckbox('Acidtech logs');
Это для OTC
 
Последнее редактирование:
Пользователь
Статус
Оффлайн
Регистрация
28 Янв 2020
Сообщения
244
Реакции[?]
80
Поинты[?]
7K
JavaScript:
const x1 = UI.AddSliderInt("Hotkeys_x", 0, Global.GetScreenSize()[0]);
const y1 = UI.AddSliderInt("Hotkeys_y", 0, Global.GetScreenSize()[1]);

function acidtechlogs() {
    attackerEntity = Entity.GetEntityFromUserID(Event.GetInt('attacker'));
    localEntity = Entity.GetLocalPlayer();
    if (attackerEntity == localEntity) {
        victimName = Entity.GetName(Entity.GetEntityFromUserID(Event.GetInt('userid')));
        hitboxName = hitgroupToHitbox(Event.GetInt('hitgroup'));
        damageDone = Event.GetInt('dmg_health');
        healthRemaining = Event.GetInt('health');
        hurtLogs.push([victimName, hitboxName, damageDone, healthRemaining, 0, 255, (Math.random() * (-1) * 1.2).toFixed(4), Globals.Curtime()])
    }
}
hurtLogs = [];
typeSpeed = 0.05;
fadeOutSpeed = 8;
showDelayTime = typeSpeed + Globals.Curtime();

function acidtechlogs2() {
    for (var _0x1873x4 = 0; _0x1873x4 < hurtLogs.length; _0x1873x4++) {
        hurtLogs[_0x1873x4][4] ++;
        toSay = victimName + ' ' + hitboxName + ' ' + damageDone + ' ' + '(' + healthRemaining + ')';
        if (Globals.Curtime() - hurtLogs[_0x1873x4][7] < 2) {
            continue
        };
        hurtLogs[_0x1873x4][5] -= Globals.Frametime() * 500;
        if (hurtLogs[_0x1873x4][5] < 0) {
            hurtLogs.shift(_0x1873x4, 1)
        }
    }
}

function acidtechlogs3() {
    if (UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Acidtech logs')) {
        localplayer_index = Entity.GetLocalPlayer();
        localplayer_alive = Entity.IsAlive(localplayer_index);
        if (localplayer_alive == true) {
            screen = Render.GetScreenSize();
            textX = (screen[0] / 2);
            textY = (screen[1] / 2) + 100;
            textYIncrement = 12;
            textCol = [255, 255, 255];
            for (var _0x1873x4 = 0; _0x1873x4 < hurtLogs.length; _0x1873x4++) {
                currentLog = hurtLogs[_0x1873x4];
                victimName = currentLog[0];
                hitboxName = currentLog[1];
                damageDone = currentLog[2];
                healthRemaining = currentLog[3];
                currentTextPos = textY + (textYIncrement * _0x1873x4);
                toSay = victimName + ' ' + hitboxName + ' ' + '-' + damageDone + ' ' + '(' + healthRemaining + ')';
                textCol = [255, 255, 255];
                textColdead = [200, 0, 0];
                if (healthRemaining > 0) {
                    Render.String(textX + 1, currentTextPos + 1, 1, toSay, [0, 0, 0, hurtLogs[_0x1873x4][5]], 8);
                    Render.String(textX, currentTextPos, 1, toSay, [textCol[0], textCol[1], textCol[2], hurtLogs[_0x1873x4][5]], 8)
                };
                if (healthRemaining <= 0) {
                    Render.String(textX + 1, currentTextPos + 1, 1, toSay, [0, 0, 0, hurtLogs[_0x1873x4][5]], 8);
                    Render.String(textX, currentTextPos, 1, toSay, [textColdead[0], textColdead[1], textColdead[2], hurtLogs[_0x1873x4][5]], 8)
                }
            }
        }
    }
}

function hitgroupToHitbox(_0x1873x47) {
    hitbox = 'generic';
    switch (_0x1873x47) {
        case 0:
            hitbox = 'head';
            break;
        case 1:
            hitbox = 'neck';
            break;
        case 2:
            hitbox = 'pelvis';
            break;
        case 3:
            hitbox = 'body';
            break;
        case 4:
            hitbox = 'chest';
            break;
        case 5:
            hitbox = 'chest';
            break;
        case 6:
            hitbox = 'upper chest';
            break;
        case 7:
            hitbox = 'left thigh';
            break;
        case 8:
            hitbox = 'right thigh';
            break;
        case 9:
            hitbox = 'left calf';
            break;
        case 10:
            hitbox = 'right calf';
            break;
        case 11:
            hitbox = 'left foot';
            break;
        case 12:
            hitbox = 'right foot';
            break;
        case 13:
            hitbox = 'left hand';
            break;
        case 14:
            hitbox = 'right hand';
            break;
        case 15:
            hitbox = 'left arm';
            break;
        case 16:
            hitbox = 'left forearm';
            break;
        case 17:
            hitbox = 'right arm';
            break;
        case 18:
            hitbox = 'right forearm'
    };
    return hitbox
}

function ad() {
    if (UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Indicators')) {
        screen_size = Render.GetScreenSize();
        local = Entity.GetLocalPlayer();
        font = Render.AddFont('Verdana', 8, 400);
        font1 = Render.AddFont('Tahoma', 10, 500);
        font11 = Render.AddFont('Tahoma', 7, 100);
        x = screen_size[0];
        y = screen_size[1];
        const x = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Hotkeys_x"),
            y = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Hotkeys_y");
        col = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Indicator color');
        real_yaw = Local.GetRealYaw();
        fake_yaw = Local.GetFakeYaw();
        delta = Math.min(Math.abs(real_yaw - fake_yaw) / 2, 60).toFixed(0);
        delta_size = Render.TextSizeCustom(delta, font);
        deuswalk = UI.IsHotkeyActive('Anti-Aim', 'Extra', 'Slow walk');
        isDmgActive = UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Script items', 'Damage override');
        isPingActive = UI.IsHotkeyActive('Misc', 'JAVASCRIPT', 'Script items', 'Ping spike');
        isDtActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'Exploits', 'Doubletap');
        isHSActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'Exploits', 'Hide shots');
        isBAimActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force body aim');
        isSPActive = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point');
        isInverter = UI.IsHotkeyActive('Anti-Aim', 'Fake angles', 'Inverter');
        color228 = UI.GetColor('Misc', 'JAVASCRIPT', 'Script items', 'Selected inverter');
        add_y = 0;
        var _0x1873x49 = Math.sin(Globals.Curtime() * 5) * 255;
        var localplayer_index = Entity.GetLocalPlayer();
        var localplayer_alive = Entity.IsAlive(localplayer_index);
        if (localplayer_alive == true) {
            Render.StringCustom(x / 2, y / 17, 1, delta, [255, 255, 255, 255], font);
            Render.Circle(x / 2 + delta_size[0] - 3, y / 18, 2, [255, 255, 255, 255]);
            Render.GradientRect(x / 2, y / 32, (1.0666666666667) * delta, 4, 1, col, [0, 0, 0, 0]);
            Render.GradientRect(x / 2 - (1.0666666666667) * delta + 1, y / 32, (1.0666666666667) * delta, 4, 1, [0, 0, 0, 0], col);
            if (isInverter) {
                Render.StringCustom(x / -23, y / 35, 0, 'deus', [0, 0, 0, _0x1873x49], font1);
                Render.StringCustom(x / -24, y / 35, 0, 'deus', [color228[0], color228[1], color228[2], _0x1873x49], font1);
                Render.StringCustom(x / 5, y / 35, 0, 'yaw', [0, 0, 0, _0x1873x49], font1);
                Render.StringCustom(x / 4, y / 35, 0, 'yaw', [255, 255, 255, _0x1873x49], font1)
            } else {
                if (!isInverter) {
                    Render.StringCustom(x / 5, y / 35, 0, 'yaw', [0, 0, 0, _0x1873x49], font1);
                    Render.StringCustom(x / 4, y / 35, 0, 'yaw', [color228[0], color228[1], color228[2], _0x1873x49], font1);
                    Render.StringCustom(x / -23, y / 35, 0, 'deus', [0, 0, 0, _0x1873x49], font1);
                    Render.StringCustom(x / -24, y / 35, 0, 'deus', [255, 255, 255, _0x1873x49], font1)
                }
            };
            if (isHSActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -21, screen_size[1] / 38 + add_y, 0, 'ONSHOT', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -22, screen_size[1] / 38 + add_y, 0, 'ONSHOT', [255, 255, 255, 255], font1)
            };
            if (isBAimActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -10, screen_size[1] / 38 + add_y, 0, 'BAIM', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -11, screen_size[1] / 38 + add_y, 0, 'BAIM', [255, 255, 255, 255], font1)
            };
            if (isDmgActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -9, screen_size[1] / 38 + add_y, 0, 'DMG', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -10, screen_size[1] / 38 + add_y, 0, 'DMG', [255, 255, 255, 255], font1)
            };
            if (isSPActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -3, screen_size[1] / 38 + add_y, 0, 'SP', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -4, screen_size[1] / 38 + add_y, 0, 'SP', [255, 255, 255, 255], font1)
            };
            if (isDtActive) {
                add_y = add_y + 11;
                Render.StringCustom(screen_size[0] / -3, screen_size[1] / 38 + add_y, 0, 'DT', [0, 0, 0, 255], font1);
                Render.StringCustom(screen_size[0] / -4, screen_size[1] / 38 + add_y, 0, 'DT', Exploit.GetCharge() == 1 ? [255, 255, 255, 255] : [255, 0, 0, 255], font1)
            }
        }
    }
}
UI.SetValue('Acidtech logs', 1);
Cheat.RegisterCallback('Draw', 'acidtechlogs2');
Cheat.RegisterCallback('Draw', 'acidtechlogs3');
Cheat.RegisterCallback('player_hurt', 'acidtechlogs');
UI.AddCheckbox('Acidtech logs');
На счёт мусора по конкретнее
 
Сверху Снизу