LUA скрипт Movelean nl v3

Забаненный
Статус
Оффлайн
Регистрация
6 Мар 2023
Сообщения
13
Реакции[?]
6
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
neverlose v3 movelean


code_language.lua:
local vmt_hook = require("neverlose/vmt_hook")

ffi.cdef[[
    typedef void*(__thiscall* get_client_entity_t)(void*, int);
    
    bool DeleteUrlCacheEntryA(const char* lpszUrlName);
    void* __stdcall URLDownloadToFileA(void* LPUNKNOWN, const char* LPCSTR, const char* LPCSTR2, int a, int LPBINDSTATUSCALLBACK);
    typedef int(__fastcall* clantag_t)(const char*, const char*);
    void* CloseHandle(void *hFile);
    typedef int(__fastcall* clantag_t)(const char*, const char*);   
]]

    ffi.cdef[[
        typedef struct {
            char  pad_0000[20];
            int m_nOrder; //0x0014
            int m_nSequence; //0x0018
            float m_flPrevCycle; //0x001C
            float m_flWeight; //0x0020
            float m_flWeightDeltaRate; //0x0024
            float m_flPlaybackRate; //0x0028
            float m_flCycle; //0x002C
            void *m_pOwner; //0x0030
            char  pad_0038[4]; //0x0034
        } CAnimationLayer;
    ]]

local group = ui.create("main", "aa")
local animbreakers = group:selectable("Anim. Breakers", {"Move Lean"})

local uintptr_t = ffi.typeof("uintptr_t**")
local this_call = function(call_function, parameters)
    return function(...)
        return call_function(parameters, ...)
    end
end
local entity_list_003 = ffi.cast(uintptr_t, utils.create_interface("client.dll", "VClientEntityList003"))
local get_entity_address = this_call(ffi.cast("get_client_entity_t", entity_list_003[0][3]), entity_list_003)

local hooked_function = nil
local inside_updateCSA = function(thisptr, edx)
    hooked_function(thisptr, edx)
    local lp = entity.get_local_player()
    if not lp or not lp:is_alive() then return end
    if animbreakers:get("Move Lean") then
        ffi.cast('CAnimationLayer**', ffi.cast('uintptr_t', thisptr) + 0x2990)[0][12].m_flWeight = 1
    end
end



events.createmove:set(function(cmd)
    cmd.animate_move_lean = true
end)


events.createmove_run:set(function()
    local self = entity.get_local_player()
    if not self or not self:is_alive() then return end

    local self_index = self:get_index()
    local self_address = get_entity_address(self_index)

    if not self_address or hooked_function then return end

    local new_point = vmt_hook.new(self_address)
    hooked_function = new_point.hook("void(__fastcall*)(void*, void*)", inside_updateCSA, 224)
end)
 
Забаненный
Статус
Оффлайн
Регистрация
6 Мар 2023
Сообщения
13
Реакции[?]
6
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Модератор раздела "Создание скриптов для читов"
Модератор
Статус
Оффлайн
Регистрация
1 Фев 2020
Сообщения
1,201
Реакции[?]
390
Поинты[?]
28K
Модератор раздела "Создание скриптов для читов"
Модератор
Статус
Оффлайн
Регистрация
1 Фев 2020
Сообщения
1,201
Реакции[?]
390
Поинты[?]
28K
Забаненный
Статус
Оффлайн
Регистрация
6 Мар 2023
Сообщения
13
Реакции[?]
6
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Сверху Снизу