Skip to content

Commit

Permalink
Removed EyePos, EyeAngles Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Feb 20, 2024
1 parent 42e1a7a commit 916d6d1
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions lua/autorun/!!!random-patches.yue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CurTime = CurTime
SERVER = SERVER
pairs = pairs

addonName = "Random Patches v5.12.0"
addonName = "Random Patches v5.12.1"

getHookName = ( patchName, hookName ) ->
return addonName .. "::" .. patchName .. ( hookName or "" )
Expand Down Expand Up @@ -490,24 +490,6 @@ if SERVER

if CLIENT and not MENU_DLL

do

:Forward = FindMetaTable( "Angle" )
origin, angles, vector = Vector!, Angle!, Vector!

hook_Add "RenderScene", getHookName( "Faster EyePos, EyeAngles and EyeVector" ), ( o, a ) ->
origin, angles, vector = o, a, Forward( a ),
PRE_HOOK or HOOK_MONITOR_HIGH

global EyePos = ->
return origin

global EyeAngles = ->
return angles

global EyeVector = ->
return vector

do

gameevent.Listen( "server_cvar" )
Expand Down

0 comments on commit 916d6d1

Please sign in to comment.