Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill characters before removing them with status effects #15280

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheNinjaScout
Copy link

Fixes #15279

Adds a new character boolean property called TriggerDeathEffects (set to true by default) which prevents the character from triggering "OnDeath" type status effects as well as death sounds and the multiplayer chat notification when they die, if set to false, essentially resulting in a silent death. This is synced between the server and the clients in order to fully work in multiplayer as it does in singleplayer.

When characters are removed through status effects, we now set this new property to false, as well as kill them before removing them, making removing characters work just like it did before, with the added benefit of counting them as dead, fixing various issues.

Adds a new character boolean property called TriggerDeathEffects (set to true by default) which prevents the character from triggering "OnDeath" type status effects as well as death sounds and the multiplayer chat notification when they die, if set to false, essentially resulting in a silent death.
This is synced between the server and the clients in order to fully work in multiplayer as it does in singleplayer.

When characters are removed through status effects, we now set this new property to false, as well as kill them before removing them, making removing characters work just like it did before, with the added benefit of counting them as dead, fixing various issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant