summaryrefslogtreecommitdiff
path: root/scripts/ballistics
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-04 14:57:56 -0700
committerAnson Bridges <bridges.anson@gmail.com>2022-09-04 14:57:56 -0700
commita0967ebe815cd229b69fb9578f2288b95b2ddb28 (patch)
treece1b06b1d8226c64e3550d674df96a2308f18130 /scripts/ballistics
parent5dbe6302e437c5c1d4431b853c410aa1d52f9b3d (diff)
networked machine project. added broken airplane from previous project
Diffstat (limited to 'scripts/ballistics')
-rw-r--r--scripts/ballistics/Cannonball.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ballistics/Cannonball.gd b/scripts/ballistics/Cannonball.gd
index 7b56577..14de00c 100644
--- a/scripts/ballistics/Cannonball.gd
+++ b/scripts/ballistics/Cannonball.gd
@@ -12,6 +12,6 @@ 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 linear_velocity.length() > 20 and !damage_exceptions.has(body) and body.has_method("damage"):
+ 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)