ad48f38ca5
Replaces the overhead box-mesh view with a full FPS character: - mouse look, WASD movement, jump (Space), crouch (C), sprint (Shift), lean (Q/E) - 6 weapons (LMB shoot, R reload, scroll switch, F melee, G drop) - Crosshair HUD, ammo counter, sprint bar - Client sends position to server at 20Hz for multiplayer visibility - Server broadcasts positions to all peers - Remote players shown as boxes (placeholder) source: https://godotengine.org/asset-library/asset/2652 (MIT license)
8 lines
136 B
GDScript
8 lines
136 B
GDScript
extends Resource
|
|
class_name WeaponSlot
|
|
|
|
@export var weapon: WeaponResource
|
|
|
|
@export var current_ammo: int
|
|
@export var reserve_ammo: int
|