Skip to content

Commit

Permalink
Respawn/Death penalty fixed (dev stupidity)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyqer committed Jul 20, 2018
1 parent 60c830d commit 62b409b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions addons/KP_Ranks/fnc/fn_entityKilled.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ if (isNull _instigator) then {_instigator = _killer};
// Don't do something for AI
if !(isPlayer _instigator) exitWith {};

// Exit when killed and instigator are identical (otherwise players get additional teamkill penalty for respawn/death)
if (_killed isEqualTo _instigator) exitWith {};

// Exit when unknown, enemy side or ambient life
if (side group _killed == sideUnknown || side group _killed == sideEnemy || side group _killed == sideAmbientLife) exitWith {};

Expand Down
2 changes: 1 addition & 1 deletion addons/KP_Ranks/fnc/fn_playerDeath.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ params ["_entity", "_corpse"];
if !(isPlayer _entity) exitWith {};

// Exit, if there is no corpse (e.g. a joining player)
if !(isNull _corpse) exitWith {};
if (isNull _corpse) exitWith {};

// Get some player date
private _playerId = getPlayerUID _entity;
Expand Down

0 comments on commit 62b409b

Please sign in to comment.