Raised This Month: $ Target: $400
 0% 

Ham Damage (Knife)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
thEsp
BANNED
Join Date: Aug 2017
Old 09-14-2019 , 19:14   Re: Ham Damage (Knife)
Reply With Quote #2

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
Register "Ham_TakeDamage" (pre), check if third parameter (attacker) is carrying a knife and change fourth parameter (SetHamParamFloat) if should.
thEsp 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:23.


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