Raised This Month: $ Target: $400
 0% 

[CSX/HAM] Client_Death / Ham (It's not to convert)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-14-2015 , 04:48   Re: [CSX/HAM] Client_Death / Ham (It's not to convert)
Reply With Quote #5

client_death is triggered with Damage event, as post, and if player is not more alive.

So, to trigger this forward, you need game to send a Damage message and that player is dead at this time.

Game triggers such message when whetever pev->dmg_take > 0 or pev->dmg_save > 0 or m_bitsHUDDamage != m_bitsDamageType. This is checked at each frame.

Calling TakeDamage should work, if damage is actually applied; as it sets pev->dmg_take at some point.
Calling Killed won't work as it doesn't set anything.
__________________

Last edited by Arkshine; 01-14-2015 at 04:48.
Arkshine 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 15:29.


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