-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRevolverCustomisation.lua
More file actions
34 lines (27 loc) · 1.46 KB
/
RevolverCustomisation.lua
File metadata and controls
34 lines (27 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
local ref = gui.Reference("RAGEBOT", "AIMBOT", "Automation")
local cb = gui.Checkbox(ref, "rbot_revolver_autocock_ex", "Custom Auto-Revolver", true)
local cockspeed = gui.Slider(ref, "rbot_revolver_autocock_ex_speed", "Auto-Revolver speed", 1, 1, 50)
local delay = gui.Slider(ref, "rbot_revolver_autocock_ex_delay", "Auto-Revolver delay", 0, 0, 50)
local debugshit = 1
local what
local whatt
local function on_create_move(cmd)
local me = entities.GetLocalPlayer()
if cb:GetValue() and me ~= nil and me:GetHealth() > 0 then
if bit.band(cmd:GetButtons(), bit.lshift(1, 0)) > 0 then
return
end
local wep = me:GetPropEntity("m_hActiveWeapon")
if wep:GetClass() == "CDEagle" and wep:GetWeaponID() == 64 then
cmd:SetButtons(bit.bor(cmd:GetButtons(), bit.lshift(1, 0)))
local m_flPostponeFireReadyTime = wep:GetPropFloat("m_flPostponeFireReadyTime")
if m_flPostponeFireReadyTime > 0 and m_flPostponeFireReadyTime - (cockspeed:GetValue() / 100) < globals.CurTime() then
cmd.buttons = bit.band(cmd.buttons, bit.bnot(bit.lshift(1, 0)))
if m_flPostponeFireReadyTime + globals.TickInterval() * 16 + (delay:GetValue() / 100) > globals.CurTime() then
cmd:SetButtons(bit.bor(cmd:GetButtons(), bit.lshift(1, 11)))
end
end
end
end
end
callbacks.Register("CreateMove", on_create_move)