Skip to content

Commit

Permalink
refactor to customGear
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Nov 13, 2024
1 parent 9167289 commit 8b778b8
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 99 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;
};
};
};
18 changes: 18 additions & 0 deletions addons/customGear/fauxC7/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#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;
};
};
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "script_component.hpp"
#include "\z\potato\addons\customGear\script_component.hpp"
#undef COMPONENT
#define COMPONENT customGear_fauxLAMG

class CfgPatches {
class ADDON {
Expand Down
12 changes: 0 additions & 12 deletions addons/miscFixes/fauxLAMG/script_component.hpp

This file was deleted.

0 comments on commit 8b778b8

Please sign in to comment.