reworked formatting and debug functions to increase readability

This commit is contained in:
lambdatiger 2024-01-08 21:41:05 -06:00
parent fbb3c8ad93
commit 1933ea4cfe
4 changed files with 27 additions and 5 deletions

View File

@ -18,8 +18,8 @@
*/
params [
"_proj",
["_addEHs", true, [false]],
["_sidePlayer", true, [false]]
["_addEHs", true, [true]],
["_sidePlayer", true, [true]]
];
/// track round on each frame

View File

@ -0,0 +1,18 @@
#include "script_component.hpp"
/*
* Author: Lambda.Tiger
* Add fired rounds to dev track.
*
* Arguments:
* None. Parameters inherited from EFUNC(common,firedEH)
*
* Return Value:
* None
*
* Example:
* [clientFiredBIS-XEH] call ace_frag_fnc_fired
*
* Public: No
*/
[_projectile, true, ((side _unit) getFriend (side ACE_player)) >= 0.6] call FUNC(dev_addRound);

View File

@ -16,8 +16,12 @@
*
* Public: No
*/
params ["_obj", ["_color", "blue", [""]], ["_isProj", false, [false]]];
params [
"_obj",
["_color", "blue", ["blue"]],
["_isProj", false, [false]]
];
TRACE_4("devDraw",_this,_obj,_color,_isProj);
/// track round on each frame
// Create entry in position array from hashmap
private _pID = getObjectID _obj;

View File

@ -34,7 +34,7 @@ private _indirectRange = getNumber(configFile >> "cfgAmmo" >> _ammo >> "indirect
if (_skip == 1 || (_force == 0 && {_explosive < 0.5 || {_indirectHit < 3
|| {_indirectRange < 5 && _indirectHit < _indirectRange}}})) then {
TRACE_4("No frag" ,_skip, _explosive, _indirectRange, _indirectHit);
TRACE_5("No frag",_ammo,_skip, _explosive, _indirectRange, _indirectHit);
_shouldFrag set [0, false];
};