mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
31 lines
774 B
Plaintext
31 lines
774 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Update cooldown calculation of all player weapons at regular intervals.
|
|
*
|
|
* Argument:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [] call ace_overheating_fnc_updateTemperatureThread
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
if (primaryWeapon ACE_player != "") then {
|
|
[ACE_player, primaryWeapon ACE_player, 0] call FUNC(updateTemperature);
|
|
};
|
|
if (handgunWeapon ACE_player != "") then {
|
|
[ACE_player, handgunWeapon ACE_player, 0] call FUNC(updateTemperature);
|
|
};
|
|
if (secondaryWeapon ACE_player != "") then {
|
|
[ACE_player, secondaryWeapon ACE_player, 0] call FUNC(updateTemperature);
|
|
};
|
|
|
|
// Schedule for execution again after 5 seconds
|
|
[DFUNC(updateTemperatureThread), [], 5] call EFUNC(common,waitAndExecute);
|