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

Adds a faux KAC LAMG #590

Merged
merged 12 commits into from
Nov 17, 2024
32 changes: 32 additions & 0 deletions addons/miscFixes/fauxLAMG/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class CfgWeapons {
class LMG_Mk200_F;
class GVAR(LAMG): LMG_Mk200_F {
lambdatiger marked this conversation as resolved.
Show resolved Hide resolved
author = "Potato";
displayName = "KAC Light Assault Machine Gun";
descriptionShort = "Light Machine Gun<br />Caliber: 5.56x45 mm";
baseWeapon = QGVAR(LAMG);
recoil = "CUP_SAW_recoil";
magazineWell[] = {"CBA_556x45_MINIMI"};
magazines[] = {
"200Rnd_556x45_Box_F",
"200Rnd_556x45_Box_Red_F",
"200Rnd_556x45_Box_Tracer_F",
"200Rnd_556x45_Box_Tracer_Red_F",

"CUP_200Rnd_TE4_Red_Tracer_556x45_M249",
"CUP_200Rnd_TE4_Yellow_Tracer_556x45_M249",
"CUP_200Rnd_TE4_Green_Tracer_556x45_M249",
"CUP_200Rnd_TE1_Red_Tracer_556x45_M249",
"CUP_200Rnd_TE4_Green_Tracer_556x45_M249_Pouch",
"CUP_200Rnd_TE4_Red_Tracer_556x45_M249_Pouch",
"CUP_200Rnd_TE4_Yellow_Tracer_556x45_M249_Pouch",
"CUP_200Rnd_TE1_Red_Tracer_556x45_M249_Pouch",
"CUP_100Rnd_TE4_Green_Tracer_556x45_M249",
"CUP_100Rnd_TE4_Red_Tracer_556x45_M249",
"CUP_100Rnd_TE4_Yellow_Tracer_556x45_M249",
"CUP_200Rnd_TE4_Green_Tracer_556x45_L110A1",
"CUP_200Rnd_TE4_Red_Tracer_556x45_L110A1",
"CUP_200Rnd_TE4_Yellow_Tracer_556x45_L110A1"
lambdatiger marked this conversation as resolved.
Show resolved Hide resolved
};
};
};
lambdatiger marked this conversation as resolved.
Show resolved Hide resolved
19 changes: 19 additions & 0 deletions addons/miscFixes/fauxLAMG/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include "script_component.hpp"

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

#include "CfgWeapons.hpp"
12 changes: 12 additions & 0 deletions addons/miscFixes/fauxLAMG/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#define COMPONENT fauxLAMG
#include "\z\potato\addons\core\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS

#ifdef DEBUG_ENABLED_FAUXLAMG
#define DEBUG_MODE_FULL
#endif

#include "\z\potato\addons\core\script_macros.hpp"