Formatting and header fixes

This commit is contained in:
johnb432 2024-03-01 19:51:21 +01:00
parent fc745e49ab
commit 279f2e0552
8 changed files with 12 additions and 8 deletions

View File

@ -4,7 +4,7 @@
* This function adds an object to have its course tracked (every frame).
*
* Arguments:
* 0: Object to draw track OBJECT> (default: "objNull")
* 0: Object to draw track <OBJECT> (default: objNull)
* 1: Color of trace <STRING> (default: "blue")
* 2: Whether the object is a projectile or whether to add projectile EHs <BOOL> (default: false)
*

View File

@ -17,6 +17,7 @@
*
* Public: No
*/
TRACE_1("begin doFrag",_this);
params ["_posASL", "_velocity", "_ammo", "_shotParents"];

View File

@ -19,6 +19,7 @@
*
* Public: No
*/
params ["_posASL", "_fragVelocity", "_heightAGL", "_fragType", "_maxFragCount", "_shotParents"];
TRACE_6("doFragRandom",_posASL,_fragVelocity,_heightAGL,_fragType,_maxFragCount,_shotParents);

View File

@ -15,6 +15,7 @@
*
* Public: No
*/
#define GLUE(g1,g2) g1##g2
TRACE_1("doSpall",_this);

View File

@ -54,25 +54,25 @@ if (isArray (_ammoConfig >> QGVAR(classes))) then {
* or 0.8 * _gurneyConstant * sqrt (_chargeMass /(_metalMass + _chargeMass * _geometryCoefficient)); (slightly faster to compute)
*/
private _chargeMass = getNumber (_ammoConfig >> QGVAR(CHARGE));
private _chargeMass = getNumber (_ammoConfig >> QGVAR(charge));
if (_chargeMass == 0) then {
_chargeMass = 1;
_notifyMissingEntries = true;
};
private _metalMass = getNumber (_ammoConfig >> QGVAR(METAL));
private _metalMass = getNumber (_ammoConfig >> QGVAR(metal));
if (_metalMass == 0) then {
_metalMass = 2;
_notifyMissingEntries = true;
};
private _geometryCoefficient = getNumber (_ammoConfig >> QGVAR(GURNEY_K));
private _geometryCoefficient = getNumber (_ammoConfig >> QGVAR(gurney_k));
if (_geometryCoefficient == 0) then {
_geometryCoefficient = 0.8;
_notifyMissingEntries = true;
};
private _gurneyConstant = getNumber (_ammoConfig >> QGVAR(GURNEY_C));
private _gurneyConstant = getNumber (_ammoConfig >> QGVAR(gurney_c));
if (_gurneyConstant == 0) then {
_gurneyConstant = 2440;
_notifyMissingEntries = true;

View File

@ -10,10 +10,11 @@
* Material categories as expanded on in line 44 below <STRING>
*
* Example:
* [_surfaceType] call ace_frag_fnc_getFragInfo;
* [_surfaceType] call ace_frag_fnc_getMaterialInfo;
*
* Public: No
*/
#define ACE_FRAG_SOUNDENVIRON_STR_LEN 12
#define ACE_FRAG_SOUNDGIT_STR_LEN 8
#define ACE_FRAG_MATERIAL_SEARCH_LEN 10

View File

@ -1,4 +1,4 @@
private _category = format ["ACE %1", localize LSTRING(Module_DisplayName)];
private _category = format ["ACE %1", LLSTRING(Module_DisplayName)];
[
QGVAR(enabled),

View File

@ -1,4 +1,4 @@
private _category = format ["ACE %1", localize LSTRING(Module_DisplayName)];
private _category = format ["ACE %1", LLSTRING(Module_DisplayName)];
[
QGVAR(debugOptions),