diff --git a/addons/characters/$PBOPREFIX$ b/addons/characters/$PBOPREFIX$ new file mode 100755 index 000000000..e9ea6964e --- /dev/null +++ b/addons/characters/$PBOPREFIX$ @@ -0,0 +1 @@ +x\cba\addons\characters diff --git a/addons/characters/CfgEditorSubcategories.hpp b/addons/characters/CfgEditorSubcategories.hpp new file mode 100755 index 000000000..6509d024c --- /dev/null +++ b/addons/characters/CfgEditorSubcategories.hpp @@ -0,0 +1,5 @@ +class CfgEditorSubcategories { + class GVARMAIN(EdSubcat_Personnel_MalariaInfected) { + displayName = CSTRING(MenMalariaInfected); + }; +}; diff --git a/addons/characters/CfgEventHandlers.hpp b/addons/characters/CfgEventHandlers.hpp new file mode 100755 index 000000000..b928bc2de --- /dev/null +++ b/addons/characters/CfgEventHandlers.hpp @@ -0,0 +1,5 @@ +class Extended_PreInit_EventHandlers { + class ADDON { + init = QUOTE(call COMPILE_FILE(XEH_preInit)); + }; +}; diff --git a/addons/characters/CfgFaces.hpp b/addons/characters/CfgFaces.hpp new file mode 100644 index 000000000..1c97de6aa --- /dev/null +++ b/addons/characters/CfgFaces.hpp @@ -0,0 +1,164 @@ +class CfgFaces { + class Default; + class Man_A3: Default { + class AfricanHead_01; + class AfricanHead_01_sick: AfricanHead_01 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_African_sick)}; + }; + + class AfricanHead_02; + class AfricanHead_02_sick: AfricanHead_02 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_African_sick)}; + }; + + class AfricanHead_03; + class AfricanHead_03_sick: AfricanHead_03 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_African_sick)}; + }; + + class AsianHead_A3_01; + class AsianHead_A3_01_sick: AsianHead_A3_01 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class AsianHead_A3_02; + class AsianHead_A3_02_sick: AsianHead_A3_02 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class AsianHead_A3_03; + class AsianHead_A3_03_sick: AsianHead_A3_03 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class AsianHead_A3_04; + class AsianHead_A3_04_sick: AsianHead_A3_04 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class AsianHead_A3_05; + class AsianHead_A3_05_sick: AsianHead_A3_05 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class AsianHead_A3_06; + class AsianHead_A3_06_sick: AsianHead_A3_06 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class AsianHead_A3_07; + class AsianHead_A3_07_sick: AsianHead_A3_07 { + identityTypes[] = {QGVAR(Head_Asian_sick)}; + }; + + class GreekHead_A3_01; + class GreekHead_A3_01_sick: GreekHead_A3_01 { + identityTypes[] = {QGVAR(Head_Greek_sick)}; + }; + + class GreekHead_A3_02; + class GreekHead_A3_02_sick: GreekHead_A3_02 { + identityTypes[] = {QGVAR(Head_Greek_sick)}; + }; + + class GreekHead_A3_03; + class GreekHead_A3_03_sick: GreekHead_A3_03 { + identityTypes[] = {QGVAR(Head_Greek_sick)}; + }; + + class GreekHead_A3_04; + class GreekHead_A3_04_sick: GreekHead_A3_04 { + identityTypes[] = {QGVAR(Head_Greek_sick)}; + }; + + class PersianHead_A3_01; + class PersianHead_A3_01_sick: PersianHead_A3_01 { + identityTypes[] = {QGVAR(Head_TK_sick)}; + }; + + class PersianHead_A3_02; + class PersianHead_A3_02_sick: PersianHead_A3_02 { + identityTypes[] = {QGVAR(Head_TK_sick)}; + }; + + class PersianHead_A3_03; + class PersianHead_A3_03_sick: PersianHead_A3_03 { + identityTypes[] = {QGVAR(Head_TK_sick)}; + }; + + class TanoanHead_A3_01; + class TanoanHead_A3_01_sick: TanoanHead_A3_01 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_02; + class TanoanHead_A3_02_sick: TanoanHead_A3_02 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_03; + class TanoanHead_A3_03_sick: TanoanHead_A3_03 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_04; + class TanoanHead_A3_04_sick: TanoanHead_A3_04 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_05; + class TanoanHead_A3_05_sick: TanoanHead_A3_05 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_06; + class TanoanHead_A3_06_sick: TanoanHead_A3_06 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_07; + class TanoanHead_A3_07_sick: TanoanHead_A3_07 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanHead_A3_08; + class TanoanHead_A3_08_sick: TanoanHead_A3_08 { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; + }; + + class TanoanBossHead; + class TanoanBossHead_sick: TanoanBossHead { + identityTypes[] = {QGVAR(Head_Tanoan_sick)}; //Syndikat_Boss_F + }; + + class WhiteHead_16; //Kelly + class WhiteHead_16_sick: WhiteHead_16 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_Euro_sick)}; + }; + + class WhiteHead_17; //O'Connor + class WhiteHead_17_sick: WhiteHead_17 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_Euro_sick)}; + }; + + class WhiteHead_18; //Byrne + class WhiteHead_18_sick: WhiteHead_18 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_Euro_sick)}; + }; + + class WhiteHead_19; //O'Brien + class WhiteHead_19_sick: WhiteHead_19 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_Euro_sick)}; + }; + + class WhiteHead_20; //Walsh + class WhiteHead_20_sick: WhiteHead_20 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_Euro_sick)}; + }; + + class WhiteHead_21; //O'Sullivan + class WhiteHead_21_sick: WhiteHead_21 { + identityTypes[] = {QGVAR(Head_NATO_sick), QGVAR(Head_Euro_sick)}; + }; + }; +}; diff --git a/addons/characters/CfgVehicles.hpp b/addons/characters/CfgVehicles.hpp new file mode 100755 index 000000000..32dc846e4 --- /dev/null +++ b/addons/characters/CfgVehicles.hpp @@ -0,0 +1,71 @@ +/* identityTypes +QGVAR(Head_NATO_sick) +QGVAR(Head_African_sick) +QGVAR(Head_Asian_sick) +QGVAR(Head_Greek_sick) +QGVAR(Head_TK_sick) +QGVAR(Head_Tanoan_sick) +QGVAR(Head_Euro_sick) +*/ + +class CfgVehicles { + class C_Man_casual_1_F_afro; + class C_Man_casual_1_F_afro_sick: C_Man_casual_1_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_Man_casual_3_F_afro; + class C_Man_casual_3_F_afro_sick: C_Man_casual_3_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_Man_casual_4_F_afro; + class C_Man_casual_4_F_afro_sick: C_Man_casual_4_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_Man_casual_5_F_afro; + class C_Man_casual_5_F_afro_sick: C_Man_casual_5_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_Man_casual_6_F_afro; + class C_Man_casual_6_F_afro_sick: C_Man_casual_6_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_man_polo_1_F_afro; + class C_man_polo_1_F_afro_sick: C_man_polo_1_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_man_polo_2_F_afro; + class C_man_polo_2_F_afro_sick: C_man_polo_2_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_man_polo_3_F_afro; + class C_man_polo_3_F_afro_sick: C_man_polo_3_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_man_polo_6_F_afro; + class C_man_polo_6_F_afro_sick: C_man_polo_6_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; + + class C_man_sport_2_F_afro; + class C_man_sport_2_F_afro_sick: C_man_sport_2_F_afro { + UNLOCK_MALARIA_INFECTED_CIVILIAN; + identityTypes[] = {QGVAR(Head_African_sick)}; + }; +}; diff --git a/addons/characters/XEH_preInit.sqf b/addons/characters/XEH_preInit.sqf new file mode 100644 index 000000000..7a95fc29f --- /dev/null +++ b/addons/characters/XEH_preInit.sqf @@ -0,0 +1,26 @@ +#include "script_component.hpp" + +ADDON = false; + +{ + [_x, "InitPost", { + params ["_unit"]; + + if (isServer) then { + _unit setDamage 0.46; + }; + }, nil, nil, true] call CBA_fnc_addClassEventHandler; +} forEach [ + "C_Man_casual_1_F_afro_sick", + "C_Man_casual_3_F_afro_sick", + "C_Man_casual_4_F_afro_sick", + "C_Man_casual_5_F_afro_sick", + "C_Man_casual_6_F_afro_sick", + "C_man_polo_1_F_afro_sick", + "C_man_polo_2_F_afro_sick", + "C_man_polo_3_F_afro_sick", + "C_man_polo_6_F_afro_sick", + "C_man_sport_2_F_afro_sick" +]; + +ADDON = true; diff --git a/addons/characters/config.cpp b/addons/characters/config.cpp new file mode 100755 index 000000000..1ad17fd9a --- /dev/null +++ b/addons/characters/config.cpp @@ -0,0 +1,20 @@ +#include "script_component.hpp" + +class CfgPatches { + class ADDON { + name = CSTRING(component); + units[] = {}; + weapons[] = {}; + requiredVersion = REQUIRED_VERSION; + requiredAddons[] = {"cba_common"}; + author = "$STR_CBA_Author"; + authors[] = {"Kex"}; + url = "$STR_CBA_URL"; + VERSION_CONFIG; + }; +}; + +#include "CfgEventHandlers.hpp" +#include "CfgEditorSubcategories.hpp" +#include "CfgFaces.hpp" +#include "CfgVehicles.hpp" diff --git a/addons/characters/script_component.hpp b/addons/characters/script_component.hpp new file mode 100755 index 000000000..d1b44aeae --- /dev/null +++ b/addons/characters/script_component.hpp @@ -0,0 +1,18 @@ +#define COMPONENT characters +#include "\x\cba\addons\main\script_mod.hpp" + +#ifdef DEBUG_ENABLED_CHARACTERS + #define DEBUG_MODE_FULL +#endif + +#ifdef DEBUG_SETTINGS_CHARACTERS + #define DEBUG_SETTINGS DEBUG_SETTINGS_CHARACTERS +#endif + +#include "\x\cba\addons\main\script_macros.hpp" + +#define UNLOCK_MALARIA_INFECTED_CIVILIAN\ + author = "$STR_A3_Bohemia_Interactive";\ + scope = 2;\ + scopeCurator = 2;\ + editorSubcategory = QGVARMAIN(EdSubcat_Personnel_MalariaInfected) diff --git a/addons/characters/stringtable.xml b/addons/characters/stringtable.xml new file mode 100755 index 000000000..6255a9be8 --- /dev/null +++ b/addons/characters/stringtable.xml @@ -0,0 +1,15 @@ + + + + + Community Base Addons - Characters + Community Base Addons - Charaktere + Community Base Addons - Caractères + + + Men (Malaria-Infected) + Männer (Malaria infiziert) + Hommes (Infectés par la malaria) + + +