diff --git a/saco/game/hooks.cpp b/saco/game/hooks.cpp index 1c63470..6d0183f 100644 --- a/saco/game/hooks.cpp +++ b/saco/game/hooks.cpp @@ -507,6 +507,17 @@ NUDE RadarTranslateColor() _asm ret } +//----------------------------------------------------------- + +NUDE SetFarClipHook() +{ + _asm fld fFarClip + _asm push esi + _asm mov esi, [esp+8] + _asm mov edx, dwFarClipReturnAddr + _asm jmp edx +} + //----------------------------------------------------------- // We use this to trap and exit the game