double tap lua

Dania_gg

Customer
Регистрация
17 Авг 2024
Сообщения
78
local ffi = require("ffi")

ffi.cdef[[
typedef struct {
int nPlayerTickCount;
float flPlayerTickFraction;
} InputHistoryEntry;

typedef struct {
void* pArena;
int nCurrentSize;
int nTotalSize;
void* pRep;
} RepeatedPtrField;

typedef struct {
RepeatedPtrField inputHistoryField;
int nAttack1StartHistoryIndex;
} CSGOUserCmd;

typedef struct {
CSGOUserCmd csgoUserCmd;
uint64_t nButtons;
} CUserCmd;
]]

local bDoubleTap = true
local shot_count = 0

local function double_tap()
if not bDoubleTap then return end

local pCmd = ffi.cast("CUserCmd*", get_user_cmd())
if not pCmd then return end

local pLocal = entitylist.get_local_player()
if not pLocal then return end

local pWeapon = pLocal:get_active_weapon()
if not pWeapon then return end

local next_attack = pWeapon:get_next_primary_attack()
local tick_count = globalvars.get_tick_count()
local tick_interval = globalvars.get_interval_per_tick()

local shoot_tick = math.floor(next_attack / tick_interval)
local f = shot_count % 2 == 1

if pCmd.csgoUserCmd.nAttack1StartHistoryIndex > -1 then
shot_count = shot_count + 1
end

if pCmd.csgoUserCmd.inputHistoryField.pRep then
for i = 0, 1 do
local entry = ffi.cast("InputHistoryEntry*",
ffi.cast("char*", pCmd.csgoUserCmd.inputHistoryField.pRep) + i * ffi.sizeof("InputHistoryEntry"))

if entry then
entry.nPlayerTickCount = f and (shoot_tick - 1) or 0
entry.flPlayerTickFraction = 0.0
end
end
end

pCmd.csgoUserCmd.nAttack1StartHistoryIndex = -1
pWeapon:set_next_primary_attack(tick_count * tick_interval)
end

local function simple_double_tap(cmd)
if not cmd then return end

local local_player = entitylist.get_local_player()
if not local_player or not local_player:is_alive() then return end

local weapon = local_player:get_active_weapon()
if not weapon then return end

if bit.band(cmd.buttons, 1) ~= 0 then
weapon:set_next_primary_attack(0)
end
end

local function run_double_tap()
if pcall(ffi.cast, "CUserCmd*", get_user_cmd()) then
pcall(double_tap)
else
local cmd = get_user_cmd()
simple_double_tap(cmd)
end
end

register_callback("create_move", run_double_tap)
print("1")

Is it possible to make this lua work?
 
дает вывод и та и та но как такового даблтапа нету исправил ваши ошибки в луа если вам они нужны могу отправить
 
чет ваще не работает, даже тот который чел фикс отправил
 
local ffi = require("ffi")

ffi.cdef[[
typedef struct {
int nPlayerTickCount;
float flPlayerTickFraction;
} InputHistoryEntry;

typedef struct {
void* pArena;
int nCurrentSize;
int nTotalSize;
void* pRep;
} RepeatedPtrField;

typedef struct {
RepeatedPtrField inputHistoryField;
int nAttack1StartHistoryIndex;
} CSGOUserCmd;

typedef struct {
CSGOUserCmd csgoUserCmd;
uint64_t nButtons;
} CUserCmd;
]]

local bDoubleTap = true
local shot_count = 0

local function double_tap()
if not bDoubleTap then return end

local pCmd = ffi.cast("CUserCmd*", get_user_cmd())
if not pCmd then return end

local pLocal = entitylist.get_local_player()
if not pLocal then return end

local pWeapon = pLocal:get_active_weapon()
if not pWeapon then return end

local next_attack = pWeapon:get_next_primary_attack()
local tick_count = globalvars.get_tick_count()
local tick_interval = globalvars.get_interval_per_tick()

local shoot_tick = math.floor(next_attack / tick_interval)
local f = shot_count % 2 == 1

if pCmd.csgoUserCmd.nAttack1StartHistoryIndex > -1 then
shot_count = shot_count + 1
end

if pCmd.csgoUserCmd.inputHistoryField.pRep then
for i = 0, 1 do
local entry = ffi.cast("InputHistoryEntry*",
ffi.cast("char*", pCmd.csgoUserCmd.inputHistoryField.pRep) + i * ffi.sizeof("InputHistoryEntry"))

if entry then
entry.nPlayerTickCount = f and (shoot_tick - 1) or 0
entry.flPlayerTickFraction = 0.0
end
end
end

pCmd.csgoUserCmd.nAttack1StartHistoryIndex = -1
pWeapon:set_next_primary_attack(tick_count * tick_interval)
end

local function simple_double_tap(cmd)
if not cmd then return end

local local_player = entitylist.get_local_player()
if not local_player or not local_player:is_alive() then return end

local weapon = local_player:get_active_weapon()
if not weapon then return end

if bit.band(cmd.buttons, 1) ~= 0 then
weapon:set_next_primary_attack(0)
end
end

local function run_double_tap()
if pcall(ffi.cast, "CUserCmd*", get_user_cmd()) then
pcall(double_tap)
else
local cmd = get_user_cmd()
simple_double_tap(cmd)
end
end

register_callback("create_move", run_double_tap)
print("1")

Is it possible to make this lua work?
и где тут вызов дт которого нету. это же ебаный кусок говна.
 
и где тут вызов дт которого нету. это же ебаный кусок говна.
local function run_double_tap()
if pcall(ffi.cast, "CUserCmd*", get_user_cmd()) then
pcall(double_tap) // вот вызов дабл тапа 85 строка
else
local cmd = get_user_cmd()
simple_double_tap(cmd)
end
end
если ты не увидел вызов с чего вдруг ты говоришь что это кусок говна?
 
и где тут вызов дт которого нету. это же ебаный кусок говна.


indicators lua / делаю?

его луа даже 50р не стоит, че эту смесь говна покупать которую крякнуть за 5 секунд можно по ебучему cheat engin and http debugger
АХХАХАХАХ сам даже не правильно написал название чит енжина
 
1753629483754.png
1753629507387.pngрасходимся, тут 2 бича нам хотят доказать что дт луа можно сделать в никс. 0iq move показали.
я это откачу xD
 
Посмотреть вложение 68746
Посмотреть вложение 68747расходимся, тут 2 бича нам хотят доказать что дт луа можно сделать в никс. 0iq move показали.
я это откачу xD
НУ АХЫВАЗЫАХ тут даже сама луа апи тебе говорит что Невозможно контролировать Ragebot and Legitbot обычной Lua API (by LuaAPI v3.0)
 
Посмотреть вложение 68746
Посмотреть вложение 68747расходимся, тут 2 бича нам хотят доказать что дт луа можно сделать в никс. 0iq move показали.
я это откачу xD
какое даблтап луа я тут хоть что сказал про луа ты опозорен своими же словами т.к. мы тут обсуждали не луа вообще
 
Последнее редактирование:
Назад
Сверху