if(deathtype != DEATH_TELEFRAG.m_id)
if(IS_PLAYER(attacker))
{
+ // avoid dealing damage or force to other independent players
if(IS_PLAYER(targ) && targ != attacker && (IS_INDEPENDENT_PLAYER(attacker) || IS_INDEPENDENT_PLAYER(targ)))
{
damage = 0;
force = '0 0 0';
}
+ // avoid dealing damage or force to things owned by other independent players
+ if(targ.realowner)
+ if(IS_INDEPENDENT_PLAYER(targ.realowner) && attacker != targ.realowner)
+ {
+ damage = 0;
+ force = '0 0 0';
+ }
else if(!STAT(FROZEN, targ) && SAME_TEAM(attacker, targ))
{
if(autocvar_teamplay_mode == 1)