freghar / arma-additions

Other
4 stars 0 forks source link

Make custom CfgVehicles curator a child of ModuleCurator_F #21

Closed freghar closed 3 years ago

freghar commented 3 years ago

It seems that some mods rely on curator always being initiated by ModuleCurator_F, namely ZEN, and add CBA EventHandlers on it (and, thankfully, its children).

This should also fix https://github.com/freghar/arma-additions/issues/11#issuecomment-770165274 as CBA doesn't specify an inheritance argument in https://github.com/CBATeam/CBA_A3/blob/578b409cf91394866491a671a5a73b08f046a1d4/addons/common/XEH_preInit.sqf#L57-L72 and CBA_fnc_addClassEventHandler apparently defaults to true. Test it and if it works without a custom hack, https://github.com/freghar/arma-additions/blob/f1d3c749d498f9b81b4311989467411daf2dccf6/addons/insta_zeus/fn_mkCuratorAddEHs.sqf , then remove the hack.

freghar commented 3 years ago

https://github.com/freghar/arma-additions/commit/d0e4de6fc1072dae7ec3131d04d7992f3bb08ae3