Cortex-Command-Community-Project
Cortex-Command-Community-Project copied to clipboard
AEmitters that push can delete their parents
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
- Create an AEmitter that emits a particle set to "PushesEmitter = 1" (I've used Tiny Smoke Ball 1 at min/max vel = 10)
- Set the particle count to something strong enough to be noticeable but not strong enough to gib/rip (I've used 8000)
- Give it JointStiffness = 1 to ensure all forces are being sent to the parent
- Attach it to an attachable (Like a Ronin's head)
- Spawn the unit and wait for a bit
Expected behavior The Aemitter and its parent not getting deleted from reality
Screenshots
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.