Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Removing inert Wound AEmitters to avoid lag and bad visuals #574

Open
pawnishoovy opened this issue Dec 20, 2023 · 0 comments
Open

Removing inert Wound AEmitters to avoid lag and bad visuals #574

pawnishoovy opened this issue Dec 20, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request refactor Code needs to be refactored

Comments

@pawnishoovy
Copy link

pawnishoovy commented Dec 20, 2023

Currently wounds just stack up forever, which for doors or other tough objects gets very laggy and ugly-looking.

Current attached Wounds should be limited to a certain number per object, like 20. Active Wounds, that is, emitting AEmitters, should be exempt from removal until they stop emitting.

New property: CurrentWoundCount (or RealWoundCount, etc), which returns only the actual real number of attached Wounds. WoundCount remains an all-purpose "total wounds suffered" count.

Functions that remove wounds should remove first the visual ones, then simply decrement the WoundCount.

This will likely need a little refactoring because WoundCount is probably currently coupled to the number of real attached Wounds. It'll need to be made more abstract.

@pawnishoovy pawnishoovy added enhancement New feature or request refactor Code needs to be refactored labels Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request refactor Code needs to be refactored
Projects
None yet
Development

No branches or pull requests

2 participants