Raised This Month: $ Target: $400
 0% 

DMG_ALWAYSGIB friendly fire


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SyluxLockjaw100
Senior Member
Join Date: Jul 2010
Location: Novaya Russia
Old 11-24-2011 , 23:42   DMG_ALWAYSGIB friendly fire
Reply With Quote #1

Ok,I have a plugin that turns HE grenades to grenade launchers,and I set DMG_ALWAYSGIB for the grenade launcher,but you can team kill regardless of mp_friendlyfire - DMG_ALWAYSGIB is causing this so how can I prevent it?

Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage)
{
    if ( is_valid_player( attacker ) && get_user_weapon(attacker) == CSW_HEGRENADE && g_HaveGL[attacker] )
    {
        SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
        SetHamParamInteger(5, DMG_ALWAYSGIB) // this damage type is causing friendly fire even if you turn off friendly fire!
    }
}
SyluxLockjaw100 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 08:23.


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