Safemode macro cleanup

This commit is contained in:
SAM 2015-05-15 10:06:11 +02:00
parent 7c099c1009
commit ca17e71200
5 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "script_component.hpp"
EXPLODE_1_PVT(_this,_weapon); PARAMS_1(_weapon);
private ["_mode"]; private ["_mode"];
_mode = getArray (configFile >> "CfgWeapons" >> _weapon >> "modes") select 0; _mode = getArray (configFile >> "CfgWeapons" >> _weapon >> "modes") select 0;

View File

@ -1,7 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "script_component.hpp"
EXPLODE_3_PVT(_this,_unit,_weapon,_muzzle); PARAMS_3(_unit,_weapon,_muzzle);
// don't immediately switch back // don't immediately switch back
if (inputAction "nextWeapon" > 0) exitWith {}; if (inputAction "nextWeapon" > 0) exitWith {};

View File

@ -1,7 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "script_component.hpp"
EXPLODE_2_PVT(_this,_unit,_weapon); PARAMS_2(_unit,_weapon);
private ["_sound"]; private ["_sound"];
_sound = getArray (configFile >> "CfgWeapons" >> _weapon >> "changeFiremodeSound"); _sound = getArray (configFile >> "CfgWeapons" >> _weapon >> "changeFiremodeSound");

View File

@ -1,7 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "script_component.hpp"
EXPLODE_1_PVT(_this,_show); PARAMS_1(_show);
disableSerialization; disableSerialization;

View File

@ -1,7 +1,7 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "script_component.hpp"
EXPLODE_3_PVT(_this,_unit,_weapon,_muzzle); PARAMS_3(_unit,_weapon,_muzzle);
private ["_safedWeapons"]; private ["_safedWeapons"];
_safedWeapons = _unit getVariable [QGVAR(safedWeapons), []]; _safedWeapons = _unit getVariable [QGVAR(safedWeapons), []];