@@ -20,11 +20,13 @@ menu.Style.Outline = true -- Outline around the menu
20
20
client.SetConVar("sv_cheats", 1) -- debug fast setup
21
21
client.SetConVar("mp_disable_respawn_times", 1)
22
22
client.SetConVar("mp_respawnwavetime", -1)
23
+ client.SetConVar("mp_teams_unbalance_limit", 1000)
23
24
end, ItemFlags.FullWidth))]]
24
25
25
26
local Swingpred = menu :AddComponent (MenuLib .Checkbox (" Enable" , true ))
26
- local debug = menu :AddComponent (MenuLib .Checkbox (" visuals" , false ))
27
27
local mAutoRefill = menu :AddComponent (MenuLib .Checkbox (" Crit Refill" , true ))
28
+ local debug = menu :AddComponent (MenuLib .Checkbox (" visuals" , false ))
29
+ local mAirduck = menu :AddComponent (MenuLib .Checkbox (" Air duck" , false ))
28
30
local mKillaura = menu :AddComponent (MenuLib .Checkbox (" Killaura (soon)" , false ))
29
31
local mtime = menu :AddComponent (MenuLib .Slider (" attack distance" , 150 ,300 , 250 ))
30
32
@@ -261,7 +263,14 @@ if not isMelee then return end
261
263
vPlayerFuture = TargetPositionPrediction (vPlayerOrigin , vPlayerOriginLast , tickRate , time , tick )
262
264
pLocalFuture = TargetPositionPrediction (pLocalOrigin , pLocalOriginLast , tickRate , time , tick )
263
265
end
264
-
266
+ local flags = pLocal :GetPropInt ( " m_fFlags" );
267
+ if mAirduck :GetValue () == true then
268
+ if flags & FL_ONGROUND == 0 then
269
+ pCmd :SetButtons (pCmd .buttons | IN_DUCK )
270
+ else
271
+ pCmd :SetButtons (pCmd .buttons & (~IN_DUCK ))
272
+ end
273
+ end
265
274
--[[ -----------------------------Swing Prediction------------------------------------------------------------------------]]
266
275
267
276
-- bypass problem with prior attacking with shield not beeign able to reach target..
0 commit comments