mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Expanded TRACE
This commit is contained in:
parent
448f3e8f92
commit
9dd45e15ce
@ -17,9 +17,11 @@
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#define ACE_FRAG_MIN_FRAG_BUDGET_FOR_RANDOM 3
|
||||
TRACE_1("begin doFrag",_this);
|
||||
|
||||
params ["_posASL", "_velocity", "_ammo", "_shotParents"];
|
||||
TRACE_4("doFrag",_posASL,_velocity,_ammo,_shotParents);
|
||||
|
||||
// Don't let a single object cause all fragmentation events
|
||||
_shotParents params ["_shotParentVehicle"];
|
||||
|
@ -31,7 +31,7 @@ private _hMode = switch (true) do {
|
||||
default {"_mid"};
|
||||
};
|
||||
|
||||
private _type = [QGVAR(def_small_), QGVAR(def_tiny_)] select (_fragType isNotEqualTo [] && {"ace_frag_tiny" isEqualTo (_fragType#0)});
|
||||
private _type = [QGVAR(def_small_), QGVAR(def_tiny_)] select (_fragType isNotEqualTo [] && {"ace_frag_tiny" == (_fragType#0)});
|
||||
|
||||
_maxFragCount = switch (true) do {
|
||||
case (_maxFragCount <= 5): {"5"};
|
||||
|
@ -17,14 +17,15 @@
|
||||
*/
|
||||
|
||||
#define GLUE(g1,g2) g1##g2
|
||||
TRACE_1("doSpall",_this);
|
||||
|
||||
if (CBA_missionTime < GVAR(nextSpallAllowTime)) exitWith {
|
||||
TRACE_2("time exit",CBA_missionTime,GVAR(nextSpallAllowTime));
|
||||
};
|
||||
params ["_projectile", "_objectHit", "_lastPosASL", "_lastVelocity", "_surfaceNorm", "_surfaceType", "_ammo", "_shotParents", "_vectorUp"];
|
||||
|
||||
if (_ammo == "" ||
|
||||
{_objectHit isKindOf "CAManBase"}) exitWith {
|
||||
params ["_projectile", "_objectHit", "_lastPosASL", "_lastVelocity", "_surfaceNorm", "_surfaceType", "_ammo", "_shotParents", "_vectorUp"];
|
||||
TRACE_9("doSpall",_projectile,_objectHit,_lastPosASL,_lastVelocity,_surfaceNorm,_surfaceType,_ammo,_shotParents,_vectorUp);
|
||||
|
||||
if (_ammo == "" || {_objectHit isKindOf "CAManBase"}) exitWith {
|
||||
TRACE_4("invalid round or hit",CBA_missionTime,GVAR(nextSpallAllowTime),_objectHit,_lastPosASL);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user