Skip to content

Kill characters before removing them with status effects#15280

Open
TheNinjaScout wants to merge 1 commit intoFakeFishGames:masterfrom
TheNinjaScout:countremovedasdead
Open

Kill characters before removing them with status effects#15280
TheNinjaScout wants to merge 1 commit intoFakeFishGames:masterfrom
TheNinjaScout:countremovedasdead

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