fix team damage mitigating self damage

This commit is contained in:
alison wright 2019-09-19 19:37:40 -04:00
parent ae5c37af74
commit c817ef05df

View File

@ -1,11 +1,15 @@
// combat.qc: entity-entity damage functions
float(entity targ, entity attacker) SameTeam = {
return targ.team > 0 && targ.team == attacker.team;
return targ != attacker &&
targ.team > 0 &&
targ.team == attacker.team;
};
float(entity targ, entity attacker) BothPlayers = {
return targ.classname == "player" && attacker.classname == "player";
return targ != attacker &&
targ.classname == "player" &&
attacker.classname == "player";
};
/*