Raised This Month: $ Target: $400
 0% 

[HELP] Regarding event_damage function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-08-2017 , 06:35   Re: [HELP] Regarding event_damage function
Reply With Quote #20

Quote:
Originally Posted by DeMNiX View Post
PHP Code:
public fw_takedamage(iClientiInflictoriAttackerFloat:fDamagem_Damagebits)
{
     if(~
m_Damagebits & (DMG_BULLET DMG_NEVERGIB )) return HAM_IGNORED// if not knife attack return;
     //some yours conditions here
     // no needs to checking on attacker becouse it's knife attack. No needs to check victim
     
if (!you_condition) return HAM_IGNORED;

     
SetHamParamFloat(4fDamage*get_pcvar_float(CVAR_DAMAGE_MULTI))
     return 
HAM_IGNORED;

Doesn't anybody think for my case event_damage makes more sense. Because i want it for multiple weapons??
__________________
And I Am Back.

Last edited by TheSpaniard; 10-08-2017 at 06:35.
TheSpaniard 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 20:47.


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