fix team damage mitigating self damage
This commit is contained in:
parent
ae5c37af74
commit
c817ef05df
|
@ -1,11 +1,15 @@
|
||||||
// combat.qc: entity-entity damage functions
|
// combat.qc: entity-entity damage functions
|
||||||
|
|
||||||
float(entity targ, entity attacker) SameTeam = {
|
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 = {
|
float(entity targ, entity attacker) BothPlayers = {
|
||||||
return targ.classname == "player" && attacker.classname == "player";
|
return targ != attacker &&
|
||||||
|
targ.classname == "player" &&
|
||||||
|
attacker.classname == "player";
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user