mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-16 21:22:57 +03:00
Add hidden gear display for force saves
Vanilla commits:a4f86904049170e0f8a0
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user