Gotcha travis

This commit is contained in:
esteldunedain 2016-01-19 17:29:58 -03:00
parent 5b90fd8b81
commit c78f2f8479
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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];