mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Frag - Fix spallTrack (#7492)
This commit is contained in:
parent
2e7fee5256
commit
270a5a930f
@ -24,7 +24,10 @@ private _velocity = velocity _round;
|
||||
private _velocityStep = _velocity vectorMultiply _delta;
|
||||
private _forwardPos = _curPos vectorAdd _velocityStep;
|
||||
|
||||
if !((lineIntersectsSurfaces [_curPos, _forwardPos]) isEqualTo []) exitWith {};
|
||||
|
||||
private _intersectsWith = lineIntersectsWith [_curPos, _forwardPos];
|
||||
|
||||
if (_intersectsWith isEqualTo []) exitWith {};
|
||||
{
|
||||
// diag_log text format ["Adding HP: %1", _x];
|
||||
private _index = count GVAR(spallHPData);
|
||||
|
Loading…
Reference in New Issue
Block a user