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

Unlock malaria-infected civs #1344

Merged
merged 14 commits into from
Jan 20, 2021
1 change: 1 addition & 0 deletions addons/characters/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\cba\addons\characters
5 changes: 5 additions & 0 deletions addons/characters/CfgEditorSubcategories.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class CfgEditorSubcategories {
class EdSubcat_Personnel_MalariaInfected {
displayName = CSTRING(MenMalariaInfected);
};
};
69 changes: 69 additions & 0 deletions addons/characters/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
#define UNLOCK_MALARIA_INFECTED_CIVILIAN \
editorSubcategory = "EdSubcat_Personnel_MalariaInfected"; \
scope = 2; \
scopeCurator = 2; \
class EventHandlers { \
init = "(_this select 0) setIdentity selectRandom [ \
'BIS_Ambient01_sick', \
'BIS_Ambient02_sick', \
'BIS_Ambient03_sick', \
'BIS_Arthur_sick', \
'BIS_Howard_sick', \
'BIS_John_sick', \
'BIS_Lucas_sick', \
'BIS_Renly_sick' \
]; \
(_this select 0) setDamage 0.45"; \
commy2 marked this conversation as resolved.
Show resolved Hide resolved
}

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;
Kexanone marked this conversation as resolved.
Show resolved Hide resolved
};

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;
};

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;
};

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;
};

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;
};

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;
};

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;
};

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;
};

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;
};

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;
};
};
21 changes: 21 additions & 0 deletions addons/characters/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#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;

// This prevents any patched class from requiring this addon
addonRootClass = "A3_Characters_F";
};
};

#include "CfgEditorSubcategories.hpp"
#include "CfgVehicles.hpp"
12 changes: 12 additions & 0 deletions addons/characters/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#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"
15 changes: 15 additions & 0 deletions addons/characters/stringtable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="CBA_A3">
<Package name="Characters">
<Key ID="STR_CBA_Characters_Component">
<English>Community Base Addons - Characters</English>
<German>Community Base Addons - Charaktere</German>
<French>Community Base Addons - Caractères</French>
</Key>
<Key ID="STR_CBA_Characters_MenMalariaInfected">
<English>Men (Malaria-Infected)</English>
<German>Männer (Malariainfiziert)</German>
Kexanone marked this conversation as resolved.
Show resolved Hide resolved
<French>Hommes (Infectés par la malaria)</French>
</Key>
</Package>
</Project>