Skip to content

Commit

Permalink
Add PLR faction (#18)
Browse files Browse the repository at this point in the history
* Initial PLR faction commit

- Added the initial PLR stuff:
  - Basic config setup
  - Insurgent units (and UI) images
  - Some weapons

* Final commit

- Added Paramilitary units
- Added weapons for the paramilitary weapons
- Added vehicles
- Set up CfgGroups.hpp for both Insurgents and Paramilitary units
- Added remaining UI images
- Finished config.cpp
- Updated requiredAddons in main config.cpp
  • Loading branch information
Kresky authored Aug 21, 2019
1 parent b01f7a9 commit e255743
Show file tree
Hide file tree
Showing 53 changed files with 1,094 additions and 0 deletions.
6 changes: 6 additions & 0 deletions addons/main/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class CfgPatches {
"CUP_AirVehicles_C130J",
"CUP_AirVehicles_DC3",
"CUP_AirVehicles_Mi24",
"CUP_AirVehicles_Mi8",
"CUP_AirVehicles_UH1H",
"CUP_AirVehicles_UH60",
"CUP_Creatures_Military_BAF",
Expand All @@ -42,6 +43,7 @@ class CfgPatches {
"CUP_Creatures_Military_TakiInsurgents",
"CUP_Creatures_Military_USArmy",
"CUP_Creatures_Military_USMC",
"CUP_TrackedVehicles_BMP",
"CUP_TrackedVehicles_M113",
"CUP_TrackedVehicles_M60",
"CUP_Weapons_AK",
Expand Down Expand Up @@ -72,12 +74,16 @@ class CfgPatches {
"CUP_Weapons_VSS",
"CUP_Weapons_West_Attachments",
"CUP_WheeledVehicles_BRDM2",
"CUP_WheeledVehicles_BTR40",
"CUP_WheeledVehicles_BTR60",
"CUP_WheeledVehicles_Datsun",
"CUP_WheeledVehicles_LR",
"CUP_WheeledVehicles_MTVR",
"CUP_WheeledVehicles_Stryker",
"CUP_WheeledVehicles_UAZ",
"CUP_WheeledVehicles_Ural",
// Military Gear Pack
"milgp_headgear_cfg",
"milgp_vests_cfg",
// NIArms
"hlcweapons_ar15",
Expand Down
1 change: 1 addition & 0 deletions addons/plr/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x\tacu\addons\plr
17 changes: 17 additions & 0 deletions addons/plr/CfgFactionClasses.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class CfgFactionClasses {
class TACU_PLR_O {
displayName = "People's Liberation and Resistance";
side = 0;
priority = 2;
};
};

class CfgEditorSubcategories {
class TACU_PLR_EdSubCat_Insurgents {
displayName = "Men (Insurgents)";
};

class TACU_PLR_EdSubCat_Paramilitary {
displayName = "Men (Paramilitary)";
};
};
9 changes: 9 additions & 0 deletions addons/plr/CfgGroups.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class CfgGroups {
class EAST {
class TACU_PLR_O {
name = "People's Liberation and Resistance";
#include "CfgGroups_Opfor_Insurgents.hpp"
#include "CfgGroups_Opfor_Paramilitary.hpp"
};
};
};
109 changes: 109 additions & 0 deletions addons/plr/CfgGroups_Opfor_Insurgents.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// PLR Insurgents
class TACU_PLR_G_O_Infantry_Insurgents {
name = "Infantry (Insurgents)";

class TACU_PLR_G_O_Infantry_Insurgents_Patrol {
name = "Patrol";
side = 0;
faction = "TACU_PLR_O";
icon = "\a3\ui_f\data\map\markers\nato\o_inf.paa";
class unit0 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_01";
side = 0;
rank = "SERGEANT";
position[] = {0, 0, 0};
};
class unit1 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_03";
side = 0;
rank = "PRIVATE";
position[] = {5, -5, 0};
};
};

class TACU_PLR_G_O_Infantry_Insurgents_Fireteam {
name = "Fireteam";
side = 0;
faction = "TACU_PLR_O";
icon = "\a3\ui_f\data\map\markers\nato\o_inf.paa";
class unit0 {
vehicle = "TACU_PLR_U_O_Insurgent_TeamLeader";
side = 0;
rank = "SERGEANT";
position[] = {0, 0, 0};
};
class unit1 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_02";
side = 0;
rank = "PRIVATE";
position[] = {5, -5, 0};
};
class unit2 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_05";
side = 0;
rank = "PRIVATE";
position[] = {-5, -5, 0};
};
class unit3 {
vehicle = "TACU_PLR_U_O_Insurgent_Autorifleman";
side = 0;
rank = "PRIVATE";
position[] = {10, -10, 0};
};
};

class TACU_PLR_G_O_Infantry_Insurgents_Squad {
name = "Squad";
side = 0;
faction = "TACU_PLR_O";
icon = "\a3\ui_f\data\map\markers\nato\o_inf.paa";
class unit0 {
vehicle = "TACU_PLR_U_O_Insurgent_TeamLeader";
side = 0;
rank = "SERGEANT";
position[] = {0, 0, 0};
};
class unit1 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_02";
side = 0;
rank = "PRIVATE";
position[] = {5, -5, 0};
};
class unit2 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_04";
side = 0;
rank = "PRIVATE";
position[] = {-5, -5, 0};
};
class unit3 {
vehicle = "TACU_PLR_U_O_Insurgent_Autorifleman";
side = 0;
rank = "PRIVATE";
position[] = {10, -10, 0};
};
class unit4 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_01";
side = 0;
rank = "PRIVATE";
position[] = {-10, -10, 0};
};
class unit5 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_AT";
side = 0;
rank = "PRIVATE";
position[] = {15, -15, 0};
};
class unit6 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_05";
side = 0;
rank = "PRIVATE";
position[] = {-15, -15, 0};
};
class unit7 {
vehicle = "TACU_PLR_U_O_Insurgent_Rifleman_03";
side = 0;
rank = "PRIVATE";
position[] = {20, -20, 0};
};
};
};
109 changes: 109 additions & 0 deletions addons/plr/CfgGroups_Opfor_Paramilitary.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
// PLR Paramilitary
class TACU_PLR_G_O_Infantry_Paramilitary {
name = "Infantry (Paramilitary)";

class TACU_PLR_G_O_Infantry_Paramilitary_Patrol {
name = "Patrol";
side = 0;
faction = "TACU_PLR_O";
icon = "\a3\ui_f\data\map\markers\nato\o_inf.paa";
class unit0 {
vehicle = "TACU_PLR_U_O_Paramilitary_TeamLeader";
side = 0;
rank = "SERGEANT";
position[] = {0, 0, 0};
};
class unit1 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_02";
side = 0;
rank = "PRIVATE";
position[] = {5, -5, 0};
};
};

