@@ -47,7 +47,7 @@ local mSensetivity = menu:AddComponent(MenuLib.Slider("Charge Sensetivity",1 ,5
47
47
48
48
local mAutoRefill = menu :AddComponent (MenuLib .Checkbox (" Crit Refill" , true ))
49
49
-- local AutoFakelat = menu:AddComponent(MenuLib.Checkbox("Adaptive Latency", true, ItemFlags.FullWidth))
50
- local AchargeRange = menu :AddComponent (MenuLib .Checkbox (" Charge Reach" , false , ItemFlags .FullWidth ))
50
+ local AchargeRange = menu :AddComponent (MenuLib .Checkbox (" Charge Reach" , true , ItemFlags .FullWidth ))
51
51
local mAutoGarden = menu :AddComponent (MenuLib .Checkbox (" Troldier assist" , false ))
52
52
local mmVisuals = menu :AddComponent (MenuLib .Checkbox (" Enable Visuals" , false ))
53
53
local mKeyOverrite = menu :AddComponent (MenuLib .Keybind (" Keybind" , key ))
@@ -68,7 +68,7 @@ local ping = 0
68
68
local swingrange = 48
69
69
local tickRate = 66
70
70
local tick_count = 0
71
- local time = 14
71
+ local time = 15
72
72
local Gcan_attack = false
73
73
local Safe_Strafe = false
74
74
local can_charge = false
@@ -202,7 +202,7 @@ local function GetBestTarget(me)
202
202
203
203
for _ , target in ipairs (targetList ) do
204
204
local player = target .player
205
- local aimPos = player :GetAbsOrigin ()
205
+ local aimPos = player :GetAbsOrigin () + Vector3 ( 0 , 0 , 75 )
206
206
local angles = Math .PositionAngles (localPlayer :GetAbsOrigin (), aimPos )
207
207
local fov = Math .AngleFov (angles , engine .GetViewAngles ())
208
208
@@ -367,16 +367,6 @@ local function OnCreateMove(pCmd)
367
367
end
368
368
end
369
369
370
- --[[ Initialize the temporary fake latency value
371
- if gui.GetValue("Fake Latency Value (MS)") ~= 200 then
372
- defFakeLatency = gui.GetValue("Fake Latency Value (MS)")
373
- end
374
-
375
- -- Initialize the temporary fake latency value
376
- if gui.GetValue("Fake Latency Value (MS)") == 200 then
377
- gui.SetValue("Fake Latency Value (MS)", defFakeLatency)
378
- end]]
379
-
380
370
-- [-Don`t run script below when not usign melee--]
381
371
382
372
isMelee = pWeapon :IsMeleeWeapon () -- check if using melee weapon
@@ -396,15 +386,15 @@ end]]
396
386
397
387
-- [-------- Get SwingRange --------]
398
388
swingrange = pWeapon :GetSwingRange ()
399
- local hitboxData = pLocal :HitboxSurroundingBox ()
400
- local hitboxSize = hitboxData [1 ] - hitboxData [2 ]
401
- local hitboxHeight = hitboxSize .z
402
-
403
- hitboxSize .z = 0 -- Set z component to 0 to get the horizontal size
389
+ -- local hitboxData = pLocal:EntitySpaceHitboxSurroundingBox()
390
+ -- local hitboxSize = hitboxData[1]
391
+ -- local hitboxHeight = hitboxSize.z
404
392
393
+ -- hitboxSize.z = 0 -- Set z component to 0 to get the horizontal size
394
+ -- print(-hitboxSize.y)
405
395
-- Now you can use hitboxSize and hitboxHeight as variables representing the size and height of the hitbox respectively
406
396
407
- hitboxSize = 36
397
+ local hitboxSize = 36
408
398
409
399
if pWeaponDef :GetName () == " The Disciplinary Action" then
410
400
hitboxSize = 55.8
@@ -565,35 +555,16 @@ local cornerposition = Vector3( --ToDO: fix this
565
555
if pLocalClass == 4 -- player is Demoman
566
556
and AchargeRange :GetValue () -- menu option for such option is true
567
557
and chargeLeft == 100 then -- charge metter is full
568
- InRange = checkInRange (vPlayerFuture , pLocalOrigin , Charge_Range ) -- Check for InRange during charge
558
+ InRange = checkInRange (vPlayerFuture , pLocalFuture , Charge_Range ) -- Check for InRange during charge
569
559
if InRange then
570
560
can_attack = true
571
561
tick_count = tick_count + 1
572
- if tick_count % (time - Latency + 2 ) == 0 then
562
+ if tick_count % (time - Latency ) == 0 then
573
563
can_charge = true
574
564
end
575
565
end
576
566
end
577
567
578
- --[[ Check if AutoFakelat is enabled
579
- if AutoFakelat:GetValue() then
580
- -- Check if there is a InRange
581
- if InRange or fDistance < swingrange + 20 then
582
- -- Check if the global fake latency value is not already 200 and is greater than or equal to 200
583
- if defFakeLatency ~= 200 then
584
- -- Set the fake latency value to 200
585
- gui.SetValue("Fake Latency Value (MS)", 200)
586
- end
587
- else
588
- -- Check if the fake latency value is already 200
589
- if gui.GetValue("Fake Latency Value (MS)") == 200 then
590
- -- Set the fake latency value to the global fake latency value
591
- gui.SetValue("Fake Latency Value (MS)", defFakeLatency)
592
-
593
- end
594
- end
595
- end]]
596
-
597
568
598
569
-- [--------------AimBot-------------------] --get hitbox of ennmy pelwis(jittery but works)
599
570
local hitboxes = CurrentTarget :GetHitboxes ()
@@ -829,6 +800,7 @@ if not mmVisuals:GetValue() or not pWeapon:IsMeleeWeapon() then return end
829
800
end
830
801
831
802
-- Draw a second circle if AchargeRange is enabled
803
+ -- center = pLocal:GetAbsOrigin()
832
804
if pLocalClass == 4 and AchargeRange :GetValue () and chargeLeft >= 100 then
833
805
-- Define the color for the second circle
834
806
color = {r = 255 , g = 0 , b = 0 , a = 255 } -- red
0 commit comments