mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added shot parents to spalling
This commit is contained in:
parent
742304ec25
commit
370f1ce67f
@ -90,12 +90,14 @@ private _fragSpawnType = switch (true) do
|
||||
default { QGVAR(spall_huge) };
|
||||
};
|
||||
|
||||
// Shot parent
|
||||
private _shotParent = getShotParents _projectile;
|
||||
|
||||
//***** Spawn spalled fragments
|
||||
private _fragSpawner = createVehicleLocal [_fragSpawnType, ASLToATL _spallPos, [], 0, "CAN_COLLIDE"];
|
||||
_fragSpawner setVectorDirandUp [vectorDir _projectile, vectorUp _projectile];
|
||||
_fragSpawner setVelocity _lVelUnit;
|
||||
|
||||
_fragSpawner setShotParents _shotParent;
|
||||
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
systemChat ("bSpd: " + str speed _fragSpawner + ", frag: " + _fragSpawnType + ", dm: " + str _deltaMomentum);
|
||||
|
Loading…
Reference in New Issue
Block a user