JS-скрипт Visual & Misc scripts pack

Пользователь
Пользователь
Статус
Оффлайн
Регистрация
19 Май 2019
Сообщения
295
Реакции
43
JavaScript:
Expand Collapse Copy
// Coded by Steffy

function GetValue(name)
{
    return UI.GetValue("Misc", "JAVASCRIPT", "Script items", name);
}
function GetColor(picker)
{
    return UI.GetColor("Misc", "JAVASCRIPT", "Script items", picker);
}

UI.AddCheckbox("Draw WASD");
    UI.AddColorPicker("WASD text color");
    UI.AddColorPicker("WASD passive color");
    UI.AddColorPicker("WASD active color");
    UI.AddSliderInt("Box spacing", 0, 5);
    UI.AddSliderInt("WASD x_pos", 0, Render.GetScreenSize()[0]);
    UI.AddSliderInt("WASD y_pos", 0, Render.GetScreenSize()[1]);

function onPaint()
{
    var x = GetValue("WASD x_pos");
    var y = GetValue("WASD y_pos");

    var spacing = GetValue("Box spacing");
    var active = GetColor("WASD active color");
    var passive = GetColor("WASD passive color");
    var text = GetColor("WASD text color");

    if (GetValue("Draw WASD"))
    {
        if (Input.IsKeyPressed(0x57))
        {
            Render.FilledRect(x, y, 50, 50, active);
        }
        else { Render.FilledRect(x, y, 50, 50, passive); }

        if (Input.IsKeyPressed(0x41))
        {
            Render.FilledRect(x - 50 - spacing, y + 50 + spacing, 50, 50, active);
        }
        else { Render.FilledRect(x - 50 - spacing, y + 50 + spacing, 50, 50, passive); }

        if (Input.IsKeyPressed(0x53))
        {
            Render.FilledRect(x, y + 50 + spacing, 50, 50, active);
        }
        else { Render.FilledRect(x, y + 50 + spacing, 50, 50, passive); }

        if (Input.IsKeyPressed(0x44))
        {
            Render.FilledRect(x + 50 + spacing, y + 50 + spacing, 50, 50, active);
        }
        else { Render.FilledRect(x + 50 + spacing, y + 50 + spacing, 50, 50, passive); }

        Render.String(x + 10, y + 7, 0, "W", text, 4);
        Render.String(x - 35 - spacing, y + 55 + spacing, 0, "A", text, 4);
        Render.String(x + 16, y + 55 + spacing, 0, "S", text, 4);
        Render.String(x + 63 + spacing, y + 55 + spacing, 0, "D", text, 4);
    }
}

Cheat.RegisterCallback("Draw", "onPaint");
JavaScript:
Expand Collapse Copy
// coded by Steffy

UI.AddSliderFloat("Aspect Ratio", 0.0. 5.0);

function ratio()
{
    ratio = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Aspect Ratio");

    Convar.SetString("r_aspectratio", ratio);
}

Cheat.RegisterCallback("FrameStageNotify", "ratio")
JavaScript:
Expand Collapse Copy
// Coded by Steffy

UI.AddCheckBox("Indicators Text Outline");
    UI.AddColorPicker("Indicators Color");
    UI.AddSliderInt("indicators_x", 0, Render.GetScreenSize()[0]);
    UI.AddSliderInt("indicators_y", 0, Render.GetScreenSize()[1]);

function getValue(name)
{
    return UI.GetValue("Misc", "JAVASCRIPT", "Script items", name);
}

function getColor(picker)
{
    return UI.GetColor("Misc", "JAVASCRIPT", "Script items", picker);
}

