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

Damage / Health Synchronization #5

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

Damage / Health Synchronization #5

MeFisto94 opened this issue Dec 20, 2023 · 0 comments

Comments

@MeFisto94
Copy link
Member

  • The server needs to be informed about damage that is both incoming on the player and outgoing from the player.
  • The server in the default configuration will just reflect that damage and
    • confirm the damage to the client (*) otherwise we could roll back the damage (think: godmode)
    • relay the damage incident to other players, which will reduce the NPCs health accordingly.

*: The client should first accept the damage and only roll it back on demand, as this is a relatively rare use case. It's only about how other NPCs health appears to you as a player and about self-inflicted damage (e.g. fall damage).

Also: As hinted above with "default configuration", there will be server plugins that may influence how damage is calculated (maybe with a scalar factor, but more common will be preventing damage). Maybe we can also add a "immune" flag to handle the godmode use-cases relatively well.

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

No branches or pull requests

1 participant