Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Mar 8, 2024
1 parent 5207a1b commit 9ac204c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lua/autorun/!!!random-patches.yue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CLIENT = CLIENT
SERVER = SERVER
pairs = pairs

addonName = "Random Patches v5.17.1"
addonName = "Random Patches v5.17.2"

getHookName = ( patchName, hookName ) ->
return addonName .. "::" .. patchName .. ( hookName or "" )
Expand Down Expand Up @@ -575,11 +575,12 @@ do

do

trace, start = {}, Vector!
FrameNumber = FrameNumber
distance = 4096 * 8
:TraceLine = util

trace = {}

util.GetPlayerTrace = ( dir ) =>
start = @EyePos!

Expand All @@ -602,9 +603,8 @@ do

@m_iLastEyeTrace = FrameNumber!

start = @EyePos!
trace.start = start
trace.endpos = start + @GetAimVector! * distance
trace.start = @EyePos!
trace.endpos = trace.start + ( @GetAimVector! * distance )
trace.filter = @

@m_tEyeTrace = TraceLine( trace )
Expand All @@ -617,9 +617,8 @@ do

@m_iLastAimTrace = FrameNumber!

start = @EyePos!
trace.start = start
trace.endpos = start + @EyeAngles!\Forward! * distance
trace.start = @EyePos!
trace.endpos = trace.start + ( @EyeAngles!\Forward! * distance )
trace.filter = @

@m_tAimTrace = TraceLine( trace )
Expand Down

0 comments on commit 9ac204c

Please sign in to comment.