From 2a2eb38de79df95c71b77fcd1d2e1a27ecbd306e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Tue, 13 Jan 2015 00:37:53 -0300 Subject: [PATCH] overheating: hard code path to parent script_components --- addons/overheating/functions/fnc_checkTemperature.sqf | 2 +- addons/overheating/functions/fnc_clearJam.sqf | 2 +- addons/overheating/functions/fnc_cooldown.sqf | 2 +- addons/overheating/functions/fnc_jamWeapon.sqf | 2 +- addons/overheating/functions/fnc_overheat.sqf | 2 +- addons/overheating/functions/fnc_swapBarrel.sqf | 2 +- addons/overheating/functions/fnc_swapBarrelCallback.sqf | 4 +--- 7 files changed, 7 insertions(+), 9 deletions(-) diff --git a/addons/overheating/functions/fnc_checkTemperature.sqf b/addons/overheating/functions/fnc_checkTemperature.sqf index 4db5105843..a19221eaa4 100644 --- a/addons/overheating/functions/fnc_checkTemperature.sqf +++ b/addons/overheating/functions/fnc_checkTemperature.sqf @@ -1,5 +1,5 @@ // by commy2 and CAA-Picard -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" _this spawn { _player = _this select 0; diff --git a/addons/overheating/functions/fnc_clearJam.sqf b/addons/overheating/functions/fnc_clearJam.sqf index f7ec9568fb..1ae58e0b4f 100644 --- a/addons/overheating/functions/fnc_clearJam.sqf +++ b/addons/overheating/functions/fnc_clearJam.sqf @@ -1,5 +1,5 @@ // by commy2 -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" private ["_unit", "_weapon", "_skipAnim", "_jammedWeapons"]; diff --git a/addons/overheating/functions/fnc_cooldown.sqf b/addons/overheating/functions/fnc_cooldown.sqf index 701768793f..014dfbcbfe 100644 --- a/addons/overheating/functions/fnc_cooldown.sqf +++ b/addons/overheating/functions/fnc_cooldown.sqf @@ -11,7 +11,7 @@ * Return value: * New temperature (number) */ -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" private ["_temperature", "_barrelMass", "_totalTime", "_barrelSurface", "_time", "_deltaTime"]; diff --git a/addons/overheating/functions/fnc_jamWeapon.sqf b/addons/overheating/functions/fnc_jamWeapon.sqf index df5d46046e..ba03b0dfc0 100644 --- a/addons/overheating/functions/fnc_jamWeapon.sqf +++ b/addons/overheating/functions/fnc_jamWeapon.sqf @@ -1,5 +1,5 @@ // based on KK_fnc_playerWeaponMulfunction from KillzoneKid -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" private ["_unit", "_weapon", "_jammedWeapons"]; diff --git a/addons/overheating/functions/fnc_overheat.sqf b/addons/overheating/functions/fnc_overheat.sqf index e46c9a6c6f..889d99c625 100644 --- a/addons/overheating/functions/fnc_overheat.sqf +++ b/addons/overheating/functions/fnc_overheat.sqf @@ -1,5 +1,5 @@ // by commy2 and CAA-Picard -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" private ["_unit", "_weapon", "_ammo", "_projectile", "_velocity", "_variableName", "_overheat", "_temperature", "_time", "_energyIncrement", "_barrelMass", "_scaledTemperature"]; diff --git a/addons/overheating/functions/fnc_swapBarrel.sqf b/addons/overheating/functions/fnc_swapBarrel.sqf index 46e22cef64..bf55445752 100644 --- a/addons/overheating/functions/fnc_swapBarrel.sqf +++ b/addons/overheating/functions/fnc_swapBarrel.sqf @@ -1,5 +1,5 @@ // by commy2 -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" private ["_player", "_weapon"]; diff --git a/addons/overheating/functions/fnc_swapBarrelCallback.sqf b/addons/overheating/functions/fnc_swapBarrelCallback.sqf index 373e451dcf..62e9a41263 100644 --- a/addons/overheating/functions/fnc_swapBarrelCallback.sqf +++ b/addons/overheating/functions/fnc_swapBarrelCallback.sqf @@ -1,5 +1,5 @@ // by commy2 -#include "script_component.hpp" +#include "\z\ace\addons\overheating\script_component.hpp" private ["_player", "_weapon"]; @@ -7,8 +7,6 @@ _player = _this select 0; _weapon = _this select 1; // don't consume the barrel, but rotate through them. -//player removeItem "ACE_SpareBarrel"; - [localize "STR_ACE_Overheating_SwappedBarrel", QUOTE(PATHOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture); _player setVariable [format [QGVAR(%1), _weapon], [0, 0], false];