mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Gotcha travis
This commit is contained in:
parent
5b90fd8b81
commit
c78f2f8479
@ -36,13 +36,13 @@ GVAR(weaponInfoCache) setText QGVAR(weaponInfoCache);
|
||||
|
||||
// Create a PFH to cool down all player weapons at (infrequent) regular intervals
|
||||
[{
|
||||
if (primaryWeapon ACE_player) != "") then {
|
||||
if (primaryWeapon ACE_player != "") then {
|
||||
[ACE_player, primaryWeapon ACE_player, 0] call FUNC(updateTemperature);
|
||||
};
|
||||
if (handgunWeapon ACE_player) != "") then {
|
||||
if (handgunWeapon ACE_player != "") then {
|
||||
[ACE_player, handgunWeapon ACE_player, 0] call FUNC(updateTemperature);
|
||||
};
|
||||
if (secondaryWeapon ACE_player) != "") then {
|
||||
if (secondaryWeapon ACE_player != "") then {
|
||||
[ACE_player, secondaryWeapon ACE_player, 0] call FUNC(updateTemperature);
|
||||
};
|
||||
}, 5, []] call CBA_fnc_addPerFrameHandler;
|
||||
|
@ -23,6 +23,6 @@ TRACE_2("params",_player,_weapon);
|
||||
[localize LSTRING(SwappedBarrel), QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
|
||||
|
||||
// Publish the temperature variable
|
||||
_unit setVariable [format [QGVAR(%1_temp), 0, true];
|
||||
_unit setVariable [format [QGVAR(%1_temp), _weapon], 0, true];
|
||||
// Store the update time
|
||||
_unit setVariable [format [QGVAR(%1_time), ACE_time];
|
||||
_unit setVariable [format [QGVAR(%1_time), _weapon], ACE_time];
|
||||
|
Loading…
Reference in New Issue
Block a user