Skip to content

Commit 70fa5ce

Browse files
committed
Added watchdog time variables for supports with delays
Watchdog time variables will replace internal `sleep` commands to prevent spamming of 'timed' supports
1 parent 309271b commit 70fa5ce

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

source/dialog/supports_init.hpp

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,19 @@ if (isNil "support_specialized_training_available") then {
1616

1717
if (isNil "support_armory_available") then {
1818
support_armory_available = false;
19-
};
19+
};
20+
21+
/*
22+
Support Timeout variables
23+
Variables that hold the next VALID time to use that supports (in seconds)
24+
Supports should set the next valid time as:
25+
support_exampleSupport_timeout = *now* + xyz seconds;
26+
*/
27+
28+
support_mortar_timeout = 0;
29+
support_jdam_timeout = 0;
30+
support_arty_timeout = 0;
31+
support_cluster_timeout = 0;
32+
support_uav_recon_timeout = 0;
33+
//support_helotaxi_timeout = 0; format may not be suitable
34+
//support_boattaxi_timeout = 0;

0 commit comments

Comments
 (0)