mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-26 03:36:02 +03:00
mission file template to stage changes
+ Add more missing weights and disabled log spam for other missing items.
This commit is contained in:
50
MPMissions/TEMPLATE/R3F_Realism/R3F_Weight/R3F_DoWeight.sqf
Normal file
50
MPMissions/TEMPLATE/R3F_Realism/R3F_Weight/R3F_DoWeight.sqf
Normal file
@@ -0,0 +1,50 @@
|
||||
/****************************************************************************
|
||||
Copyright (C) 2010 Team ~R3F~
|
||||
This program is free software under the terms of the GNU General Public License version 3.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
@authors team-r3f.org
|
||||
@version 1.00
|
||||
@date 20101006
|
||||
*****************************************************************************/
|
||||
|
||||
#include "R3F_WEIGHT_Configuration.cfg"
|
||||
|
||||
call compile preprocessFile "R3F_Realism\R3F_Weight\R3F_Weight_Fnct.sqf";
|
||||
|
||||
private ["_n","_gearbox_visible","_control","_display","_initial_text"];
|
||||
|
||||
disableSerialization;
|
||||
|
||||
R3F_Weight = call R3F_WEIGHT_FNCT_GetWeight;
|
||||
|
||||
_initial_text = "";
|
||||
_n = 0;
|
||||
while {true} do
|
||||
{
|
||||
sleep R3F_WEIGHT_SHORT_DELAY;
|
||||
|
||||
#ifdef R3F_WEIGHT_SHOW_WEIGHT
|
||||
_display = findDisplay ARMA2_RSCDISPLAYGEARBOX;
|
||||
_gearbox_visible = ( (str _display) != "No display");
|
||||
#else
|
||||
_gearbox_visible = false;
|
||||
#endif
|
||||
|
||||
if(_gearbox_visible) then {
|
||||
R3F_Weight = call R3F_WEIGHT_FNCT_GetWeight;
|
||||
if(_initial_text == "") then {
|
||||
_control = _display displayCtrl ARMA2_CAPTIONGEARBOX;
|
||||
_initial_text = ctrlText _control ;
|
||||
};
|
||||
_control = _display displayCtrl ARMA2_CAPTIONGEARBOX;
|
||||
_control ctrlSetText format[localize "STR_R3F_WEIGHT_InGearBox",_initial_text,R3F_Weight];
|
||||
_n = 0;
|
||||
}else{
|
||||
if( _n > R3F_WEIGHT_LONG_DELAY) then {
|
||||
R3F_Weight = call R3F_WEIGHT_FNCT_GetWeight;
|
||||
_n = 0;
|
||||
};
|
||||
_n = _n + 1 ;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user