diff --git a/MPMissions/epoch.Altis.pbo b/MPMissions/epoch.Altis.pbo index d49a139..aa37fb0 100644 Binary files a/MPMissions/epoch.Altis.pbo and b/MPMissions/epoch.Altis.pbo differ diff --git a/MPMissions/epoch.Altis/custom/debug_monitor.sqf b/MPMissions/epoch.Altis/custom/debug_monitor.sqf new file mode 100644 index 0000000..819fdd5 --- /dev/null +++ b/MPMissions/epoch.Altis/custom/debug_monitor.sqf @@ -0,0 +1,78 @@ +/* +Author: Fallingsheep +Credits: Osef, [piX] for there status bar script +Description: Shows a debug monitor similar to dayZ mod from arma2 +*/ + +diag_log format ["DEBUG MONITOR: Loading...", player]; +waitUntil {!(isNull (findDisplay 46))}; +disableSerialization; +[] spawn { +sleep 5; + _counter = 180; + _timeSinceLastUpdate = 0; + while {true} do{ + sleep 1; + _counter = _counter - 1; + _time = (round(180-(serverTime)/60)); //edit the '240' (60*4=240) to change the countdown timer if your server restarts are shorter or longer than 4 hour intervals + _hours = (floor(_time/60)); + _minutes = (_time - (_hours * 60)); + + switch(_minutes) do + { + case 9: {_minutes = "09"}; + case 8: {_minutes = "08"}; + case 7: {_minutes = "07"}; + case 6: {_minutes = "06"}; + case 5: {_minutes = "05"}; + case 4: {_minutes = "04"}; + case 3: {_minutes = "03"}; + case 2: {_minutes = "02"}; + case 1: {_minutes = "01"}; + case 0: {_minutes = "00"}; + }; + }; + while {alive _this} do{ + + _pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture')); + if (player == vehicle player) then { + _pic = (getText (configFile >> 'CfgWeapons' >> (currentWeapon player) >> 'picture')); + }else{ + _pic = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'picture')); + }; + + _txt = ''; + _txt = (getText (configFile >> 'CfgVehicles' >> (typeOf vehicle player) >> 'displayName')); + + + hintSilent parseText format[" + %10
+
+ Player Online: %3
+ Health: %1
+ Thirst: %5
+ Hunger: %4
+ Krypto: %2
+ Speed: %11
+ Altitude: %12
+ FPS: %6
+ RESTART IN: %8:%9
+ ", + damage player, //%1 + EPOCH_playerCrypto,//%2 + count playableUnits,//%3 + EPOCH_playerHunger, //%4 + EPOCH_playerThirst,//%5 + round diag_fps,//%6 + _hours, //%7 + _minutes,//%8 + _txt,//%9 + _pic,//%10 + round(speed (vehicle player)),//%11 + round(getPos player select 2) //%12 + ]; + sleep 0.01; + }; +}; +diag_log format ["DEBUG MONITOR: Loaded.", player]; + diff --git a/MPMissions/epoch.Altis/init.sqf b/MPMissions/epoch.Altis/init.sqf index b27227c..fe118ac 100644 --- a/MPMissions/epoch.Altis/init.sqf +++ b/MPMissions/epoch.Altis/init.sqf @@ -24,19 +24,31 @@ BANNED_LIST = [ //BTC Lift,cargo and fast rope _logistic = execVM "=BTC=_Logistic\=BTC=_logistic_Init.sqf"; +//Loadouts +[] execVM "custom\loadout.sqf"; + +//Deploy bike/chopper +[] execVM "custom\deployvehicle.sqf"; //Status Bar [] execVM "custom\fn_statusBar.sqf"; - -// Welcome Credits +//Monitor +[] execVM "custom\debug_monitor.sqf"; +//Intro stuff +//CAMERA INTRO +[] execVM "custom\serverIntro.sqf"; +//WELCOME MESSAGES [] execVM "custom\welcome.sqf"; +//DIARY RULES ETC +[] execVM "custom\briefing.sqf"; //Admin Menu [] execVM "adminmenu\run.sqf"; [] execVM "adminmenu\loop.sqf"; -//Loadouts -[] execVM "custom\loadout.sqf"; + + + //Custom LOOT if (isServer) then { @@ -44,29 +56,13 @@ if (isServer) then { LSdeleter = compile preProcessFileLineNumbers "LSpawner\LSdeleter.sqf"; execVM "LSpawner\Lootspawner.sqf"; }; -//Intro video -[] spawn { - ["freq-arma3-v2.ogv", false] spawn BIS_fnc_titlecard; - waitUntil {!(isNil "BIS_fnc_titlecard_finished")}; - }; -//BUILD BIKE -if (("ItemScraps" in magazines player)&&("ToolKit" in magazines player)) then{ - act = player addaction [("" + ("Build Bike") +""),"custom\Bike.sqf","",5,false,true,"",""]; -}; -//BUILD CHOPPER -if (("ItemScraps" in magazines player)&&("jerrycan_epoch" in magazines player)&&("CircuitParts" in magazines player)&&("VehicleRepair" in magazines player)) then { - act = player addaction [("" + ("Build Chopper") +""),"custom\chopper.sqf","",5,false,true,"",""]; -}; -//PACK BIKE -_target = cursorTarget; -_isbike = _target isKindOf "ebike_epoch"; -if (_isbike) then{ - player addaction [("" + ("PackBike") +""),"custom\packbike2.sqf","",5,false,true,"",""]; -}; //SEM Missions -if(hasInterface)then{execVM "semClient.sqf"}; +if(hasInterface)then{execVM "custom\semClient.sqf"}; +if (isServer) then { + [] ExecVM "\VEMF\init.sqf"; +}; //VEMF Missions if (!isDedicated) then { "VEMFChatMsg" addPublicVariableEventHandler {