2016-05-30 16:37:03 +00:00
|
|
|
//#define DEBUG_MODE_FULL
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
EXPLODE_7_PVT(((_this select 1) select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
2016-09-04 14:44:22 +00:00
|
|
|
private ["_seekerProfilePos", "_i", "_launchParams", "_seekerType", "_seekerTypeName", "_seekerTypesCfg", "_testName", "_testProfile"];
|
2016-05-30 16:37:03 +00:00
|
|
|
|
|
|
|
_launchParams = ((_this select 1) select 1);
|
|
|
|
_seekerTypeName = _launchParams select 2;
|
|
|
|
|
|
|
|
TRACE_1("Seeker type", _seekerTypeName);
|
|
|
|
|
|
|
|
_seekerTypesCfg = ( configFile >> QGVAR(SeekerTypes) );
|
|
|
|
|
|
|
|
_seekerType = nil;
|
2016-09-04 14:44:22 +00:00
|
|
|
for [{_i = 0}, {_i< (count _seekerTypesCfg) }, {_i=_i + 1}] do {
|
2016-05-30 16:37:03 +00:00
|
|
|
_testProfile = _seekerTypesCfg select _i;
|
|
|
|
_testName = configName _testProfile;
|
|
|
|
TRACE_3("", _testName, _testProfile, _seekerTypesCfg);
|
|
|
|
|
|
|
|
if( _testName == _seekerTypeName) exitWith {
|
|
|
|
_seekerType = _seekerTypesCfg select _i;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-04 14:44:22 +00:00
|
|
|
_seekerProfilePos = [0, 0, 0];
|
2016-05-30 16:37:03 +00:00
|
|
|
if(!isNil "_seekerType") then {
|
|
|
|
_seekerProfilePos = _this call (missionNamespace getVariable (getText (_seekerType >> "functionName")));
|
|
|
|
};
|
|
|
|
|
|
|
|
_seekerProfilePos;
|