Cortex-Command-Community-Project icon indicating copy to clipboard operation
Cortex-Command-Community-Project copied to clipboard

AEmitters that push can delete their parents

Open Alejandroibo opened this issue 1 year ago • 4 comments

Describe the bug Given an AEmitter with particles set to "PushesEmitter = 1", if attached to another object, after a while both the AEmitter and the parent will cease to exist as if deleted, even if the overall impulse is not strong enough to trigger GibOnImpulse. My theory is that something in the process of calculating forces applied with JointStiffness is adding all the forces and not clearing them.

To Reproduce

  1. Create an AEmitter that emits a particle set to "PushesEmitter = 1" (I've used Tiny Smoke Ball 1 at min/max vel = 10)
  2. Set the particle count to something strong enough to be noticeable but not strong enough to gib/rip (I've used 8000)
  3. Give it JointStiffness = 1 to ensure all forces are being sent to the parent
  4. Attach it to an attachable (Like a Ronin's head)
  5. Spawn the unit and wait for a bit

Expected behavior The Aemitter and its parent not getting deleted from reality

Screenshots Bug

The health lowering is because I was using an AEmitter set to damage it's parent through it's emissions. It shouldn't have any baring on this issue.

Additional context Atm I've only been able to consistenly reproduce it with heads and objects attached to heads. I've tried adding it to stuff like legs or torsos but either their threshold is higher or they don't suffer from this issue.

Alejandroibo avatar Jan 24 '24 17:01 Alejandroibo

Could you provide a test mod that demonstrates this bug? That would make this much easier to test.

Causeless avatar Jan 26 '24 22:01 Causeless

CoalitionLight.zip Replace your coalition light folder with this one Coalition Light with an AEmitter attached to the head. Just go into test activity and spawn them in to see the issue

Alejandroibo avatar Jan 27 '24 18:01 Alejandroibo

Agh, sound changes broke the test zip. @pawnishoovy can you fix this? image

Causeless avatar Feb 18 '24 17:02 Causeless

CoalitionLight.zip

curiously enough the loop sound also fails to stop sometimes so something's really messed up

pawnishoovy avatar Feb 22 '24 03:02 pawnishoovy