Ship mostly works #10

Merged
chrisbell merged 60 commits from feature/ship-syncing into develop 2024-12-29 04:35:51 +00:00
3 changed files with 0 additions and 6 deletions
Showing only changes of commit 820f641ebc - Show all commits

View File

@ -28,8 +28,6 @@ func _ready():
uuid = NetworkManager.register_node(self)
NetworkManager.property_update_received.connect(_on_property_update)
if !NetworkManager.is_host: return
#connect signals
player_detection_area.body_entered.connect(_on_area_3d_body_entered)
player_detection_area.body_exited.connect(_on_area_3d_body_exited)
@ -41,7 +39,6 @@ func _ready():
func _physics_process(_delta):
if !NetworkManager.is_host: return
if ship_is_piloted:
var turn_speed = base_turn_speed / max(mass, 1)
var lift_speed = base_lift_speed / max(mass, 1)
@ -81,7 +78,6 @@ func _physics_process(_delta):
func _on_area_3d_body_entered(body: Node3D) -> void:
if !NetworkManager.is_host: return
if body is Player and body.get_parent() != self:
body.ship_entered(self)
piloting_player = body
@ -90,7 +86,6 @@ func _on_area_3d_body_entered(body: Node3D) -> void:
func _on_area_3d_body_exited(body: Node3D) -> void:
if !NetworkManager.is_host: return
if body is Player and body.get_parent() != get_node("/root/DevLevel/"):
body.ship_exited()
ship_is_piloted = false
@ -100,7 +95,6 @@ func _on_area_3d_body_exited(body: Node3D) -> void:
func _add_ship_helm(_ship_helm_scene: PackedScene):
if !NetworkManager.is_host: return
var ship_helm = _ship_helm_scene.instantiate()
helm_location_marker.add_child(ship_helm)
ship_helm = helm_location_marker.get_node("ShipHelm")

Binary file not shown.