Jank fix so that the unit firing can get hit with it's own fragments

This commit is contained in:
lambdatiger 2024-07-29 23:12:21 -05:00
parent 57454553a0
commit bee8eee8d8

View File

@ -113,7 +113,11 @@ if (_targets isNotEqualTo []) then {
private _fragObj = createVehicleLocal [selectRandom _fragTypes, _fragPosAGL, [], 0, "CAN_COLLIDE"];
_fragObj setVectorDir _vectorDir;
_fragObj setVelocity _fragObjVelocity;
_fragObj setShotParents _shotParents;
if (_shotParents#0 isEqualTo _target) then {
_fragObj setShotParents [objNull, _fragObj#1];
} else {
_fragObj setShotParents _shotParents;
};
#ifdef DEBUG_MODE_DRAW
[_fragObj, "green", true] call FUNC(dev_trackObj);
[_targetPos, "(0.88,0.36,0.92,0.8)"] call FUNC(dev_sphereDraw);