From 366761197034a20d444282431e4a8edeb7882840 Mon Sep 17 00:00:00 2001 From: Anson Bridges Date: Wed, 7 Sep 2022 14:16:17 -0400 Subject: whoops, fixed reorg --- scripts/ballistics/Cannonball.gd | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 scripts/ballistics/Cannonball.gd (limited to 'scripts/ballistics/Cannonball.gd') diff --git a/scripts/ballistics/Cannonball.gd b/scripts/ballistics/Cannonball.gd deleted file mode 100644 index 14de00c..0000000 --- a/scripts/ballistics/Cannonball.gd +++ /dev/null @@ -1,17 +0,0 @@ -extends "res://scripts/ballistics/NetworkedProjectile.gd" - -export var drag_constant = 0.3 -var damage_exceptions = [] -var oldvel - -func _physics_process(_delta): - oldvel = linear_velocity - add_force(-1*linear_velocity*drag_constant, Vector3.ZERO) - -func get_init_info(): - return {"linear_velocity" : linear_velocity, "angular_velocity" : angular_velocity, "oldvel" : oldvel, "shooter" : shooter, "shooter_id" : shooter_id} - -func _on_collision(body): - if oldvel.length() > 20 and !damage_exceptions.has(body) and body.has_method("damage"): - body.rpc("damage", oldvel.length(), "blunt", shooter, "using 'cannon'") - damage_exceptions.append(body) -- cgit v1.2.3