Add hidden gear display for force saves

Vanilla commits:

a4f8690404

9170e0f8a0
This commit is contained in:
ebayShopper
2017-04-17 17:04:06 -04:00
parent 2f0774d531
commit 78c4ebd597
6 changed files with 251 additions and 19 deletions

View File

@@ -1,22 +1,18 @@
/*
count player magazines with ammo count
value = call player_countMagazines;
return all player magazines with ammo count
count player magazines with ammo count
value = call player_countMagazines;
return all player magazines with ammo count
*/
private ["_dialog","_created","_magazineArray"];
disableSerialization;
disableUserInput true;
disableUserInput true;
disableUserInput true;
_dialog = findDisplay 106;
_created = false;
if ( isNull _dialog ) then {
//startLoadingScreen [""];
DZE_GearCheckBypass = true; //Bypass gear menu checks since dialog will always open on player's gear
skipGearSound = true; //Don't play sound for force save
createGearDialog [player, "RscDisplayGear"];
//Load Minimal gearMenu
createGearDialog [player, "RscDisplayGearMinimal"];
_dialog = findDisplay 106;
_created = true;
};
@@ -55,11 +51,6 @@ for "_i" from 122 to 129 do
if ( _created ) then {
closeDialog 0;
skipGearSound = false;
//endLoadingScreen;
};
disableUserInput false;
disableUserInput false;
disableUserInput false;
_magazineArray

View File

@@ -1,8 +1,8 @@
/*
count player magazines with ammo count
value = call player_countMagazines; //must be called from a spawned thread (|| use spawn)
return all player magazines with ammo count
Modified to save backpack magazine count by icomrade - Base for fix by Ziellos2k
count player magazines with ammo count
value = call player_countMagazines; //must be called from a spawned thread (or use spawn)
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"];
disableUserInput true;