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