Skip to content

Commit

Permalink
Error fix and new patch
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown-gd committed Feb 17, 2024
1 parent 2c1b91b commit 2a27c7d
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions lua/autorun/!!!random-patches.yue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ isfunction = isfunction
SERVER = SERVER
pairs = pairs

addonName = "Random Patches v5.10.0"
addonName = "Random Patches v5.11.0"

getHookName = ( patchName, hookName ) ->
return addonName .. "::" .. patchName .. ( hookName or "" )
Expand Down Expand Up @@ -110,14 +110,15 @@ do

registry = _R
unless registry
rawset = rawset

registry = setmetatable( {}, {
"__index": ( tbl, key ) ->
value = findMetaTable( key )
if value == nil
return

tbl[ key ] = value
rawset( tbl, key, value )
return value
} )

Expand Down Expand Up @@ -474,6 +475,24 @@ 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 All @@ -489,12 +508,17 @@ if CLIENT and not MENU_DLL

old = values[ name ]
if old == nil
old = GetDefault( GetConVar( name ) )
conVar = GetConVar( name )
unless conVar
return

old = GetDefault( conVar )
values[ name ] = old
else
values[ name ] = new

OnConVarChanged( name, old, new )
return

-- Speeding up LocalPlayer
do
Expand Down Expand Up @@ -621,5 +645,6 @@ MsgC( SERVER and Color( 50, 100, 250 ) or Color( 250, 100, 50 ), "[" .. addonNam
"Here For You ♪", "Game Patched!", "OK", "Successfully initialized!",
"Powered by Pika Software!", "Made with <3", "Yeah, well", "Alright",
"Hello there", "Specially for you!", "Hello?", "Wow", "I'm here :",
"Init!", "Say hi!", "Performance Update"
"Init!", "Say hi!", "Performance Update", "Yippee!",
"Thanks for installation <3"
}, true ) .. "\n" )

0 comments on commit 2a27c7d

Please sign in to comment.