From 4d51178d32e07c070c61aa7567856bec7eda3639 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Fri, 2 Sep 2022 23:12:33 -0700 Subject: hit/killsounds, swimming, main menu, fixed explosion physics --- scripts/machines/Cannon.gd | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'scripts/machines') 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: -- cgit v1.2.3