 |
|
Senior Member
Join Date: Apr 2004
Location: internet
|

09-14-2004
, 13:33
|
#6
|
Damage is handled entirely by the mod. There's no true way to actually block it, as Metamod (and thus AMX Mod X) can only hook stuff which is sent between the engine and the mod's game dll.
There are, however, a couple kinda hacky ways to block it. Such as blocking events which trigger damage. Some examples would be hooking traceline, which is used for hitscan weapons, or detecting when a grenade is about to explode and stop it, and handle it on your own.
Also there's a method which involves setting the players health to an extremely high amount (such as 1024 + actual health), and monitor it from there.
|
|
|
|