mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Restrict temp update to current weapon, and only primary or handgun
This commit is contained in:
parent
91b7c7de61
commit
758611d230
@ -16,14 +16,9 @@
|
||||
|
||||
#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);
|
||||
private _currentWeapon = currentWeapon ACE_player;
|
||||
if ((_currentWeapon != "") && {_currentWeapon == primaryWeapon ACE_player || {_currentWeapon == handgunWeapon ACE_player}}) then {
|
||||
[ACE_player, _currentWeapon, 0] call FUNC(updateTemperature);
|
||||
};
|
||||
|
||||
// Schedule for execution again after 5 seconds
|
||||
|
Loading…
Reference in New Issue
Block a user