mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
mass must be in grams in this version I guess
This commit is contained in:
parent
8da5e47dcf
commit
437f6c1eef
@ -214,6 +214,7 @@ class G_40mm_HE: GrenadeBase {
|
||||
GVAR(gurney_k) = "3/5"; // interior fragmenter/charge is a sphere
|
||||
};
|
||||
class G_20mm_HE: G_40mm_HE {
|
||||
GVAR(skip) = 1;
|
||||
GVAR(classes)[] = {QGVAR(tiny)};
|
||||
GVAR(metal) = 50;
|
||||
GVAR(charge) = 8;
|
||||
@ -259,7 +260,7 @@ class APERSMine_Range_Ammo: MineBase { // VS-50
|
||||
};
|
||||
|
||||
class APERSBoundingMine_Range_Ammo: MineBase {
|
||||
GVAR(skip) = 0;
|
||||
GVAR(skip) = 1;
|
||||
GVAR(force) = 0;
|
||||
GVAR(classes)[] = {QGVAR(tiny)};
|
||||
GVAR(metal) = 80;
|
||||
@ -460,8 +461,8 @@ class Rocket_04_HE_F: MissileBase { // Shrieker (Hydra 70)
|
||||
GVAR(gurney_k) = "1/2";
|
||||
};
|
||||
class Rocket_03_HE_F: Rocket_04_HE_F { // S-8DM makes the most sense
|
||||
GVAR(metal) = 1;
|
||||
GVAR(charge) = 2;
|
||||
GVAR(metal) = 1800;
|
||||
GVAR(charge) = 2000;
|
||||
GVAR(gurney_c) = 2300;
|
||||
};
|
||||
class Rocket_04_AP_F: Rocket_04_HE_F {
|
||||
@ -618,22 +619,22 @@ class ammo_Missile_ShortRangeAABase: MissileBase {
|
||||
};
|
||||
class ammo_Missile_rim116: ammo_Missile_ShortRangeAABase {
|
||||
GVAR(skip) = 0;
|
||||
GVAR(charge) = 40; // dg
|
||||
GVAR(metal) = 73; // dg
|
||||
GVAR(charge) = 400;
|
||||
GVAR(metal) = 730;
|
||||
GVAR(gurney_c) = 2400;
|
||||
GVAR(classes)[] = {QGVAR(tiny), QGVAR(small)};
|
||||
};
|
||||
class ammo_Missile_BIM9X: ammo_Missile_ShortRangeAABase {
|
||||
GVAR(skip) = 0;
|
||||
GVAR(charge) = 44; // dg
|
||||
GVAR(metal) = 50; // dg
|
||||
GVAR(charge) = 440;
|
||||
GVAR(metal) = 500;
|
||||
GVAR(gurney_c) = 2900;
|
||||
GVAR(classes)[] = {QGVAR(small), QGVAR(tiny)};
|
||||
};
|
||||
class ammo_Missile_AA_R73: ammo_Missile_ShortRangeAABase {
|
||||
GVAR(skip) = 0;
|
||||
GVAR(charge) = 245; // cg
|
||||
GVAR(metal) = 495; // cg
|
||||
GVAR(charge) = 2450;
|
||||
GVAR(metal) = 4950;
|
||||
GVAR(gurney_c) = 2700;
|
||||
GVAR(classes)[] = {QGVAR(small), QGVAR(small), QGVAR(tiny)};
|
||||
};
|
||||
|
@ -11,6 +11,7 @@
|
||||
* 0: Search range for fragments in meters <NUMBER>
|
||||
* 1: Gurney equation calculated speed <NUMBER>
|
||||
* 2: Array of fragment types <ARRAY>
|
||||
* 3: Mass of fragmenting metal modified for frag count <NUMBER>
|
||||
*
|
||||
* Example:
|
||||
* "B_556x45_Ball" call ace_frag_fnc_getFragInfo
|
||||
@ -93,11 +94,13 @@ private _indirectHitRange = getNumber(configFile >> "CfgAmmo" >> _shellType >> "
|
||||
* 0: _fragRange - search range for fragments
|
||||
* 1: _fragVelocity - gurney equation calculated velocity
|
||||
* 2: _fragTypes - array of fragment types
|
||||
* 3: _metalMassModified - mass of fragmenting metal modified for frag count
|
||||
*/
|
||||
_ammoInfo = [
|
||||
80 * _indirectHitRange,
|
||||
ACE_FRAG_IMPERIC_VELOCITY_CONSTANT * _gurneyConstant * sqrt (_chargeMass / (_metalMass + _chargeMass * _geometryCoefficient)),
|
||||
_fragTypes
|
||||
_fragTypes,
|
||||
sqrt (_metalMass / 1000)
|
||||
];
|
||||
|
||||
GVAR(fragInfoCache) set [_ammo, _ammoInfo];
|
||||
|
@ -44,7 +44,7 @@ class CfgAmmo {
|
||||
|
||||
The amount of metal being fragmented. Generally taken as the entire weight of the warhead, though in some cases you might want to only include the fragmentation jacket or body.
|
||||
|
||||
As long as the units match `ace_frag_charge`, the total mass of fragmenting metal given in any unit of mass (i.e., both use `kg`, `g`, or `lbs`).
|
||||
As long as the units match `ace_frag_charge`, the total mass of fragmenting metal given in grams.
|
||||
|
||||
### 2.2 Explosives filler amount
|
||||
|
||||
@ -52,7 +52,7 @@ As long as the units match `ace_frag_charge`, the total mass of fragmenting meta
|
||||
|
||||
The mass of explosive filler in the warhead. This may include any detonation/ignition charges, but usually such charges are relatively small.
|
||||
|
||||
As long as the units match `ace_frag_metal`, the total mass of explosive filler given in any unit of mass (i.e., both use `kg`, `g`, or `lbs`).
|
||||
As long as the units match `ace_frag_metal`, the total mass of explosive filler given in grams.
|
||||
|
||||
### 2.3 Gurney velocity constant
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user