Completed suggested changed by johnb432

This commit is contained in:
lambdatiger 2024-08-13 22:35:36 -05:00
parent 8c68f131fa
commit eb04dec423
3 changed files with 4 additions and 3 deletions

View File

@ -15,7 +15,7 @@
* None
*
* Example:
* [[1000, 45, 60], 0.8, getPosASL ace_player] call ace_frag_fnc_doSpall
* [editorPlacedHouse_0, typeOf _projectile, _projectile, [1000, 40, 60], [0, 1000, 0], [objNull, ace_player]] call ace_frag_fnc_doSpall
*
* Public: No
*/

View File

@ -53,7 +53,7 @@ if (GVAR(spallEnabled) && {_ammo call FUNC(shouldSpall)}) then {
_projectile setVariable [QGVAR(hitPartEventHandler), _hitPartEventHandler];
};
if (GVAR(reflectionsEnabled) || GVAR(enabled) && _ammo call FUNC(shouldFrag)) then {
if (GVAR(reflectionsEnabled) || (GVAR(enabled) && {_ammo call FUNC(shouldFrag)})) then {
private _explodeEventHandler = _projectile addEventHandler [
"Explode",
{

View File

@ -29,7 +29,8 @@ private _maxFrags = round linearConversion [
ACE_FRAG_COUNT_MIN_TIME,
ACE_FRAG_COUNT_MAX_TIME,
(CBA_missionTime - GVAR(lastFragTime)),
ACE_FRAG_COUNT_MIN, ACE_FRAG_COUNT_MAX,
ACE_FRAG_COUNT_MIN,
ACE_FRAG_COUNT_MAX,
true
];
TRACE_2("",_maxFrags,CBA_missionTime - GVAR(lastFragTime));