Advertisement
player2_dz

Untitled

Nov 13th, 2014
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.01 KB | None | 0 0
  1.         if (!_punishment) then {
  2.             //i'm "not guilty" - kill me && be punished
  3.             _myKills = ((player getVariable ["humanKills",0]) / 30) * 1000;
  4.             _humanityHit = -(1000 - _myKills);  //Default: 2000
  5.             _kills = _source getVariable ["humanKills",0];
  6.             diag_log("P2DEBUG: Player_Death: Enemy " + str (typeOf _source));
  7.             diag_log("P2DEBUG: Player_Death: Enemy HumanKills" + str _kills);
  8.             _source setVariable ["humanKills",(_kills + 1),true];
  9.             PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]];
  10.             publicVariableServer "PVDZE_send";
  11.         } else {
  12.             //i'm "guilty" - kill me as bandit
  13.             _killsV = _source getVariable ["banditKills",0];
  14.             _source setVariable ["banditKills",(_killsV + 1),true];
  15.             //Give humanity for killing as bandit
  16.             diag_log("P2DEBUG: Player_Death: banditKills " + str (typeOf _source));
  17.             diag_log("P2DEBUG: Player_Death: banditKills " + str _killsV);
  18.             _humanityHit = 500;
  19.             PVDZE_send = [_source,"Humanity",[_source,_humanityHit,300]];
  20.             publicVariableServer "PVDZE_send";
  21.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement