mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 16:31:36 +03:00
gear access on surrendered player test
This commit is contained in:
1 parent
8f5f01477c
commit
32ac2c7d92
2 files changed
+23
-2
No files matched your search
@@ -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";
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user