Added ignore private warnings + trace

This commit is contained in:
esteldunedain
2016-02-06 17:07:05 -03:00
parent 37bc67c951
commit fe66d93275
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/* /*
* Author: bux, commy2 * Author: bux, commy2
* Replace the disposable launcher with the used dummy. * Replace the disposable launcher with the used dummy. Called from the unified fired EH.
* *
* Arguments: * Arguments:
* None. Parameters inherited from EFUNC(common,firedEH) * None. Parameters inherited from EFUNC(common,firedEH)
@ -15,6 +15,9 @@
*/ */
#include "script_component.hpp" #include "script_component.hpp"
//IGNORE_PRIVATE_WARNING ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_vehicle", "_gunner", "_turret"];
TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectile, _vehicle, _gunner, _turret);
if (!local _unit || {_weapon != secondaryWeapon _unit}) exitWith {}; if (!local _unit || {_weapon != secondaryWeapon _unit}) exitWith {};
private _replacementTube = getText (configFile >> "CfgWeapons" >> _weapon >> "ACE_UsedTube"); private _replacementTube = getText (configFile >> "CfgWeapons" >> _weapon >> "ACE_UsedTube");

View File

@ -1,6 +1,6 @@
/* /*
* Author: KoffeinFlummi * Author: KoffeinFlummi
* Adjusts the direction of a shell. Only gets called if the gunner is a player * Adjusts the direction of a shell. Called from the unified fired EH only if the gunner is a player.
* *
* Arguments: * Arguments:
* None. Parameters inherited from EFUNC(common,firedEH) * None. Parameters inherited from EFUNC(common,firedEH)
@ -12,6 +12,9 @@
*/ */
#include "script_component.hpp" #include "script_component.hpp"
//IGNORE_PRIVATE_WARNING ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_vehicle", "_gunner", "_turret"];
TRACE_10("firedEH:",_unit, _weapon, _muzzle, _mode, _ammo, _magazine, _projectile, _vehicle, _gunner, _turret);
private _FCSMagazines = _vehicle getVariable [format ["%1_%2", QGVAR(Magazines), _turret], []]; private _FCSMagazines = _vehicle getVariable [format ["%1_%2", QGVAR(Magazines), _turret], []];
private _FCSElevation = _vehicle getVariable format ["%1_%2", QGVAR(Elevation), _turret]; private _FCSElevation = _vehicle getVariable format ["%1_%2", QGVAR(Elevation), _turret];