Skip to content

Commit

Permalink
Faux MG5
Browse files Browse the repository at this point in the history
Adds a "faux" MG5 that inherits from the Marksman DLC HK121.
  • Loading branch information
AChesheireCat committed Aug 20, 2024
1 parent 705430c commit 0bde951
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
17 changes: 17 additions & 0 deletions addons/miscFixes/fauxMG5/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class CfgWeapons {
class MMG_01_tan_F;
class GVAR(MG5): MMG_01_tan_F {
author = "Potato";
displayName = "H&K MG5";
descriptionShort = "General Purpose Machine Gun<br />Caliber: 7.62x51 mm";
baseWeapon = QGVAR(MG5);
recoil = "CUP_MG3_recoil";
magazineWell[] = {"CBA_762x51_LINKS"};
magazines[] = {
"CUP_120Rnd_TE4_LRT4_White_Tracer_762x51_Belt_M",
"CUP_120Rnd_TE4_LRT4_Red_Tracer_762x51_Belt_M",
"CUP_120Rnd_TE4_LRT4_Green_Tracer_762x51_Belt_M",
"CUP_120Rnd_TE4_LRT4_Yellow_Tracer_762x51_Belt_M"
};
};
};
19 changes: 19 additions & 0 deletions addons/miscFixes/fauxMG5/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(MG5)
};
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/fauxMG5/script_component.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#define COMPONENT fauxMG5
#include "\z\potato\addons\core\script_mod.hpp"

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

#ifdef DEBUG_ENABLED_FAUXMG5
#define DEBUG_MODE_FULL
#endif

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

0 comments on commit 0bde951

Please sign in to comment.