-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
customGear - Custom M433 HEDP and migrating 40x56mm rounds to custom …
…gear (#615) * Changed config.hpp to .cpp and fixed includes * added required addon for MG5 base class * Add attribution * migrated 40mm grenades to customGear and added M433 * rebased to customGear Fix * updated display names and some damage parameters * added readme * Fix JSRS audio effect doubling up w/ the submunitons * lowered penetrator damage * added CUP M32 compat * added CUP MM-1 compat * reverd indirectHit change * removed unused RHS spall code
- Loading branch information
1 parent
28674ad
commit a81c092
Showing
14 changed files
with
208 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
class CfgAmmo { | ||
// Base classes | ||
class ammo_Penetrator_Base; | ||
|
||
|
||
// Updatin 40x46mm LV (M203) & 40x53mm HV grenades (Mk19) | ||
class G_40mm_HE; | ||
class AMMO(40x53mm_HE_M384): G_40mm_HE { | ||
airFriction = -0.00045; | ||
aiAmmoUsageFlags = "64 + 128"; | ||
displayNameshort = "M384 HE"; | ||
displayName = "M384 40x53mm HE"; | ||
ACEGVAR(frag,charge) = 54.5; | ||
ACEGVAR(frag,metal) = 205; | ||
ACEGVAR(frag,gurney_c) = 2769; // comp A-5 | ||
ACEGVAR(frag,fragCount) = 1050; // based on Rheinmetal comparison of new AB round | ||
ACEGVAR(frag,classes)[] = {QACEGVAR(frag,tiny_HD), QACEGVAR(frag,small_HD), QACEGVAR(frag,small_HD)}; | ||
maxSpeed = 250; | ||
typicalSpeed = 240; | ||
timeToLive = 25; | ||
}; | ||
|
||
class G_40mm_HEDP; | ||
class AMMO(40x46mm_HEDP_M433): G_40mm_HEDP { // Amtec corp datasheet | ||
aiAmmoUsageFlags = "64 + 128 + 512"; | ||
cost = 12; | ||
fuseDistance = 15; | ||
displayNameshort = "M433 HEDP"; | ||
displayName = "M433 40x46mm HEDP"; | ||
ACEGVAR(frag,charge) = 0.045; | ||
ACEGVAR(frag,metal) = 0.2; | ||
ACEGVAR(frag,gurney_k) = 1/2; | ||
ACEGVAR(frag,gurney_c) = 2769; // comp A-5 | ||
ACEGVAR(frag,fragCount) = 270; | ||
ACEGVAR(frag,classes)[] = {QACEGVAR(frag,tiny_HD), QACEGVAR(frag,tiny_HD), QACEGVAR(frag,small_HD)}; | ||
// Damage - reduced for smaller one | ||
hit = 65; | ||
indirectHitRange = 3; | ||
maxSpeed = 250; | ||
typicalSpeed = 241; | ||
timeToLive = 25; | ||
// Penetrator | ||
deleteParentWhenTriggered = 0; | ||
submunitionAmmo = QAMMO(40x46mm_HEDP_M433_penetrator); | ||
submunitionDirectionType = "SubmunitionModelDirection"; | ||
submunitionInitialOffset[] = {0, 0, -0.2}; | ||
submunitionInitSpeed = 1000; | ||
submunitionParentSpeedCoef = 0; | ||
triggerOnImpact = 1; | ||
}; | ||
class AMMO(40x53mm_HEDP_M430A1): G_40mm_HEDP { // based on NDC M430A1 HEDP | ||
airFriction = -0.00045; | ||
aiAmmoUsageFlags = "64 + 128 + 512"; | ||
cost = 12; | ||
displayNameshort = "M430A1 HEDP"; | ||
displayName = "M430A1 40x53mm HEDP"; | ||
ACEGVAR(frag,gurney_c) = 2769; // comp A-5 | ||
ACEGVAR(frag,fragCount) = 750; // based on Rheinmetal comparison of new AB round | ||
ACEGVAR(frag,classes)[] = {QACEGVAR(frag,tiny_HD), QACEGVAR(frag,tiny_HD), QACEGVAR(frag,small_HD)}; | ||
// Damage | ||
hit = 80; // reduce to match HEDP | ||
maxSpeed = 250; | ||
typicalSpeed = 241; | ||
timeToLive = 25; | ||
// Penetrator | ||
deleteParentWhenTriggered = 0; | ||
submunitionAmmo = QAMMO(40x53mm_HEDP_M430A1_penetrator); | ||
submunitionDirectionType = "SubmunitionModelDirection"; | ||
submunitionInitialOffset[] = {0, 0, -0.2}; | ||
submunitionInitSpeed = 1000; | ||
submunitionParentSpeedCoef = 0; | ||
triggerOnImpact = 1; | ||
}; | ||
|
||
class AMMO(40x46mm_HEDP_M433_penetrator): ammo_Penetrator_Base { | ||
hit = 70; // a guess | ||
caliber = 4.2; // 63mm steel | ||
timeToLive = 0.1; | ||
// fix double explosion | ||
soundsetexplosion[] = {}; | ||
}; | ||
class AMMO(40x53mm_HEDP_M430A1_penetrator): ammo_Penetrator_Base { | ||
hit = 80; // a guess | ||
caliber = 5.067; // 76mm steel | ||
timeToLive = 0.1; | ||
// fix double explosion | ||
soundsetexplosion[] = {}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
class CfgMagazineWells { | ||
class CBA_40mm_EGLM { | ||
MAGWELL_ENTRY_NAME[] = { | ||
QMAGAZINE(1Rnd_40mm_M433_HEDP) | ||
}; | ||
}; | ||
|
||
class CBA_40mm_GP { | ||
MAGWELL_ENTRY_NAME[] = { | ||
QMAGAZINE(1Rnd_40mm_M433_HEDP) | ||
}; | ||
}; | ||
class CBA_40mm_M203 { | ||
MAGWELL_ENTRY_NAME[] = { | ||
QMAGAZINE(1Rnd_40mm_M433_HEDP) | ||
}; | ||
}; | ||
class MAGWELL(HV_40x53mm) { | ||
MAGWELL_ENTRY_NAME[] = { | ||
QMAGAZINE(96Rnd_40mm_MK19_M430A1_HEDP), | ||
QMAGAZINE(48Rnd_40mm_MK19_M430A1_HEDP), | ||
QMAGAZINE(96Rnd_40mm_MK19_M384_HE), | ||
QMAGAZINE(48Rnd_40mm_MK19_M384_HE) | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class CfgMagazines { | ||
// LV 40x46mm grenade magazines (M203, EGLM) | ||
class 1Rnd_HE_Grenade_shell; | ||
class MAGAZINE(1Rnd_40mm_M433_HEDP): 1Rnd_HE_Grenade_shell { | ||
ammo = QAMMO(40x46mm_HEDP_M433); | ||
count = 1; | ||
displayNameshort = "M433 HEDP"; | ||
displayName = "40x46mm M433 (HEDP) Grenade"; | ||
}; | ||
|
||
// HV 40x53mm grenade launcher | ||
class 200Rnd_40mm_G_belt; | ||
class MAGAZINE(96Rnd_40mm_MK19_M430A1_HEDP): 200Rnd_40mm_G_belt { | ||
ammo = QAMMO(40x53mm_HEDP_M430A1); | ||
count = 96; | ||
displayNameshort = "M430A1 HEDP"; | ||
displayName = "40x53mm M430A1 HEDP"; | ||
initSpeed = 241; | ||
}; | ||
class MAGAZINE(48Rnd_40mm_MK19_M430A1_HEDP): MAGAZINE(96Rnd_40mm_MK19_M430A1_HEDP) { | ||
count = 48; | ||
}; | ||
class MAGAZINE(96Rnd_40mm_MK19_M384_HE): 200Rnd_40mm_G_belt { | ||
ammo = QAMMO(40x53mm_HE_M384); | ||
count = 96; | ||
displayNameshort = "M384 HE"; | ||
displayName = "40x53mm M384 HE"; | ||
initSpeed = 241; | ||
}; | ||
class MAGAZINE(48Rnd_40mm_MK19_M384_HE): MAGAZINE(96Rnd_40mm_MK19_M384_HE) { | ||
count = 48; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
# Custom Gear (customGear) | ||
|
||
A mod that serves as a place to put custom gear retextures, new gear items, and gear conversions (ie. vests converted to backpacks). | ||
A mod that serves as a place to put custom gear retextures, new gear items, and gear conversions (ie. vests converted to backpacks). | ||
|
||
## Current Items | ||
|
||
- Converts some CUP vests (BAF Mk4 belt/webbing, RUAF Smersh in Olive and Coyote, US ALICE LBE, M23 chest rigs in TKE and OD Green, RUAF 6Sh92 LBE, and the vanilla Raven vest) to backpacks | ||
|
||
- Adds re-config'd weapons (C7s + variants, MG5, KAC LAMG) | ||
- Adds re-config'd weapons (C7s + variants, MG5, KAC LAMG) | ||
|
||
- Adds 40x53mm HV M430A1 HEDP and M384 HE grenades for Mk19 and similar grenade launchers | ||
|
||
- Adds 40x46mm LV M433 HEDP grenades for M203 and EGLM UGLs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters