2015-01-16 02:36:31 +00:00
|
|
|
/*
|
2015-03-24 04:18:00 +00:00
|
|
|
* Author: Commy2 and esteldunedain
|
2015-01-16 02:36:31 +00:00
|
|
|
* Make the player check the temperature of his weapon
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-02-08 22:54:12 +00:00
|
|
|
* 0: Player <OBJECT>
|
|
|
|
* 1: Weapon <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
2015-01-16 02:36:31 +00:00
|
|
|
*
|
2015-02-08 22:54:12 +00:00
|
|
|
* Example:
|
2015-01-16 02:36:31 +00:00
|
|
|
* None
|
|
|
|
*
|
2015-02-08 22:54:12 +00:00
|
|
|
* Public: No
|
2015-01-16 02:36:31 +00:00
|
|
|
*/
|
2015-01-13 03:37:53 +00:00
|
|
|
#include "\z\ace\addons\overheating\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-16 01:00:01 +00:00
|
|
|
EXPLODE_2_PVT(_this,_player,_weapon);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-04-18 03:40:37 +00:00
|
|
|
private ["_action"];
|
|
|
|
|
2015-01-16 01:00:01 +00:00
|
|
|
// Play animation and report temperature
|
|
|
|
_action = getText (configFile >> "CfgWeapons" >> _weapon >> "ACE_checkTemperatureAction");
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-16 01:00:01 +00:00
|
|
|
if (_action == "") then {
|
|
|
|
_action = "Gear";
|
|
|
|
};
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-16 01:00:01 +00:00
|
|
|
_player playActionNow _action;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
2015-01-16 01:00:01 +00:00
|
|
|
// Launch a PFH that waits a sec before displaying the temperature
|
2015-01-17 06:13:05 +00:00
|
|
|
[FUNC(displayTemperature), [_player, _weapon], 1.0, 0] call EFUNC(common,waitAndExecute);
|