fragmenting projectile velocity isn't used anywhere

This commit is contained in:
lambdatiger 2024-07-29 21:04:55 -05:00
parent 5df635cd61
commit 33a06535eb

View File

@ -56,7 +56,7 @@ if (GVAR(reflectionsEnabled) || GVAR(enabled) && _ammo call FUNC(shouldFrag)) th
private _explodeEventHandler = _projectile addEventHandler [ private _explodeEventHandler = _projectile addEventHandler [
"Explode", "Explode",
{ {
params ["_projectile", "_posASL", "_velocity"]; params ["_projectile", "_posASL"];
if (GVAR(reflectionsEnabled)) then { if (GVAR(reflectionsEnabled)) then {
[_posASL, _ammo] call FUNC(doReflections); [_posASL, _ammo] call FUNC(doReflections);
@ -73,7 +73,7 @@ if (GVAR(reflectionsEnabled) || GVAR(enabled) && _ammo call FUNC(shouldFrag)) th
// Wait a frame to make sure it doesn't target the dead // Wait a frame to make sure it doesn't target the dead
[ [
{ [QGVAR(frag_eh), _this] call CBA_fnc_serverEvent; }, { [QGVAR(frag_eh), _this] call CBA_fnc_serverEvent; },
[_posASL, _velocity, _ammo, _shotParents] [_posASL, _ammo, _shotParents]
] call CBA_fnc_execNextFrame; ] call CBA_fnc_execNextFrame;
} }
]; ];