diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-13 18:15:01 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-13 18:15:01 -0400 |
| commit | 4068e66756966983973ab20b68ec5382e398548b (patch) | |
| tree | c2215e65167c7f6aced272da371214985cce16f5 /godot/scripts/vehicles/Gunboat.gd | |
| parent | e2f3e4bd7118c8f55d20b29d76cb9a13acf72f8b (diff) | |
incomplete airplane implementation (needs addl. network sync)
Diffstat (limited to 'godot/scripts/vehicles/Gunboat.gd')
| -rw-r--r-- | godot/scripts/vehicles/Gunboat.gd | 7 |
1 files changed, 5 insertions, 2 deletions
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 |
