Split mcl_playerplus to mcl_playerinfo for the node info

This commit is contained in:
Wuzzy 2017-08-04 19:23:06 +02:00
parent 5ef42f27ec
commit 705dae46a0
11 changed files with 172 additions and 72 deletions

View file

@ -12,20 +12,13 @@ Suffocation *not* dealt to player with the `noclip` privilege.
## Notes
This mod is based on PlayerPlus [`playerplus`] by TenPlus1. It is now
very different than the original, no compability is intended.
See also `mcl_playerinfo` for the player node info.
## API
Every half second the mod checks which node the player is standing on, which
node is at foot and head level and stores inside a global table to be used by mods:
- `mcl_playerplus[name].node_stand`
- `mcl_playerplus[name].node_stand_below`
- `mcl_playerplus[name].node_foot`
- `mcl_playerplus[name].node_head`
Setting the group `disable_suffocation=1` disables suffocation for nodes which
would otherwise deal suffocation damage.
## License
WTFPL.
MIT License