Commit graph

24 commits

Author SHA1 Message Date
f551b7eff2 multiplayer: synced player rotation 2026-01-27 21:04:26 +13:00
fa6a64fbaa multiplayer: added basic server and client functionality 2026-01-27 12:35:39 +13:00
54967e570b camera: remove shift lock 2026-01-27 12:18:03 +13:00
35a17c04b6 camera: add cam_ prefix to zoom_ events 2026-01-27 12:15:46 +13:00
d00cee752e camera: lint 2026-01-27 11:39:22 +13:00
79fa813571 camera: rename script to camera.gd 2026-01-27 11:39:11 +13:00
7ba423e6c5 player: reparent Pivot/PlayerMesh to Pivot/Mesh/ 2026-01-27 10:56:16 +13:00
5b7ab7811e 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-27 10:56:16 +13:00
1e4aeddbb5 player: add check before unequipping gear 2026-01-27 10:56:16 +13:00
f22364ce39 player: start with Gear 2026-01-27 10:56:16 +13:00
10dd8ce719 player: add Gear.unequip() API 2026-01-27 10:56:16 +13:00
fced905bae camera: added smooth camera zooming 2026-01-27 10:47:57 +13:00
cf14e5d398 camera: added camera zooming 2026-01-25 20:13:59 +13:00
c78368c89e camera: made camera more responsive and removed camera strafing 2026-01-25 20:01:13 +13:00
db0aa2ad9e camera: made mouse control camera 2026-01-25 20:01:13 +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