2015-01-16 02:36:31 +00:00
|
|
|
/*
|
|
|
|
* Author: Commy2 and CAA-Picard
|
|
|
|
*
|
|
|
|
* Make the player check the temperature of his weapon
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: _player
|
|
|
|
* 1: _weapon
|
|
|
|
*
|
|
|
|
* Return Values:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
*/
|
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-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);
|