function onPaint()
{
    var str = [];

    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap"))
    {
        str.push("DT");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots"))
    {
        str.push("HS");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim"))
    {
        str.push("BAIM");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point"))
    {
        str.push("SF");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Resolver override"))
    {
        str.push("RESOLVER OVERRIDE");
    }
    if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek"))
    {
        str.push("AUTO PEEK");
    }
    if (UI.IsHotkeyActive("Visual", "WORLD", "View", "Thirdperson"))
    {
        str.push("TP");
    }
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck"))
    {
        str.push("FD");
    }
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk"))
    {
        str.push("SLOW");
    }
    if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter"));
    {
        str.push("INVERT");
    }

    var x = getValue("indicators_x");
    var y = getValue("indicators_y");

    var ind_color = getColor("Indicators Color");

    var isActive_Outline = getValue("Indicators Text Outline");

    for (i = 0; i < str.length; i++)
    {
        if (isActive_Outline)
        {
            text(x - 1.5, y + 27 + 21 * i, 0, str[i], [0, 0, 0, 255], 14);
            text(x + 1, y + 27 + 21 * i, 0, str[i], [0, 0, 0, 255], 14);
        }

        text(x, y + 27 + 21 * i, 0, str[i], ind_color, 14);
    }
}

Cheat.RegisterCallback("Draw", "onPaint");
JavaScript:
Expand Collapse Copy
// Coded by Steffy

UI.AddCheckbox("Top Bar");
    UI.AddSliderInt("Top Bar size", 1, 4);

function getValue(name)
{
    return UI.GetValue("Misc", "JAVASCRIPT", "Script items", name);
}

function HSVtoRGB(h, s, v)
{
    var r, g, b, i, f, p, q, t

    i = Math.floor(h * 6)
    f = h * 6 - i
    p = v * (1 - s)
    q = v * (1 - f * s)
    t = v * (1 - (1 - f) * s)

    switch (i % 6)
    {
        case 0: r = v, g = t, b = p; break;
        case 1: r = q, g = v, b = p; break;
        case 2: r = p, g = v, b = t; break;
        case 3: r = p, g = q, b = v; break;
        case 4: r = t, g = p, b = v; break;
        case 5: r = v, g = p, b = q; break;
    }

    return { r: Math.round(r * 255), g: Math.round(g * 255), b: Math.round(b * 255) }
}

function onPaint()
{
    if (getValue("Top Bar"))
    {
        var colors = HSVtoRGB(Global.Realtime() * 0.07, 1, 1);
        var size = getValue("Top Bar size");

        Render.GradientRect(0, 0, Render.GetScreenSize()[0], size, 1, [colors.g, colors.b, colors.r, 255], [colors.r, colors.g, colors.b, 255]);
    }
}

Cheat.RegisterCallback("Draw", "onPaint");

Мне трудно понять людей с этой категории... Единственный кто выкладывает реально полезные вещи, это @elleqt. Сделайте отдельные раздел для elleqt, чтобы люди понимали, куда смотреть ненужно, а куда надо бы:FeelsBadMan: Сюда я просто выложил свои скрипты на визуальную и миск категории чита. Не спрашивайте почему я не делал скрипты на rage и тому подобное... Все что нужно есть в чите, либо уже лежит на форуме(ну или github) от полезных и знающих людей. Если нашли ошибки в коде, напишите в лс.

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.



update1: буду обновлять тему по ходу написания скриптов, не все скрипты буду выкладывать, не заслужили)
 
Последнее редактирование:
JavaScript:
Expand Collapse Copy
// Coded by Steffy

function GetValue(name)
{
    return UI.GetValue("Misc", "JAVASCRIPT", "Script items", name);
}
function GetColor(picker)
{
    return UI.GetColor("Misc", "JAVASCRIPT", "Script items", picker);
}

UI.AddCheckbox("Draw WASD");
    UI.AddColorPicker("WASD text color");
    UI.AddColorPicker("WASD passive color");
    UI.AddColorPicker("WASD active color");
    UI.AddSliderInt("Box spacing", 0, 5);
    UI.AddSliderInt("WASD x_pos", 0, Render.GetScreenSize()[0]);
    UI.AddSliderInt("WASD y_pos", 0, Render.GetScreenSize()[1]);

function onPaint()
{
    var x = GetValue("WASD x_pos");
    var y = GetValue("WASD y_pos");

    var spacing = GetValue("Box spacing");
    var active = GetColor("WASD active color");
    var passive = GetColor("WASD passive color");
    var text = GetColor("WASD text color");

    if (GetValue("Draw WASD"))
    {
        if (Input.IsKeyPressed(0x57))
        {
            Render.FilledRect(x, y, 50, 50, active);
        }
        else { Render.FilledRect(x, y, 50, 50, passive); }

        if (Input.IsKeyPressed(0x41))
        {
            Render.FilledRect(x - 50 - spacing, y + 50 + spacing, 50, 50, active);
        }
        else { Render.FilledRect(x - 50 - spacing, y + 50 + spacing, 50, 50, passive); }

        if (Input.IsKeyPressed(0x53))
        {
            Render.FilledRect(x, y + 50 + spacing, 50, 50, active);
        }
        else { Render.FilledRect(x, y + 50 + spacing, 50, 50, passive); }

        if (Input.IsKeyPressed(0x44))
        {
            Render.FilledRect(x + 50 + spacing, y + 50 + spacing, 50, 50, active);
        }
        else { Render.FilledRect(x + 50 + spacing, y + 50 + spacing, 50, 50, passive); }

        Render.String(x + 10, y + 7, 0, "W", text, 4);
        Render.String(x - 35 - spacing, y + 55 + spacing, 0, "A", text, 4);
        Render.String(x + 16, y + 55 + spacing, 0, "S", text, 4);
        Render.String(x + 63 + spacing, y + 55 + spacing, 0, "D", text, 4);
    }
}

Cheat.RegisterCallback("Draw", "onPaint");
JavaScript:
Expand Collapse Copy
// coded by Steffy

UI.AddSliderFloat("Aspect Ratio", 0.0. 5.0);

function ratio()
{
    ratio = UI.GetValue("Misc", "JAVASCRIPT", "Script items", "Aspect Ratio");

    Convar.SetString("r_aspectratio", ratio);
}

Cheat.RegisterCallback("FrameStageNotify", "ratio")
JavaScript:
Expand Collapse Copy
// Coded by Steffy

UI.AddCheckBox("Indicators Text Outline");
    UI.AddColorPicker("Indicators Color");
    UI.AddSliderInt("indicators_x", 0, Render.GetScreenSize()[0]);
    UI.AddSliderInt("indicators_y", 0, Render.GetScreenSize()[1]);

function getValue(name)
{
    return UI.GetValue("Misc", "JAVASCRIPT", "Script items", name);
}

function getColor(picker)
{
    return UI.GetColor("Misc", "JAVASCRIPT", "Script items", picker);
}

function onPaint()
{
    var str = [];

    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap"))
    {
        str.push("DT");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots"))
    {
        str.push("HS");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim"))
    {
        str.push("BAIM");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point"))
    {
        str.push("SF");
    }
    if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Resolver override"))
    {
        str.push("RESOLVER OVERRIDE");
    }
    if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek"))
    {
        str.push("AUTO PEEK");
    }
    if (UI.IsHotkeyActive("Visual", "WORLD", "View", "Thirdperson"))
    {
        str.push("TP");
    }
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck"))
    {
        str.push("FD");
    }
    if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk"))
    {
        str.push("SLOW");
    }
    if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter"));
    {
        str.push("INVERT");
    }

    var x = getValue("indicators_x");
    var y = getValue("indicators_y");

    var ind_color = getColor("Indicators Color");

    var isActive_Outline = getValue("Indicators Text Outline");

    for (i = 0; i < str.length; i++)
    {
        if (isActive_Outline)
        {
            text(x - 1.5, y + 27 + 21 * i, 0, str[i], [0, 0, 0, 255], 14);
            text(x + 1, y + 27 + 21 * i, 0, str[i], [0, 0, 0, 255], 14);
        }

        text(x, y + 27 + 21 * i, 0, str[i], ind_color, 14);
    }
}

Cheat.RegisterCallback("Draw", "onPaint");
JavaScript:
Expand Collapse Copy
// Coded by Steffy

UI.AddCheckbox("Top Bar");
    UI.AddSliderInt("Top Bar size", 1, 4);

function getValue(name)
{
    return UI.GetValue("Misc", "JAVASCRIPT", "Script items", name);
}

function HSVtoRGB(h, s, v)
{
    var r, g, b, i, f, p, q, t

    i = Math.floor(h * 6)
    f = h * 6 - i
    p = v * (1 - s)
    q = v * (1 - f * s)
    t = v * (1 - (1 - f) * s)

    switch (i % 6)
    {
        case 0: r = v, g = t, b = p; break;
        case 1: r = q, g = v, b = p; break;
        case 2: r = p, g = v, b = t; break;
        case 3: r = p, g = q, b = v; break;
        case 4: r = t, g = p, b = v; break;
        case 5: r = v, g = p, b = q; break;
    }

    return { r: Math.round(r * 255), g: Math.round(g * 255), b: Math.round(b * 255) }
}

function onPaint()
{
    if (getValue("Top Bar"))
    {
        var colors = HSVtoRGB(Global.Realtime() * 0.07, 1, 1);
        var size = getValue("Top Bar size");

        Render.GradientRect(0, 0, Render.GetScreenSize()[0], size, 1, [colors.g, colors.b, colors.r, 255], [colors.r, colors.g, colors.b, 255]);
    }
}

Cheat.RegisterCallback("Draw", "onPaint");

Мне трудно понять людей с этой категории... Единственный кто выкладывает реально полезные вещи, это @elleqt. Сделайте отдельные раздел для elleqt, чтобы люди понимали, куда смотреть ненужно, а куда надо бы:FeelsBadMan: Сюда я просто выложил свои скрипты на визуальную и миск категории чита. Не спрашивайте почему я не делал скрипты на rage и тому подобное... Все что нужно есть в чите, либо уже лежит на форуме(ну или github) от полезных и знающих людей. Если нашли ошибки в коде, напишите в лс.
Скрытое содержимое

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.

 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
код на индикаторы не рабочий ладно
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Назад
Сверху Снизу