ACE3/addons/arsenal/functions/fnc_statTextStatement_smokeChemTTL.sqf
Josuan Albin 25b6e73985 Chemlight and IR strobe improvements (#6645)
* Make IR chemlight brighter

* Improve IR strobe light visibility

* Make chemlights more realistic

* Tweak IR strobe light to make it brighter

* Increase chemlight TTL to realistic durations

* Add blue and green hi chemlights, replace orange hi by orange utlra-hi

* Add ACE chemlights to 3DEN chemlight module

* Add zeus chemlight modules for ACE chemlights

* Add time to live stat for hand smokes and chemlights

* Add hi blue and hi green pictures by @Drofseh
2018-11-01 12:49:46 -05:00

41 lines
801 B
Plaintext

#include "script_component.hpp"
/*
* Author: Alganthe
* Text statement for the smoke / chemlight time to live stat.
*
* Arguments:
* 0: not used
* 1: item config path (CONFIG)
*
* Return Value:
* String to display
*
* Public: No
*/
params ["", "_config"];
private _TTL = getNumber (configFile >> "CfgAmmo" >> getText (_config >> "ammo") >> "timeToLive");
if (_TTL > 3600) then {
_TTL = _TTL / 60^2;
_TTL = str _TTL splitString ".";
if (count _TTL > 1) then {
format [
"%1h %2m",
parseNumber (_TTL select 0),
round (60 * parseNumber ("0." + (_TTL select 1)))
]
} else {
format [
"%1h",
parseNumber (_TTL select 0)
]
};
} else {
format ["%1m", round (_TTL / 60)];
};