Skip to content

Commit

Permalink
Adds a faux KAC LAMG (#590)
Browse files Browse the repository at this point in the history
* Adds a faux KAC LAMG

Adds a separate version of the vanilla Mk200 (Stoner 99 LMG) that's in 5.56 with lower recoil.

* just use magwell, add black variant

* Adds default magazine for arsenal compat

- Makes the CUP 100rnd TE4 magazines default for the weapon.

* Added SDR sounds

* Updated classnames to prep for rebasing

Changed the classname from GVAR(LAMG) to a permanent "potato_lmg_LAMG" in order to prevent classname changes for when this gets rebased to the new customGear addon.

* Adjusts VOLUME_TAIL to ease audio sharpness

VOLUME_TAIL 0.631 -> 0.531

* Swap sounds to JSRS

Swapped the sounds from the vanilla SDAR to the JSRS SDAR firing sound (sorry Lambda, I couldn't tweak it to something that I liked...)

* Updated baseWeapon

Following classname standardization

* refactor to customGear

* Update config.cpp

---------

Co-authored-by: PabstMirror <[email protected]>
Co-authored-by: lambdatiger <[email protected]>
  • Loading branch information
3 people authored Nov 17, 2024
1 parent 188c302 commit dedd037
Show file tree
Hide file tree
Showing 6 changed files with 246 additions and 86 deletions.
83 changes: 0 additions & 83 deletions addons/customGear/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -1,87 +1,4 @@
class Mode_FullAuto;
class CfgWeapons {
// Adds C7, C7GL, and C7A2, C7A2
class CUP_arifle_M16A1E1;
class potato_fauxC7_c7: CUP_arifle_M16A1E1 {
author = "Potato";
displayName = "C7";
modes[] = {"Single","FullAuto","Burst_medium","single_medium_optics1","single_medium_optics2"};
class FullAuto: Mode_FullAuto {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_m16a4_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_spar_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
soundBurst = 0;
ffCount = 3;
dispersion = 0.0006;
reloadTime = 0.075;
minRange = 1;
minRangeProbab = 0.2;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
};
class CUP_arifle_M16A1GL;
class potato_fauxC7_c7GL: CUP_arifle_M16A1GL {
author = "Potato";
displayName = "C7 M203";
};
class CUP_arifle_M16A4_Base;
class potato_fauxC7_c7a2: CUP_arifle_M16A4_Base {
author = "Potato";
displayName = "C7A2";
modes[] = {"Single","FullAuto","Burst_medium","single_medium_optics1","single_medium_optics2"};
class FullAuto: Mode_FullAuto {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_m16a4_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_spar_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
soundBurst = 0;
ffCount = 3;
dispersion = 0.0006;
reloadTime = 0.075;
minRange = 1;
minRangeProbab = 0.2;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
};
class CUP_arifle_M16A4_GL;
class potato_fauxC7_c7a2GL: CUP_arifle_M16A4_GL {
author = "Potato";
displayName = "C7A2 M203";
modes[] = {"Single","FullAuto","Burst_medium","single_medium_optics1","single_medium_optics2"};
class FullAuto: Mode_FullAuto {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_m16a4_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_spar_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
soundBurst = 0;
ffCount = 3;
dispersion = 0.0006;
reloadTime = 0.075;
minRange = 1;
minRangeProbab = 0.2;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
};

// Adds MG5 in 7.62x51mm
class MMG_01_tan_F;
class potato_fauxMG5_MG5: MMG_01_tan_F {
Expand Down
5 changes: 2 additions & 3 deletions addons/customGear/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
class CfgPatches {
class ADDON {
units[] = {};
weapons[] = { "potato_fauxC7_c7", "potato_fauxC7_c7GL", "potato_fauxC7_c7a2", "potato_fauxC7_c7a2GL", "potato_fauxMG5_MG5" };
magazines[] = {};
weapons[] = { "potato_fauxMG5_MG5" };
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "potato_core" };
author = "Potato";
authors[] = {"PabstMirror", "AACO"};
authorUrl = "https://github.com/BourbonWarfare/POTATO";
VERSION_CONFIG;
};
};

#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"
84 changes: 84 additions & 0 deletions addons/customGear/fauxC7/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
class Mode_FullAuto;
class CfgWeapons {
// Adds C7, C7GL, and C7A2, C7A2
class CUP_arifle_M16A1E1;
class potato_fauxC7_c7: CUP_arifle_M16A1E1 {
author = "Potato";
displayName = "C7";
modes[] = {"Single","FullAuto","Burst_medium","single_medium_optics1","single_medium_optics2"};
class FullAuto: Mode_FullAuto {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_m16a4_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_spar_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
soundBurst = 0;
ffCount = 3;
dispersion = 0.0006;
reloadTime = 0.075;
minRange = 1;
minRangeProbab = 0.2;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
};
class CUP_arifle_M16A1GL;
class potato_fauxC7_c7GL: CUP_arifle_M16A1GL {
author = "Potato";
displayName = "C7 M203";
};
class CUP_arifle_M16A4_Base;
class potato_fauxC7_c7a2: CUP_arifle_M16A4_Base {
author = "Potato";
displayName = "C7A2";
modes[] = {"Single","FullAuto","Burst_medium","single_medium_optics1","single_medium_optics2"};
class FullAuto: Mode_FullAuto {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_m16a4_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_spar_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
soundBurst = 0;
ffCount = 3;
dispersion = 0.0006;
reloadTime = 0.075;
minRange = 1;
minRangeProbab = 0.2;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
};
class CUP_arifle_M16A4_GL;
class potato_fauxC7_c7a2GL: CUP_arifle_M16A4_GL {
author = "Potato";
displayName = "C7A2 M203";
modes[] = {"Single","FullAuto","Burst_medium","single_medium_optics1","single_medium_optics2"};
class FullAuto: Mode_FullAuto {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_m16a4_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_spar_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
soundBurst = 0;
ffCount = 3;
dispersion = 0.0006;
reloadTime = 0.075;
minRange = 1;
minRangeProbab = 0.2;
midRange = 100;
midRangeProbab = 0.7;
maxRange = 300;
maxRangeProbab = 0.05;
};
};
};
20 changes: 20 additions & 0 deletions addons/customGear/fauxC7/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include "\z\potato\addons\customGear\script_component.hpp"
#undef COMPONENT
#define COMPONENT customGear_fauxC7


class CfgPatches {
class ADDON {
weapons[] = { "potato_fauxC7_c7", "potato_fauxC7_c7GL", "potato_fauxC7_c7a2", "potato_fauxC7_c7a2GL" };
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"potato_core", "CUP_Weapons_LoadOrder", "jsrs_soundmod_cup_weapons"};
skipWhenMissingDependencies = 1;
author = "Potato";
authors[] = {"AChesheireCat"};
authorUrl = "https://github.com/BourbonWarfare/POTATO";
VERSION_CONFIG;
};
};

#include "CfgWeapons.hpp"
118 changes: 118 additions & 0 deletions addons/customGear/fauxLAMG/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
class CfgWeapons {
class Rifle_Long_Base_F;
class LMG_Mk200_F: Rifle_Long_Base_F {
class ACE_Burst_far;
class close;
class far_optic1;
class far_optic2;
class manual;
class medium;
class short;
class Single;
};
class potato_lmg_LAMG: LMG_Mk200_F {
bullet1[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\metal_1.ogg",2.0099,1,10};
bullet2[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\metal_2.ogg",2.0099,1,10};
bullet3[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\metal_3.ogg",2.0099,1,10};
bullet4[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\metal_4.ogg",2.0099,1,10};
bullet5[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\dirt_1.ogg",2.0099,1,10};
bullet6[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\dirt_2.ogg",2.0099,1,10};
bullet7[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\dirt_3.ogg",2.0099,1,10};
bullet8[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\dirt_4.ogg",2.0099,1,10};
bullet9[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\grass_1.ogg",2.0099,1,10};
bullet10[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\grass_2.ogg",2.0099,1,10};
bullet11[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\grass_3.ogg",2.0099,1,10};
bullet12[] = {"\jsrs_soundmod_complete\JSRS_Soundmod_Soundfiles\weapons\shells\small\grass_4.ogg",2.0099,1,10};
soundbullet[] = {"bullet1",0.08,"bullet2",0.084,"bullet3",0.084,"bullet4",0.084,"bullet5",0.093,"bullet6",0.093,"bullet7",0.074,"bullet8",0.074,"bullet9",0.084,"bullet10",0.085,"bullet11",0.083,"bullet12",0.083};
class ACE_Burst_far: ACE_Burst_far {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class close: close {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class far_optic1: far_optic1 {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class far_optic2: far_optic2 {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class manual: manual {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class medium: medium {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class short: short {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
class Single: Single {
class BaseSoundModeType;
class StandardSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_soundset","jsrs_5x56mm_reverb_soundset"};
};
class SilencedSound: BaseSoundModeType {
soundsetshot[] = {"jsrs_uwg_shot_silenced_soundset","jsrs_5x56mm_sd_reverb_soundset"};
};
};
author = "Potato";
displayName = "KAC Light Assault Machine Gun";
descriptionShort = "Light Machine Gun<br />Caliber: 5.56x45 mm";
baseWeapon = "potato_lmg_LAMG";
recoil = "CUP_SAW_recoil";
magazineWell[] = {"CBA_556x45_MINIMI"};
magazines[] = {"CUP_100Rnd_TE4_Red_Tracer_556x45_M249"};
};
class potato_lmg_LAMG_black: potato_lmg_LAMG {
author = "Potato";
displayName = "KAC Light Assault Machine Gun (Black)";
baseWeapon = "potato_lmg_LAMG_black";
picture = "\a3\Weapons_F_Enoch\Machineguns\M200\Data\UI\icon_LMG_Mk200_black_F_ca.paa";
hiddenSelectionsTextures[] = {
"a3\Weapons_F_Enoch\Machineguns\M200\Data\1st_person_black_co.paa",
"a3\Weapons_F_Enoch\Machineguns\M200\Data\Body_black_co.paa",
"a3\Weapons_F_Enoch\Machineguns\M200\Data\grip_black_co.paa"
};
};
};
22 changes: 22 additions & 0 deletions addons/customGear/fauxLAMG/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include "\z\potato\addons\customGear\script_component.hpp"
#undef COMPONENT
#define COMPONENT customGear_fauxLAMG

class CfgPatches {
class ADDON {
weapons[] = {
"potato_lmg_LAMG",
"potato_lmg_LAMG_black"
};
units[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = { "potato_core", "CUP_Weapons_LoadOrder", "jsrs_soundmod_complete_edition", "jsrs_soundmod_complete_edition_soundFiles" };
skipWhenMissingDependencies = 1;
author = "Potato";
authors[] = {"AChesheireCat"};
authorUrl = "https://github.com/BourbonWarfare/POTATO";
VERSION_CONFIG;
};
};

#include "CfgWeapons.hpp"

0 comments on commit dedd037

Please sign in to comment.