Several changes to add thugs when CUP is installed

This commit is contained in:
Bear
2024-12-30 05:50:41 -03:00
parent 0e545e4b94
commit f0588c319f
15 changed files with 609 additions and 45 deletions

View File

@@ -1,5 +1,12 @@
class O_G_Soldier_F;
class I_G_Soldier_base_F;
class O_G_Soldier_F:I_G_Soldier_base_F
{
class EventHandlers;
};
class O_G_soldier_M_F:I_G_Soldier_base_F
{
class EventHandlers;
};
class braf_factions_thug_pistol: O_G_Soldier_F
{
scope = 2;
@@ -20,19 +27,11 @@ class braf_factions_thug_pistol: O_G_Soldier_F
"LanguageFRE_F",
"Head_Tanoan"
};
#if _has_include("\CUP\Weapons\CUP_Weapons_DynamicLoadout\mk82\CUP_mk82_pod.p3d")
class EventHandlers : EventHandlers {
init = "if (local (_this select 0)) then {[(_this select 0), [], nil] call BIS_fnc_unitHeadgear;[_this select 0] call braf_factions_fnc_thugswearCUP;[_this select 0] call braf_factions_fnc_thugsequippistolCUP;};";
};
#else
class EventHandlers : EventHandlers {
init = "if (local (_this select 0)) then {[(_this select 0), [], nil] call BIS_fnc_unitHeadgear;[_this select 0] call braf_factions_fnc_thugswear;};";
init = "if (local (_this select 0)) then {[(_this select 0), [], nil] call BIS_fnc_unitHeadgear;[_this select 0] call braf_factions_fnc_thugswear;[_this select 0] call braf_factions_fnc_thugsequippistolCUP;};";
};
#endif
};
class O_G_soldier_M_F;
class braf_factions_thug_marksman: O_G_soldier_M_F
{
scope = 2;