Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed dupe glitch #5

Merged
merged 3 commits into from Dec 18, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions DayZ_Epoch_11.Chernarus/ZSC/compiles/player_lockVault.sqf
Expand Up @@ -38,6 +38,13 @@ _alreadyPacking = _obj getVariable["packing",0];
if (_alreadyPacking == 1) exitWith {DZE_ActionInProgress = false; s_player_lockvault = -1; cutText [format[(localize "str_epoch_player_116"),_text], "PLAIN DOWN"]};
_obj setVariable["packing",1];

// Set the bank money of the old vault to zero early, to prevent dupe glitching by a second player
_obj setVariable ["bankMoney", 0, true];
if (s_bank_dialog >= 0) then {
player removeAction s_bank_dialog;
s_bank_dialog = -1;
};

_dir = direction _obj;
_pos = _obj getVariable["OEMPos",(getposATL _obj)];

Expand Down