diff --git a/addons/frag/functions/fnc_dev_addRound.sqf b/addons/frag/functions/fnc_dev_addRound.sqf index 72cb344fc8..49d4d24bc4 100644 --- a/addons/frag/functions/fnc_dev_addRound.sqf +++ b/addons/frag/functions/fnc_dev_addRound.sqf @@ -18,8 +18,8 @@ */ params [ "_proj", - ["_addEHs", true, [false]], - ["_sidePlayer", true, [false]] + ["_addEHs", true, [true]], + ["_sidePlayer", true, [true]] ]; /// track round on each frame diff --git a/addons/frag/functions/fnc_dev_fired.sqf b/addons/frag/functions/fnc_dev_fired.sqf new file mode 100644 index 0000000000..3570035bb2 --- /dev/null +++ b/addons/frag/functions/fnc_dev_fired.sqf @@ -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); \ No newline at end of file diff --git a/addons/frag/functions/fnc_dev_trackObj.sqf b/addons/frag/functions/fnc_dev_trackObj.sqf index 4da8e86031..9b43ec9c5c 100644 --- a/addons/frag/functions/fnc_dev_trackObj.sqf +++ b/addons/frag/functions/fnc_dev_trackObj.sqf @@ -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; diff --git a/addons/frag/functions/fnc_shouldFrag.sqf b/addons/frag/functions/fnc_shouldFrag.sqf index 16d69b3117..587b21d4bd 100644 --- a/addons/frag/functions/fnc_shouldFrag.sqf +++ b/addons/frag/functions/fnc_shouldFrag.sqf @@ -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]; };