mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
reworked formatting and debug functions to increase readability
This commit is contained in:
parent
fbb3c8ad93
commit
1933ea4cfe
@ -18,8 +18,8 @@
|
||||
*/
|
||||
params [
|
||||
"_proj",
|
||||
["_addEHs", true, [false]],
|
||||
["_sidePlayer", true, [false]]
|
||||
["_addEHs", true, [true]],
|
||||
["_sidePlayer", true, [true]]
|
||||
];
|
||||
|
||||
/// track round on each frame
|
||||
|
18
addons/frag/functions/fnc_dev_fired.sqf
Normal file
18
addons/frag/functions/fnc_dev_fired.sqf
Normal 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);
|
@ -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;
|
||||
|
@ -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];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user