Raised This Month: $ Target: $400
 0% 

ham_takedamage or ham_traceattack?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 11-26-2011 , 09:32   Re: ham_takedamage or ham_traceattack?
Reply With Quote #4

From ham_const.inc
PHP Code:
/**
     * Description:        Usually called whenever an entity gets attacked by a hitscan (such as a gun) weapon.
     *                    Use the get/set tr2 natives in fakemeta to handle the traceresult data.
     *                    Do not use a handle of 0 as a traceresult in execution, use create_tr2() from Fakemeta
     *                    to pass a custom handle instead.  (Don't forget to free the handle when you're done.)
     * Forward params:    function(this, idattacker, Float:damage, Float:direction[3], traceresult, damagebits)
     * Return type:        None.
     * Execute params:    ExecuteHam(Ham_TraceAttack, this, idattacker, Float:damage, Float:direction[3], tracehandle, damagebits);
     */
    
Ham_TraceAttack 
PHP Code:
    /**
     * Description:        Usually called whenever an entity takes any kind of damage.
     *                    Inflictor is the entity that caused the damage (such as a gun).
     *                    Attacker is the entity that tirggered the damage (such as the gun's owner).
     * Forward params:    function(this, idinflictor, idattacker, Float:damage, damagebits);
     * Return type:        Integer.
     * Execute params:    ExecuteHam(Ham_TakeDamage, this, idinflictor, idattacker, Float:damage, damagebits);
     */
    
Ham_TakeDamage
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
 



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 08:23.


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