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

Compat SPE - Add Tank cannon overpressure and shell fragmentation #10502

Merged
merged 42 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
433a701
~ Added: Shells.hpp and German HE tank shells
jpspider1 Nov 11, 2024
71a212f
~ Added: American tank HE Shells
jpspider1 Nov 11, 2024
6b50785
~ Added: American 57mm AT Gun HE shell
jpspider1 Nov 11, 2024
804df64
~ Added: Include line for shells in CfgAmmo.hpp
jpspider1 Nov 11, 2024
3f52eb3
~ Added: Base ACE Overpressure to all SPE cannons
jpspider1 Nov 11, 2024
d7a7477
~ Added: Fragmentation for 2cm flak
jpspider1 Nov 11, 2024
eca9ecf
~ Removed: Existing Sherman HE shell values
jpspider1 Nov 11, 2024
fa7082f
~ Changed: gurney_C of all German shells to 2930
jpspider1 Nov 11, 2024
efb2de1
Update addons/compat_spe/CfgAmmo/bullets.hpp
jpspider1 Nov 12, 2024
c53fa08
Update addons/compat_spe/CfgAmmo/bullets.hpp
jpspider1 Nov 12, 2024
01355c1
Update addons/compat_spe/CfgWeapons/cannons.hpp
jpspider1 Nov 12, 2024
fe5513d
Update addons/compat_spe/CfgWeapons/cannons.hpp
jpspider1 Nov 12, 2024
c09ba42
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
69f76c6
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
89c8058
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
e02e2b3
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
c20c7b9
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
71fd535
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
55f3f02
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
d71e4ab
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
0d54502
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
03f380f
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
9ff4993
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
7e4fbc3
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
546af77
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
fd20c44
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
8ca9670
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
3d64d16
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
edf618e
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
4e2979a
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
43aebec
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
bf1507d
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
19913a0
Update addons/compat_spe/CfgAmmo/shells.hpp
jpspider1 Nov 12, 2024
bfd6dfc
~ Added: Fragmentation to German AP and HEAT
jpspider1 Nov 12, 2024
2ffefda
~ Added: American AP Fragmentation
jpspider1 Nov 12, 2024
1f026f6
~ Added: American AT and Howitzer Fragmentation
jpspider1 Nov 12, 2024
b26de2b
~ Added: Greyhound HE fragmentation
jpspider1 Nov 12, 2024
5afc219
~ Added: Inheritance SPE_Shell_base
jpspider1 Nov 12, 2024
2feeae7
~ Added: Overpressure priority. Not on wiki.
jpspider1 Nov 12, 2024
2bd28a8
Update addons/compat_spe/CfgAmmo/bullets.hpp
jpspider1 Nov 15, 2024
ed515d9
Update addons/compat_spe/CfgAmmo/bullets.hpp
jpspider1 Nov 15, 2024
68e0bed
Update addons/compat_spe/CfgAmmo/bullets.hpp
johnb432 Nov 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/compat_spe/CfgAmmo.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ class CfgAmmo {
#include "CfgAmmo\grenades.hpp"
#include "CfgAmmo\melee.hpp"
#include "CfgAmmo\bullets.hpp"
#include "CfgAmmo\shells.hpp"
};
25 changes: 25 additions & 0 deletions addons/compat_spe/CfgAmmo/bullets.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,28 @@ class SPE_B_127x99_Ball: SPE_Bullet_Vehicle_base {
class SPE_B_127x99_API: SPE_B_127x99_Ball {
EGVAR(vehicle_damage,incendiary) = 1;
};

// FLAK
class SPE_Bullet_AA_base;
class SPE_SprGr_FlaK_38: SPE_Bullet_AA_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 50;
EGVAR(frag,charge) = 6;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_tiny","ACE_frag_small_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

class SPE_Bullet_AP_base;
class SPE_PzGr_FlaK_38_AP_T: SPE_Bullet_AP_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 50;
EGVAR(frag,charge) = 6;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_tiny","ACE_frag_small_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};
johnb432 marked this conversation as resolved.
Show resolved Hide resolved
130 changes: 130 additions & 0 deletions addons/compat_spe/CfgAmmo/shells.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
//Panzer III J, L, M HE
class SPE_50mm_SprGr38_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 1820;
EGVAR(frag,charge) = 217;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_small_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};
//Panzer III N HE
class SPE_SprGr34_K51_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 5740;
EGVAR(frag,charge) = 686;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_medium_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//Panzer IV, StuG III G HE
class SPE_SprGr34_KWK40_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 5740;
EGVAR(frag,charge) = 686;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_medium_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//Panzer V HE
class SPE_SprGr42_KwK42_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 5740;
EGVAR(frag,charge) = 725;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_medium_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//Panzer VI HE
class SPE_SprGr_KwK36_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 9000;
EGVAR(frag,charge) = 900;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_large","ACE_frag_large_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//StuH 42 HE
class SPE_105mm_StuH42_Gr38_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 14810;
EGVAR(frag,charge) = 2530;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_large","ACE_frag_large_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//Nashorn HE
class SPE_SprGr39_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 9400;
EGVAR(frag,charge) = 1000;
EGVAR(frag,gurney_c) = 2930;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_large","ACE_frag_large_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//M10 HE
class SPE_76mm_M7_M42_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 5840;
EGVAR(frag,charge) = 390;
EGVAR(frag,gurney_c) = 2440;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_medium_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//M18 HE
class SPE_76mm_M1_HC_M42_HE: SPE_76mm_M7_M42_HE
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 5840;
EGVAR(frag,charge) = 390;
EGVAR(frag,gurney_c) = 2440;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_medium_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};

//M4 Sherman 76 HE
class SPE_76mm_M1_M42_HE: SPE_76mm_M7_M42_HE
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 5840;
EGVAR(frag,charge) = 390;
EGVAR(frag,gurney_c) = 2440;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_medium_HD"};
};

//M1 57mm AT gun
class SPE_6pdr_mk10T_HE: SPE_ShellHE_base
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
EGVAR(frag,enabled) = 1;
EGVAR(frag,force) = 1;
EGVAR(frag,metal) = 2720;
EGVAR(frag,charge) = 590;
EGVAR(frag,gurney_c) = 2440;
EGVAR(frag,gurney_k) = "1/2";
EGVAR(frag,classes)[] = {"ACE_frag_medium","ACE_frag_small_HD"};
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};
8 changes: 8 additions & 0 deletions addons/compat_spe/CfgWeapons/cannons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// CANNON
class SPE_CannonCore;
class SPE_TankCannon_base: SPE_CannonCore
{
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
ace_overpressure_angle = 90; // Cone in which the damage is applied (in degrees from the muzzle of the cannon)
ace_overpressure_range = 50; // Range in meters in which the damage is applied
ace_overpressure_damage = 0.85; // Damage multiplier
jpspider1 marked this conversation as resolved.
Show resolved Hide resolved
};