From 4068e66756966983973ab20b68ec5382e398548b Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Tue, 13 Sep 2022 18:15:01 -0400 Subject: incomplete airplane implementation (needs addl. network sync) --- godot/scripts/vehicles/Gunboat.gd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'godot/scripts/vehicles/Gunboat.gd') diff --git a/godot/scripts/vehicles/Gunboat.gd b/godot/scripts/vehicles/Gunboat.gd index e1a61c5..8c3f54e 100644 --- a/godot/scripts/vehicles/Gunboat.gd +++ b/godot/scripts/vehicles/Gunboat.gd @@ -1,4 +1,4 @@ -extends "res://scripts/machines/NetworkedMachine.gd" +extends "res://scripts/machines/NetworkedMachineGDS.gd" export var team = 0 @@ -16,11 +16,14 @@ export var rudder_speed = 25 export var rudder_constant = 1800 const RUDDER_MAX = 60 -const health_max = 1000 +const health_max = 3000 var health = health_max const damage_threshold = 20 const max_depth = 2 +#boat ids +onready var nav_rid = $NavigationMeshInstance.get_region_rid() + #controls var throttle: float = 0.0 var rudder: float = 0.0 -- cgit v1.2.3