Raised This Month: $ Target: $400
 0% 

Change suicide to regular kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-01-2011 , 11:59   Re: Change suicide to regular kill
Reply With Quote #1

If you're making it, you don't need to store the attacker then if you'll use ExecuteHam().
Input for ExecuteHam() is like the callback's inputs:
Quote:
event_player_damage(victim, inflictor, attacker, dmg, dmgbits)
Those beeing Ham_TakeDamage's params, ExecuteHam would be:
Code:
ExecuteHam(Ham_TakeDamage, victim, inflictor, attacker, 3.0, DMG_POISON)
You should look into ham_const.inc for future ham related hooks.

Also your "doPoison" is not called by anything... and registering Ham_TakeDamage doesn't really do anything there, unless that's the way you're triggering poison, but I can't see it be called.
__________________
Hunter-Digital is offline
Reply



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 03:20.


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