summaryrefslogtreecommitdiff
path: root/scripts/machines/Cannon.gd
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
committerAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
commit4d51178d32e07c070c61aa7567856bec7eda3639 (patch)
tree7ef4884dd2221340f9c1ed96bd0f52c761ae9fb0 /scripts/machines/Cannon.gd
parent0939d84e611f1c63fd5805339a2f777251fb1653 (diff)
hit/killsounds, swimming, main menu, fixed explosion physics
Diffstat (limited to 'scripts/machines/Cannon.gd')
-rw-r--r--scripts/machines/Cannon.gd7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/machines/Cannon.gd b/scripts/machines/Cannon.gd
index fcd842b..e7a5441 100644
--- a/scripts/machines/Cannon.gd
+++ b/scripts/machines/Cannon.gd
@@ -40,7 +40,11 @@ func _ready():
add_collision_exception_with(get_parent())
mode = RigidBody.MODE_STATIC
world = get_tree().get_root().find_node("BALLISTICS", true, false)
-
+
+remotesync func set_net_owner(id, char_name):
+ set_network_master(id)
+ if id != 1 or char_name != "NONE":
+ pass
func is_in_use():
return in_use
@@ -54,6 +58,7 @@ func take_control(controller):
func relinquish_control():
in_use = false
user = null
+ rpc("set_owner", 1, "NONE")
func _physics_process(delta):
if cooldown > 0: