Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SoldierGB inheritance chain for CBA XEH. Probably. #3381

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions A3A/addons/core/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
class CfgVehicles
{
class CAManBase;
class SoldierGB : CAManBase {
// Unbreak the vanilla inheritance chain
class Man;
class CAManBase : Man {
class EventHandlers;
};
class SoldierGB : CAManBase {
class EventHandlers : EventHandlers {};
};
class I_G_Soldier_base_F : SoldierGB {
class EventHandlers : EventHandlers //Unbreaking the broken EventHandlers chain of inheritance
class EventHandlers : EventHandlers
{
init = "if (local (_this select 0)) then {[(_this select 0), [], []] call BIS_fnc_unitHeadgear;};";
//init line to perserve the behaviour BI intended for the I_G_Soldier_base_F classs
};
};

// Rebel AI unit types

//don't need to change this one?
Expand Down