/* Author: Aaron Clark - EpochMod.com Contributors: Description: Epoch debug monitor Licence: Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike Github: https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_debugMonitor.sqf */ //[[[cog import generate_private_arrays ]]] private ["_customVars","_hours","_val"]; //[[[end]]] _hours = floor(servertime/60/60); _customVars = ""; { _val = missionNamespace getVariable [format ["EPOCH_player%1",_x],EPOCH_defaultVars select _forEachIndex]; if !(_x in ["AliveTime","SpawnArray","HitPoints","MissionArray"]) then { if (_x == "Temp") then { _customVars = _customVars + format["%1: %2°F | %3°C
", _x,_val,_val call EPOCH_convertTemp]; } else { _customVars = _customVars + format["%1: %2
", _x,_val]; }; } }forEach EPOCH_customVars; hintSilent parseText format [" Welcome to Epoch Alpha
Current Version: %1
Build: %2
" + _customVars + "
Fatigue: %3
Damage: %4
Bleeding: %5
Bleed Time: %6
Oxygen: %7

Air Temp: %8
Water Temp: %9
Rain: %10
Overcast: %11

Hours Alive: %12
FPS: %13
Server uptime: %14h %15m
Server FPS: %16
", getText(configFile >> "CfgMods" >> "Epoch" >> "version"), getNumber(missionConfigFile >> "CfgEpochBuild" >> "build"), (getFatigue player), (damage player), (isBleeding player), (getBleedingRemaining player), (getOxygenRemaining player), format ["%1°F | %2°C",EPOCH_CURRENT_WEATHER,EPOCH_CURRENT_WEATHER call EPOCH_convertTemp], format ["%1°F | %2°C",(EPOCH_CURRENT_WEATHER/2),(EPOCH_CURRENT_WEATHER/2) call EPOCH_convertTemp], rain, overcast, round(EPOCH_playerAliveTime/360)/10, round diag_fps, _hours, round((serverTime/60)-(_hours*60)), if (EPOCH_diag_fps isEqualType 0) then [{EPOCH_diag_fps},{"MANIPULATED"}] ];