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