Raised This Month: $ Target: $400
 0% 

SpawnProtect and MirrorDMG examples for new API?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
mahnsawce
Senior Member
Join Date: Apr 2004
Location: internet
Old 09-14-2004 , 13:33  
Reply With Quote #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.
mahnsawce is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode