Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!_punishment) then {
- //i'm "not guilty" - kill me && be punished
- _myKills = ((player getVariable ["humanKills",0]) / 30) * 1000;
- _humanityHit = -(1000 - _myKills); //Default: 2000
- _kills = _source getVariable ["humanKills",0];
- diag_log("P2DEBUG: Player_Death: Enemy " + str (typeOf _source));
- diag_log("P2DEBUG: Player_Death: Enemy HumanKills" + str _kills);
- _source setVariable ["humanKills",(_kills + 1),true];
- PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]];
- publicVariableServer "PVDZE_send";
- } else {
- //i'm "guilty" - kill me as bandit
- _killsV = _source getVariable ["banditKills",0];
- _source setVariable ["banditKills",(_killsV + 1),true];
- //Give humanity for killing as bandit
- diag_log("P2DEBUG: Player_Death: banditKills " + str (typeOf _source));
- diag_log("P2DEBUG: Player_Death: banditKills " + str _killsV);
- _humanityHit = 500;
- PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]];
- publicVariableServer "PVDZE_send";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement