AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change the Hegrenade dmg (https://forums.alliedmods.net/showthread.php?t=86338)

One 02-24-2009 08:26

Change the Hegrenade dmg
 
How can i change the dmg of HEgrenades? any ideas?

anakin_cstrike 02-24-2009 08:35

Re: Change the Hegrenade dmg
 
Have you tried using 'pev_dmg_take' ?

Arkshine 02-24-2009 09:10

Re: Change the Hegrenade dmg
 
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.


All times are GMT -4. The time now is 16:59.

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