2015-01-16 02:36:31 +00:00
|
|
|
/*
|
|
|
|
* Author: Commy2
|
|
|
|
*
|
|
|
|
* Swap barrel callback
|
|
|
|
*
|
|
|
|
* Argument:
|
|
|
|
* 0: unit
|
|
|
|
* 1: weapon
|
|
|
|
*
|
|
|
|
* Return value:
|
|
|
|
* None
|
|
|
|
*/
|
2015-01-13 03:37:53 +00:00
|
|
|
#include "\z\ace\addons\overheating\script_component.hpp"
|
2015-01-13 03:23:14 +00:00
|
|
|
|
2015-01-16 02:36:31 +00:00
|
|
|
EXPLODE_2_PVT(_this,_player,_weapon);
|
2015-01-13 03:23:14 +00:00
|
|
|
|
|
|
|
// don't consume the barrel, but rotate through them.
|
2015-01-14 01:26:55 +00:00
|
|
|
[localize "STR_ACE_Overheating_SwappedBarrel", QUOTE(PATHTOF(UI\spare_barrel_ca.paa))] call EFUNC(common,displayTextPicture);
|
2015-01-13 03:23:14 +00:00
|
|
|
|
|
|
|
_player setVariable [format [QGVAR(%1), _weapon], [0, 0], false];
|