class TACU_PLR_G_O_Infantry_Paramilitary_Fireteam {
name = "Fireteam";
side = 0;
faction = "TACU_PLR_O";
icon = "\a3\ui_f\data\map\markers\nato\o_inf.paa";
class unit0 {
vehicle = "TACU_PLR_U_O_Paramilitary_TeamLeader";
side = 0;
rank = "SERGEANT";
position[] = {0, 0, 0};
};
class unit1 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_01";
side = 0;
rank = "PRIVATE";
position[] = {5, -5, 0};
};
class unit2 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_02";
side = 0;
rank = "PRIVATE";
position[] = {-5, -5, 0};
};
class unit3 {
vehicle = "TACU_PLR_U_O_Paramilitary_Autorifleman";
side = 0;
rank = "PRIVATE";
position[] = {10, -10, 0};
};
};

class TACU_PLR_G_O_Infantry_Paramilitary_Squad {
name = "Squad";
side = 0;
faction = "TACU_PLR_O";
icon = "\a3\ui_f\data\map\markers\nato\o_inf.paa";
class unit0 {
vehicle = "TACU_PLR_U_O_Paramilitary_TeamLeader";
side = 0;
rank = "SERGEANT";
position[] = {0, 0, 0};
};
class unit1 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_01";
side = 0;
rank = "PRIVATE";
position[] = {5, -5, 0};
};
class unit2 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_02";
side = 0;
rank = "PRIVATE";
position[] = {-5, -5, 0};
};
class unit3 {
vehicle = "TACU_PLR_U_O_Paramilitary_Autorifleman";
side = 0;
rank = "PRIVATE";
position[] = {10, -10, 0};
};
class unit4 {
vehicle = "TACU_PLR_U_O_Paramilitary_Grenadier";
side = 0;
rank = "PRIVATE";
position[] = {-10, -10, 0};
};
class unit5 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_AT";
side = 0;
rank = "PRIVATE";
position[] = {15, -15, 0};
};
class unit6 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_02";
side = 0;
rank = "PRIVATE";
position[] = {-15, -15, 0};
};
class unit7 {
vehicle = "TACU_PLR_U_O_Paramilitary_Rifleman_01";
side = 0;
rank = "PRIVATE";
position[] = {20, -20, 0};
};
};
};
16 changes: 16 additions & 0 deletions addons/plr/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class CfgVehicles {
// Backpacks
class CUP_B_RUS_Backpack;
class TACU_PLR_B_AT: CUP_B_RUS_Backpack {
dlc = QUOTE(PREFIX);
scope = 1;
scopeCurator = 1;
class TransportMagazines {
MACRO_ADDMAGAZINE(CUP_PG7V_M,3);
};
};

#include "CfgVehicles_Insurgents.hpp"
#include "CfgVehicles_Paramilitary.hpp"
#include "CfgVehicles_Vehicles.hpp"
};
Loading

0 comments on commit e255743

Please sign in to comment.