-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path1 FD Animation.lua
More file actions
79 lines (59 loc) · 2.53 KB
/
Copy path1 FD Animation.lua
File metadata and controls
79 lines (59 loc) · 2.53 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- Info: Fakeduck Indicator activates automatically, Checkbox to activate Animationfix is located in ["Visuals", "Local", "Helper"]
local storedTick = 0
local crouched_ticks = { }
local function toBits(num)
local t = { }
while num > 0 do
rest = math.fmod(num,2)
t[#t+1] = rest
num = (num-rest) / 2
end
return t
end
callbacks.Register("DrawESP", "FD_Indicator", function(Builder)
local g_Local = entities.GetLocalPlayer()
local Entity = Builder:GetEntity()
if g_Local == nil or Entity == nil or not Entity:IsAlive() then
return
end
local index = Entity:GetIndex()
local m_flDuckAmount = Entity:GetProp("m_flDuckAmount")
local m_flDuckSpeed = Entity:GetProp("m_flDuckSpeed")
local m_fFlags = Entity:GetProp("m_fFlags")
if crouched_ticks[index] == nil then
crouched_ticks[index] = 0
end
if m_flDuckSpeed ~= nil and m_flDuckAmount ~= nil then
if m_flDuckSpeed == 8 and m_flDuckAmount <= 0.9 and m_flDuckAmount > 0.01 and toBits(m_fFlags)[1] == 1 then
if storedTick ~= globals.TickCount() then
crouched_ticks[index] = crouched_ticks[index] + 1
storedTick = globals.TickCount()
end
if crouched_ticks[index] >= 5 then
Builder:Color(255, 0, 0, 255)
Builder:AddTextRight("Fake Duck")
end
else
crouched_ticks[index] = 0
end
end
end)
--******************************************************************************
--Fakeduck Viewmodel Animation by Grieschoel aka AEONS
local getLocal = function() return entities.GetLocalPlayer() end
local ref = gui.Reference("Visuals", "Local", "Helper");
local whyamiwastingmytime = gui.Checkbox( ref, "Fakeduck_Animation", "Fakeduck Animation", false )
local viewmodelZ = (client.GetConVar("viewmodel_offset_z"));
function yourmumsahoe()
if whyamiwastingmytime:GetValue() then
if getLocal() then
if getLocal():IsAlive() then
local shitthisisboring = gui.GetValue('rbot.antiaim.extra.fakecrouchkey')
local andsofuckinguseless = input.IsButtonDown( shitthisisboring )
local yourmum = entities.GetLocalPlayer();
local tbagmodeengaged = yourmum:GetProp('m_flDuckAmount')
if andsofuckinguseless == true then
client.SetConVar("viewmodel_offset_z", (viewmodelZ - (tbagmodeengaged*8)), true)
else client.SetConVar("viewmodel_offset_z", viewmodelZ, true)
end end end end end
callbacks.Register("Draw", yourmumsahoe)