weapon slots and loadout done

This commit is contained in:
bee
2026-07-07 23:04:20 +02:00
parent a40d0bfdd3
commit c4f2c0a202
21 changed files with 227 additions and 3 deletions
+4
View File
@@ -31,6 +31,7 @@ extends Node
var desired_throttle := 0.0
func _ready() -> void:
if current_controlled != null: # Only happens on intial loading if boat already moves
desired_throttle = current_controlled.throttle
@@ -52,6 +53,9 @@ func _process(delta: float) -> void:
current_controlled.desired_throttle = desired_throttle
current_controlled.steer_input = steer_input
if Input.is_action_pressed("fire"):
current_controlled.fire_weapons()
func _possess() -> void:
camera_rig.target = current_controlled
world_manager.focus = current_controlled