mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #1009 from acemod/fixMissleGuidanceInhertiacnes
MissleGuidance - fix Inheritance check
This commit is contained in:
commit
8f19c13d85
@ -15,8 +15,10 @@ PARAMS_7(_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
|||||||
// Bail on not missile
|
// Bail on not missile
|
||||||
if(! (_ammo isKindOf "MissileBase") ) exitWith { false };
|
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(QUOTE(ADDON))), false];
|
||||||
if( (count _configs) < 1) exitWith {};
|
if( (count _configs) < 1) exitWith {};
|
||||||
|
|
||||||
_config = (configFile >> "CfgAmmo" >> _ammo >> QUOTE(ADDON));
|
_config = (configFile >> "CfgAmmo" >> _ammo >> QUOTE(ADDON));
|
||||||
_enabled = getNumber ( _config >> "enabled");
|
_enabled = getNumber ( _config >> "enabled");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user