gear access on surrendered player test

This commit is contained in:
[VB]AWOL
2013-11-10 16:29:10 -06:00
parent 8f5f01477c
commit 32ac2c7d92
2 changed files with 23 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ if (_dikCode in actionKeys "Surrender") then {
[objNull, player, rSwitchMove,""] call RE;
player playActionNow "";
player setVariable ["DZE_Surrendered", false, true];
} else {
DZE_Surrender = true;
@@ -32,8 +34,10 @@ if (_dikCode in actionKeys "Surrender") then {
if (secondaryWeapon player != "") then {
player action ["dropWeapon",player, (secondaryWeapon player)];
};
{player action ["dropMagazine", player, _x]} forEach magazines player;
// set publicvariable that allows other player to access gear
player setVariable ["DZE_Surrendered", true, true];
// surrender animation
player playMove "AmovPercMstpSsurWnonDnon";
};