mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
MissleGuidance - fix Inheritance check
This commit is contained in:
parent
f81e53bb33
commit
3fa218848d
@ -15,8 +15,10 @@ PARAMS_7(_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
// Bail on not missile
|
||||
if(! (_ammo isKindOf "MissileBase") ) exitWith { false };
|
||||
|
||||
_configs = configProperties [configFile >> "CfgAmmo" >> _ammo >> QUOTE(ADDON), "true", false];
|
||||
//Verify ammo has explicity added guidance config (ignore inheritances)
|
||||
_configs = configProperties [(configFile >> "CfgAmmo" >> _ammo), QUOTE(configName _x == QUOTE(QGVAR(enabled))), false];
|
||||
if( (count _configs) < 1) exitWith {};
|
||||
|
||||
_config = (configFile >> "CfgAmmo" >> _ammo >> QUOTE(ADDON));
|
||||
_enabled = getNumber ( _config >> "enabled");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user