Skip to content

Commit

Permalink
feat: rifleman_lat and autorifleman units
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjydev committed Jan 23, 2024
1 parent a2da61a commit eab6b17
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/units/items/weapon_presets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class SlotInfo;
// Weapon Imports
class MCX_Virtus_14_f_s4;
class MCX_SpearLT_762_16_s1;
class rhs_weap_m249_pip_ris;

// Presets
class PMCS_MCX_Virtus_14_f_s4 : MCX_Virtus_14_f_s4 {
Expand All @@ -20,4 +21,11 @@ class PMCS_MCX_SpearLT_762_16_s1 : MCX_SpearLT_762_16_s1 {
WMUZZLE(MCX_SLC);
WBIPOD(rhsusf_acc_grip1);
};
};

class PMCS_M249_PIP_RIS : rhs_weap_m249_pip_ris {
class LinkedItems {
WOPTIC(rhsusf_acc_ACOG_RMR);
WBIPOD(rhsusf_acc_saw_bipod);
};
};
6 changes: 6 additions & 0 deletions addons/units/stringtable.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<Key ID="STR_PMCS_Units_Soldier_Rifleman">
<English>Rifleman</English>
</Key>
<Key ID="STR_PMCS_Units_Soldier_Rifleman_LAT">
<English>Rifleman (Light AT)</English>
</Key>
<Key ID="STR_PMCS_Units_Soldier_Autorifleman">
<English>Autorifleman</English>
</Key>
<Key ID="STR_PMCS_Units_Soldier_Marksman">
<English>Marksman</English>
</Key>
Expand Down
46 changes: 46 additions & 0 deletions addons/units/units/soldiers_b.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,52 @@ class PMCS_B_Rifleman : PMCS_B_Soldier_base {
respawnMagazines[] = { MAG_5(30Rnd_556x45_Stanag), MAG_2(rhsusf_mag_17Rnd_9x19_JHP), "SmokeShell", "SmokeShellGreen", "Chemlight_green", "Chemlight_green", MAG_2(HandGrenade) };
};

class PMCS_B_Rifleman_LAT : PMCS_B_Soldier_base {
displayName = CSTRING(Soldier_Rifleman_LAT);

scope = 2; // available in 3den
scopeCurator = 2; // available in Zeus
scopeArsenal = 2; // available in arsenal

canDeactivateMines = 0;
engineer = 0;
attendant = 0; // Has Medic trait

backpack = "VSM_Multicam_Backpack_Compact";

weapons[] = { "PMCS_MCX_Virtus_14_f_s4", "rhsusf_weap_glock17g4", "rhs_weap_M136_hedp", "Throw", "Put" };
respawnWeapons[] = { "PMCS_MCX_Virtus_14_f_s4", "rhsusf_weap_glock17g4", "rhs_weap_M136_hedp", "Throw", "Put" };

Items[] = { "FirstAidKit" };
RespawnItems[] = { "FirstAidKit" };

magazines[] = { MAG_5(30Rnd_556x45_Stanag), MAG_2(rhsusf_mag_17Rnd_9x19_JHP), "SmokeShell", "SmokeShellGreen", "Chemlight_green", "Chemlight_green", MAG_2(HandGrenade) };
respawnMagazines[] = { MAG_5(30Rnd_556x45_Stanag), MAG_2(rhsusf_mag_17Rnd_9x19_JHP), "SmokeShell", "SmokeShellGreen", "Chemlight_green", "Chemlight_green", MAG_2(HandGrenade) };
};

class PMCS_B_Autorifleman : PMCS_B_Soldier_base {
displayName = CSTRING(Soldier_Autorifleman);

scope = 2; // available in 3den
scopeCurator = 2; // available in Zeus
scopeArsenal = 2; // available in arsenal

canDeactivateMines = 0;
engineer = 0;
attendant = 0; // Has Medic trait

backpack = "VSM_Multicam_Backpack_Compact";

weapons[] = { "PMCS_M249_PIP_RIS", "rhsusf_weap_glock17g4", "Throw", "Put" };
respawnWeapons[] = { "PMCS_M249_PIP_RIS", "rhsusf_weap_glock17g4", "Throw", "Put" };

Items[] = { "FirstAidKit" };
RespawnItems[] = { "FirstAidKit" };

magazines[] = { MAG_3(rhsusf_200Rnd_556x45_box), MAG_2(rhsusf_mag_17Rnd_9x19_JHP), "SmokeShell", "SmokeShellGreen", "Chemlight_green", "Chemlight_green", MAG_2(HandGrenade) };
respawnMagazines[] = { MAG_3(rhsusf_200Rnd_556x45_box), MAG_2(rhsusf_mag_17Rnd_9x19_JHP), "SmokeShell", "SmokeShellGreen", "Chemlight_green", "Chemlight_green", MAG_2(HandGrenade) };
};

class PMCS_B_Marksman : PMCS_B_Soldier_base {
displayName = CSTRING(Soldier_Marksman);

Expand Down

0 comments on commit eab6b17

Please sign in to comment.