Commit graph

14 commits

Author SHA1 Message Date
67666f9622 player: reparent Pivot/PlayerMesh to Pivot/Mesh/ 2026-01-24 12:59:09 +13:00
f1a10a1377 player: add protected and suspended members
`suspended' is now for suspending a player's movement input keys;
`protected' is for preventing a player's death except for special cases
such as when health goes below 1 or the player drops out of the world.

To kill a player without checking `protected', use _die().
2026-01-25 21:09:40 +13:00
cda93d8177 player: add check before unequipping gear 2026-01-24 12:41:10 +13:00
73fe669f57 player: start with Gear 2026-01-22 23:35:32 +13:00
1112a9f6da player: add Gear.unequip() API 2026-01-22 22:28:28 +13:00
42de0ed122 player: organise code 2026-01-22 21:25:16 +13:00
e6cbaba0fa player: add health callbacks
Allows us to update the HUD on health change
2026-01-22 21:25:16 +13:00
47aa5ac9aa player: display health in HUD 2026-01-22 21:25:16 +13:00
df449af0f3 player: rename BackpackUI to HUD 2026-01-22 21:25:16 +13:00
545102a139 player: clamp camera rotation 2026-01-22 17:57:55 +13:00
9b229e5d8f player: handle gears on respawn
Use a preloaded scene to give the player the starting gear rather than
making a duplicate of the gear on spawn, and strip any gears from the
backpack on death.

Remove Gear from the editor scene tree and add it on respawn().
2026-01-22 14:29:59 +13:00
d395bb6f26 player: make spawn @onready, make gear_slots const 2026-01-22 14:28:40 +13:00
2067317a09 player: remove ui_backpack keybind 2026-01-22 14:27:00 +13:00
79951d8075 initial commit 2026-01-21 20:50:41 +13:00