2015-04-08 21:31:44 +00:00
|
|
|
//#define DEBUG_MODE_FULL
|
2015-04-08 15:01:39 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
EXPLODE_7_PVT(((_this select 1) select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
2015-04-08 20:45:43 +00:00
|
|
|
private["_attackProfilePos"];
|
2015-04-08 15:01:39 +00:00
|
|
|
|
2015-04-08 20:45:43 +00:00
|
|
|
_launchParams = ((_this select 1) select 1);
|
|
|
|
_attackProfileName = _launchParams select 3;
|
2015-04-08 15:01:39 +00:00
|
|
|
|
2015-04-08 20:45:43 +00:00
|
|
|
TRACE_1("Attacking profile", _attackProfileName);
|
2015-04-08 15:01:39 +00:00
|
|
|
|
2015-04-08 20:45:43 +00:00
|
|
|
_attackProfilesCfg = ( configFile >> QGVAR(AttackProfiles) );
|
2015-04-08 15:01:39 +00:00
|
|
|
|
2015-04-08 20:45:43 +00:00
|
|
|
_attackProfile = nil;
|
|
|
|
for [{_i=0}, {_i< (count _attackProfilesCfg) }, {_i=_i+1}] do {
|
|
|
|
_testProfile = _attackProfilesCfg select _i;
|
|
|
|
_testName = configName _testProfile;
|
|
|
|
TRACE_3("", _testName, _testProfile, _attackProfilesCfg);
|
|
|
|
|
|
|
|
if( _testName == _attackProfileName) exitWith {
|
|
|
|
_attackProfile = _attackProfilesCfg select _i;
|
|
|
|
};
|
|
|
|
};
|
2015-04-08 15:01:39 +00:00
|
|
|
|
2015-04-08 20:45:43 +00:00
|
|
|
_attackProfilePos = [0,0,0];
|
|
|
|
if(!isNil "_attackProfile") then {
|
2015-04-08 20:57:08 +00:00
|
|
|
_attackProfilePos = _this call (missionNamespace getVariable (getText (_attackProfile >> "functionName")));
|
2015-04-08 20:45:43 +00:00
|
|
|
};
|
2015-04-08 15:01:39 +00:00
|
|
|
|
2015-04-08 20:45:43 +00:00
|
|
|
_attackProfilePos;
|