Подводный дебаг монитор
Название говорит само за себя
Установка:
Качаем скрипт https://yadi.sk/d/xfebcrCPfr5Cb
Открываем в вашей миссии init.sqf и вставляем:
getGasTot = compile preprocessFileLineNumbers "scripts\trindisplay\functions\trin_fn_gasCalc.sqf";
getTisTot = compile preprocessFileLineNumbers "scripts\trindisplay\functions\trin_fn_initTissues.sqf";
Открываем description.ext и вставляем:
#include "scripts\trindisplay\dialog\define.hpp"
class RscTitles {
#include "scripts\trindisplay\dialog\trin_display.hpp"
};
class CfgSounds
{
sounds[] = {};
class trin_dispStart
{
name = "Trin Display Start";
sound[] = {"scripts\trindisplay\sounds\dispStart.ogg", 1, 1};
titles[] = {};
};
class trin_dispExit
{
name = "Trin Display Exit";
sound[] = {"scripts\trindisplay\sounds\dispExit.ogg", 1, 1};
titles[] = {};
};
class trin_dispWarn
{
name = "Trin Display Warn";
sound[] = {"scripts\trindisplay\sounds\dispWarn.ogg", 0.5, 1};
titles[] = {};
};
class trin_dispCount
{
name = "Trin Display Count";
sound[] = {"scripts\trindisplay\sounds\dispCount.ogg", 2, 1};
titles[] = {};
};
class trin_dispClear
{
name = "Trin Display Clear";
sound[] = {"scripts\trindisplay\sounds\dispClear.ogg", 1, 1};
titles[] = {};
};
class trin_dispSilence
{
name = "Trin Display Silence";
sound[] = {"scripts\trindisplay\sounds\dispSilence.ogg", 1, 1};
titles[] = {};
};
};
Открываем mission.sqm и в инициализацию юнита вставляем :
null = [this, 25, 3000, 1.3, 0.15, 0.30, 0.55, 25] execVM "scripts\trindisplay\diverstats.sqf";
Пример :
class Vehicles
{
items=1;
class Item0
{
position[]={1242.3566,-0.13068128,1145.0415};
azimut=95.724602;
id=0;
side="WEST";
vehicle="B_diver_TL_F";
player="PLAYER COMMANDER";
leader=1;
skill=0.60000002;
init="removeAllWeapons this; null = [this, 25, 3000, 1.3, 0.15, 0.30, 0.55, 25] execVM "scripts\trindisplay\diverstats.sqf"";
};
};
Скачать пример готового скрипта https://yadi.sk/d/l9CWbT-Nfr5gM