Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #include < hamsandwich >
- #include < zombieplague >
- #define DMG_HEGRENADE ( 1<<24 )
- public plugin_init( )
- {
- register_plugin( "Custom HE Grenade", "1.0", "Felix_Font" );
- RegisterHam( Ham_TakeDamage, "player", "CPlayer__TakeDamage_Pre", .Post = 0 );
- }
- public CPlayer__TakeDamage_Pre( iVictim, iInflictor, iAttacker, Float: flDamage, iBitsDamage )
- {
- if( ~iBitsDamage & DMG_HEGRENADE )
- return;
- if( zp_get_user_zombie( iVictim ) )
- {
- SetHamParamFloat( 4, flDamage * ( zp_get_ser_nemesis( iVictim ) ? 15 : 8.5 ) );
- return;
- }
- if( iVictim != iAttacker || !is_user_connected( iAttacker ) )
- return;
- SetHamParamFloat( 4, flDamage * 0.1 );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement