mirror of
https://github.com/projectbraf/braf_factions.git
synced 2026-06-13 17:03:30 +00:00
Several changes to add thugs when CUP is installed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user