Skip to content

Commit

Permalink
poosh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-MF committed Feb 12, 2024
1 parent 7a7423e commit bf967e3
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 0 deletions.
14 changes: 14 additions & 0 deletions addons/recoils/CfgRecoils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ class CfgRecoils {
Caliber_Long_MG
*/

// SMG Recoils - Not handled by caliber as it doesn't really make much difference between them, minor recoil to keep them viable.
class CLASS(SMG_Base) {
kickBack[] = {0.02, 0.03};
muzzleOuter[] = {0.18, 0.3, 0.16, 0.18};
permanent = 0.35;
temporary = 0.02;
};
class CLASS(SMG_Foregrip) {
kickBack[] = {0.018, 0.035};
muzzleOuter[] = {0.16, 0.28, 0.14, 0.16};
permanent = 0.32;
temporary = 0.018;
};

// 12G - Operate differently from regular rifles, the barrel is either short or long.
class CLASS(12G_Long) {
kickBack[] = {0.02, 0.04};
Expand Down
1 change: 1 addition & 0 deletions addons/recoils/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class CfgWeapons {
#include "bohemia\baseclasses.hpp"
#include "bohemia\smgs.hpp"
#include "bohemia\65.hpp"
#include "bohemia\338.hpp"
#include "bohemia\545.hpp"
Expand Down
4 changes: 4 additions & 0 deletions addons/recoils/bohemia/baseclasses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ class DMR_07_base_F;
class EBR_base_F;
class LMG_03_base_F;
class mk20_base_F;
class pdw2000_base_F;
class Rifle_Base_F;
class Rifle_Long_Base_F;
class SMG_01_Base;
class SMG_02_base_F;
class SMG_05_base_F;
class Tavor_base_F;
24 changes: 24 additions & 0 deletions addons/recoils/bohemia/smgs.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// MP5K
class SMG_05_F: SMG_05_base_F {
recoil = QCLASS(SMG_Base);
};

// CPW
class hgun_PDW2000_F: pdw2000_base_F {
recoil = QCLASS(SMG_Base);
};

// P90
class SMG_03_TR_BASE: Rifle_Base_F {
recoil = QCLASS(SMG_Base);
};

// Scorpion Evo
class SMG_02_F: SMG_02_base_F {
recoil = QCLASS(SMG_Base);
};

// Vector
class SMG_01_F: SMG_01_Base {
recoil = QCLASS(SMG_Base);
};
1 change: 1 addition & 0 deletions addons/recoils/cup/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class CfgPatches {

class CfgWeapons {
#include "weapons\baseclasses.hpp"
#include "weapons\smgs.hpp"
#include "weapons\12G.hpp"
#include "weapons\68.hpp"
#include "weapons\545.hpp"
Expand Down
1 change: 1 addition & 0 deletions addons/recoils/cup/weapons/baseclasses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,5 @@ class CUP_saw_base;
class CUP_sgun_M1014_base;
class Rifle_Base_F;
class Rifle_Long_Base_F;
class Rifle_Short_Base_F;
class Tavor_base_F;
48 changes: 48 additions & 0 deletions addons/recoils/cup/weapons/smgs.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// MP5 Series
class CUP_smg_MP5SD6: Rifle_Base_F {
recoil = QCLASS(SMG_Base);
};
class CUP_smg_MP5A5: CUP_smg_MP5SD6 {};
class CUP_smg_MP5A5_Rail: CUP_smg_MP5A5 {};
class CUP_smg_MP5A5_Rail_VFG: CUP_smg_MP5A5_Rail {
recoil = QCLASS(SMG_Foregrip);
};
class CUP_smg_MP5A5_Rail_AFG: CUP_smg_MP5A5_Rail {
recoil = QCLASS(SMG_Foregrip);
};

// MP7
class CUP_smg_MP7: Rifle_Short_Base_F {
recoil = QCLASS(SMG_Foregrip);
};

// Bizon
class CUP_smg_bizon: Rifle_Base_F {
recoil = QCLASS(SMG_Base);
};

// PP-19 Vityaz
class CUP_smg_vityaz: CUP_smg_bizon {};
class CUP_smg_vityaz_vfg: CUP_smg_vityaz {
recoil = QCLASS(SMG_Foregrip);
};
class CUP_smg_vityaz_top_rail: CUP_smg_vityaz {};
class CUP_smg_vityaz_vfg_top_rail: CUP_smg_vityaz_top_rail {
recoil = QCLASS(SMG_Foregrip);
};
class CUP_smg_vityaz_vfg_front_rail: CUP_smg_vityaz_top_rail {
recoil = QCLASS(SMG_Foregrip);
};

// SR-3M Vikhr
class CUP_arifle_SR3M_Vikhr: Rifle_Base_F {
recoil = QCLASS(SMG_Base);
};

class CUP_arifle_SR3M_Vikhr_VFG: CUP_arifle_SR3M_Vikhr {
recoil = QCLASS(SMG_Foregrip);
};
class CUP_arifle_SR3M_Vikhr_top_rail: CUP_arifle_SR3M_Vikhr {};
class CUP_arifle_SR3M_Vikhr_VFG_top_rail: CUP_arifle_SR3M_Vikhr_top_rail {
recoil = QCLASS(SMG_Foregrip);
};

0 comments on commit bf967e3

Please sign in to comment.