mirror of
https://github.com/Fallingsheep1985/Arma3Epoch.git
synced 2024-08-30 16:42:12 +00:00
debug monitor test 1
This commit is contained in:
parent
b662f6d6bc
commit
2881b43f5e
Binary file not shown.
78
MPMissions/epoch.Altis/custom/debug_monitor.sqf
Normal file
78
MPMissions/epoch.Altis/custom/debug_monitor.sqf
Normal file
@ -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["
|
||||
<t color='#ffff00' font='Zeppelin33' align='Center' >%10</t><br/>
|
||||
<img size='4.75' image='%11'/><br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>Player Online:</t> %3 <br/>
|
||||
<t color='#CC0000' font='Zeppelin33' align='left'>Health:</t> %1 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>Thirst:</t> %5 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>Hunger:</t> %4 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>Krypto:</t> %2 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>Speed:</t> %11 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>Altitude:</t> %12 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>FPS:</t> %6 <br/>
|
||||
<t color='#ffff00' font='Zeppelin33' align='left'>RESTART IN:</t> %8:%9 <br/>
|
||||
",
|
||||
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];
|
||||
|
@ -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 [("<t color=""#0074E8"">" + ("Build Bike") +"</t>"),"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 [("<t color=""#0074E8"">" + ("Build Chopper") +"</t>"),"custom\chopper.sqf","",5,false,true,"",""];
|
||||
};
|
||||
//PACK BIKE
|
||||
_target = cursorTarget;
|
||||
_isbike = _target isKindOf "ebike_epoch";
|
||||
if (_isbike) then{
|
||||
player addaction [("<t color=""#0074E8"">" + ("PackBike") +"</t>"),"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 {
|
||||
|
Loading…
Reference in New Issue
Block a user