Fix change clothes dupe

This commit is contained in:
icomrade
2016-09-27 20:55:06 -04:00
parent 15b05dc84b
commit 869f98efd7
6 changed files with 16 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ return all player magazines with ammo count
private ["_dialog","_created","_magazineArray"];
disableSerialization;
disableUserInput true;
disableUserInput true;
disableUserInput true;
_dialog = findDisplay 106;
_created = false;
@@ -54,5 +56,7 @@ if ( _created ) then {
//endLoadingScreen;
};
disableUserInput false;
disableUserInput false;
disableUserInput false;
_magazineArray

View File

@@ -5,12 +5,13 @@ return all player magazines with ammo count
Modified to save backpack magazine count by icomrade - Base for fix by Ziellos2k
*/
private ["_control","_item","_val","_max","_count","_magazineArray","_dialog"];
disableSerialization;
disableUserInput true;
disableUserInput true;
disableSerialization;
_magazineArray = [[],[]];
_dialog = ["0"] call gearDialog_create;
if ((isNil "_dialog") || {isNull _dialog}) exitWith {disableUserInput false; (findDisplay 106) closeDisplay 0; closeDialog 0; _magazineArray};
if ((isNil "_dialog") || {isNull _dialog}) exitWith {(findDisplay 106) closeDisplay 0; closeDialog 0; disableUserInput false; disableUserInput false; _magazineArray};
//Main inventory
for "_i" from 109 to 120 do {

View File

@@ -1,7 +1,7 @@
//private ["_class","_position","_dir","_group","_oldUnit","_newUnit","_currentWpn","_muzzles","_currentAnim","_playerUID","_weapons","_magazines","_primweapon","_secweapon","_newBackpackType","_backpackWpn","_backpackMag","_backpackWpnTypes","_backpackWpnQtys","_countr","_backpackmagTypes","_backpackmagQtys","_display","_createSafePos","_wpnType","_ismelee","_rndx","_rndy"];
private ["_weapons","_backpackWpn","_backpackMag","_currentWpn","_isWeapon","_backpackWpnTypes","_backpackWpnQtys","_countr","_class","_position","_dir","_currentAnim","_playerUID","_countMags","_magazines","_primweapon","_secweapon","_newBackpackType","_muzzles","_oldUnit","_group","_newUnit","_oldGroup","_idc","_display","_switchUnit"];
_class = _this;
if (gear_done) then {disableUserInput true;disableUserInput true;};
disableSerialization;
//Old location system causes issues with players getting damaged during movement.
//_position = getPosATL player;
@@ -165,7 +165,7 @@ if (!isNil "_newBackpackType" && {_newBackpackType != ""}) then {
call _switchUnit;
};
if (gear_done) then {disableUserInput false;};
if (gear_done) then {disableUserInput false;disableUserInput false;disableUserInput false;disableUserInput false;};
//Debug Message
diag_log "Swichtable Unit Created. Equipment:";