Raised This Month: $ Target: $400
 0% 

Change the Hegrenade dmg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-24-2009 , 08:26   Change the Hegrenade dmg
Reply With Quote #1

How can i change the dmg of HEgrenades? any ideas?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 02-24-2009 , 08:35   Re: Change the Hegrenade dmg
Reply With Quote #2

Have you tried using 'pev_dmg_take' ?
__________________

anakin_cstrike is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-24-2009 , 09:10   Re: Change the Hegrenade dmg
Reply With Quote #3

You can try :

Code:
    #include <amxmodx>     #include <hamsandwich>         #define DMG_MULTIPLIER  1.5     #define DMG_HEGRENADE   ( 1 << 24 )         public plugin_init ()     {         RegisterHam( Ham_TakeDamage, "player", "Event_PlayerDamage" );     }         public Event_PlayerDamage ( const Victim, const Inflictor, const Attacker, const Float:Damage, const DamageBits )     {         if ( DamageBits & DMG_HEGRENADE )         {             SetHamParamFloat( 4, Damage * DMG_MULTIPLIER );             return HAM_HANDLED;         }                 return HAM_IGNORED;     }

Use DMG_MULTIPLIER to alter the final damage.
Arkshine is offline
Old 10-12-2011, 12:29
CHyCMyMpNk
This message has been deleted by CHyCMyMpNk. Reason: i find it
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 16:59.


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