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

Basic health, first iteration #1239

Merged
merged 89 commits into from
Sep 2, 2023
Merged

Conversation

stilnat
Copy link
Contributor

@stilnat stilnat commented Aug 18, 2023

Summary

This PR has for objective implementation of the first iteration of the health system, following this roadmap :
#1192

Most is said in the road map.

To test it :

  • Put your mouse cursor on a body part of your own and press F, you should take some damages and eventually a limb is removed.
  • Try using "hurt" and "examinebodypart" commands to inflict different kind of damages and check they were applied correctly.
  • Try using the Hit interaction by clicking on another player and pressing hit, it should inflict some damages to the head, repeat and see them die.
  • See that with no hands, you can't pick up stuff.
  • See that you can't run with no feet (try hurting your feet).

Pictures/Videos (optional)

2023-08-31.12-49-28.mp4

Changes to Files

Technical Notes (optional)

Bodyparts are networked objects, but the body layers they are made of are not, so their value are server only for now (and
it might be better to leave it that way).
They can of course be queried for specific purpose, such is done to update player speed depending on body layers damages on
foot.

Known issues

Fixes (optional)

TODO

  • clean and organise files
  • comment all the code
  • Hide brain on clients
  • fix indentation

@stilnat stilnat changed the title [WIP] Basic health, first iteration Basic health, first iteration Aug 31, 2023
avoid dropping organs in body part containers on detached
got some issues ... when head is cut, a head item spawn and there's a mind swap on the new entity which works okay. However this "new" entity (the head), doesn't register in the entity system and is not found by it. I wanted to simply add it to the _spawnedPlayers synclist but it triggers a bunch of other stuff in the game mode system and such and I'm unsure if it's any wanted behavior ... fixed by setting properly the synclist in entitySystem
@stilnat stilnat merged commit c423460 into RE-SS3D:develop Sep 2, 2023
2 checks passed
@cosmiccoincidence cosmiccoincidence added the Health Tasks specific to the health system. label Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Health Tasks specific to the health system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants