fix: a lot of networking bugs

This commit is contained in:
DottsGit
2026-06-06 19:26:22 -04:00
parent ff3e01a9e5
commit dbbfbef4a4
7 changed files with 194 additions and 109 deletions
+9
View File
@@ -90,10 +90,19 @@ func _process(delta: float) -> void:
homing_target_pos = target
(targeting_laser.mesh as CylinderMesh).height = 300.0
targeting_laser.position.z = -150.0
if player and player.is_multiplayer_authority():
player.synced_is_targeting = true
player.synced_homing_target_pos = homing_target_pos
else:
if player and player.is_multiplayer_authority():
player.synced_is_targeting = false
func unequip() -> void:
is_targeting = false
targeting_laser.visible = false
if player and player.is_multiplayer_authority():
player.synced_is_targeting = false
# Override fire to shoot 8 rockets at once
func _fire() -> void: