From 60a0daef66ee8417053279476dce5e19d589e21b Mon Sep 17 00:00:00 2001 From: lambdatiger Date: Wed, 19 Jun 2024 23:23:02 -0500 Subject: [PATCH] removed feet hitpoints & tightened multishot submunitions. Feet hitpoitns aren't used since calculation for trajectory doesn't account for drag, fragments aimed at feet won't hit --- addons/frag/CfgAmmoFragSpawner.hpp | 14 +++++++------- addons/frag/script_component.hpp | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/frag/CfgAmmoFragSpawner.hpp b/addons/frag/CfgAmmoFragSpawner.hpp index 6d5a4c86513..95f9ee5d26c 100644 --- a/addons/frag/CfgAmmoFragSpawner.hpp +++ b/addons/frag/CfgAmmoFragSpawner.hpp @@ -5,7 +5,7 @@ class GVAR(DOUBLES(size,spawner_2_mid)): GVAR(DOUBLES(size,spawner_2_short)) {\ submunitionConeAngle = 2;\ };\ class GVAR(DOUBLES(size,spawner_2_far)): GVAR(DOUBLES(size,spawner_2_short)) {\ - submunitionConeAngle = 0.9;\ + submunitionConeAngle = 0.7;\ };\ class GVAR(DOUBLES(size,spawner_3_short)): GVAR(DOUBLES(size,spawner_2_short)) {\ submunitionConeType[] = {"random", 3};\ @@ -14,26 +14,26 @@ class GVAR(DOUBLES(size,spawner_3_mid)): GVAR(DOUBLES(size,spawner_3_short)) {\ submunitionConeAngle = 2;\ };\ class GVAR(DOUBLES(size,spawner_3_far)): GVAR(DOUBLES(size,spawner_3_short)) {\ - submunitionConeAngle = 0.9;\ + submunitionConeAngle = 0.7;\ } #define RANDOM_SPAWNER_PROTOTYPE(size,count) class GVAR(DOUBLES(TRIPLES(random,size,count),mid)): GVAR(spawnbase) {\ submunitionConeType[] = {"random", count};\ submunitionAmmo = QGVAR(size);\ submunitionConeAngle = 85;\ - triggerSpeedCoef[] = {-1.5, 1.5};\ + triggerSpeedCoef[] = {-1.25, 1.25};\ };\ class GVAR(DOUBLES(TRIPLES(random,size,count),high)): GVAR(spawnbase) {\ submunitionConeType[] = {"random", count};\ submunitionAmmo = QGVAR(size);\ submunitionConeAngle = 80;\ - triggerSpeedCoef[] = {0.75, 1.5};\ + triggerSpeedCoef[] = {0.75, 1.25};\ };\ class GVAR(DOUBLES(TRIPLES(random,size,count),top)): GVAR(spawnbase) {\ submunitionConeType[] = {"random", count};\ submunitionAmmo = QGVAR(size);\ submunitionConeAngle = 60;\ - triggerSpeedCoef[] = {0.75, 1.5};\ + triggerSpeedCoef[] = {0.75, 1.25};\ } class GVAR(spawnbase): B_65x39_Caseless { @@ -48,7 +48,7 @@ class GVAR(spawnbase): B_65x39_Caseless { submunitionInitialOffset[] = {0,0,0}; submunitionInitSpeed = 0; submunitionParentSpeedCoef = 1; - triggerSpeedCoef[] = {0.75, 1.5}; + triggerSpeedCoef[] = {0.75, 1.25}; triggerTime = 0; }; @@ -65,7 +65,7 @@ class GVAR(spawnbase): B_65x39_Caseless { class GVAR(spawnbase_targeted): GVAR(spawnbase) { submunitionConeType[] = {"random", 2}; submunitionConeAngle = 4.5; - triggerSpeedCoef[] = {0.5, 1}; + triggerSpeedCoef[] = {0.625, 1}; }; diff --git a/addons/frag/script_component.hpp b/addons/frag/script_component.hpp index 8c2a614d3ce..194d2011fa0 100644 --- a/addons/frag/script_component.hpp +++ b/addons/frag/script_component.hpp @@ -27,7 +27,7 @@ #define ACE_FRAG_COUNT_MAX_TIME 1 #define ACE_FRAG_COUNT_MAX 50 // Default hitpoint targets -#define ACE_FRAG_HITPOINTS ["spine1", "spine1", "spine1", "spine2", "spine2", "spine2", "spine3", "spine3", "spine3", "pelvis", "pelvis", "pelvis", "head", "leftarm", "leftarmroll", "leftforearm", "rightarm", "rightarmroll", "rightforearm", "leftupleg", "leftuplegroll", "leftlegroll", "leftfoot", "rightupleg", "rightuplegroll", "rightleg", "rightlegroll", "rightfoot", "neck"] +#define ACE_FRAG_HITPOINTS ["spine1", "spine1", "spine1", "spine2", "spine2", "spine2", "spine3", "spine3", "spine3", "pelvis", "pelvis", "pelvis", "head", "leftarm", "leftarmroll", "leftforearm", "rightarm", "rightarmroll", "rightforearm", "leftupleg", "leftuplegroll", "leftlegroll", "rightupleg", "rightuplegroll", "rightleg", "rightlegroll", "neck"] // half of gravity approx 9.81/2 #define ACE_FRAG_HALF_GRAVITY_APPROX 4.905 // Lowest chance to hit of 0.5%