Skip to content

Commit

Permalink
removed feet hitpoints & tightened multishot submunitions.
Browse files Browse the repository at this point in the history
Feet hitpoitns aren't used since calculation for trajectory doesn't account for drag, fragments aimed at feet won't hit
  • Loading branch information
lambdatiger committed Jun 20, 2024
1 parent 474321b commit 60a0dae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions addons/frag/CfgAmmoFragSpawner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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};\
Expand All @@ -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 {
Expand All @@ -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;
};

Expand All @@ -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};
};


Expand Down
2 changes: 1 addition & 1 deletion addons/frag/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down

0 comments on commit 60a0dae

Please sign in to comment.