summaryrefslogtreecommitdiff
path: root/scripts/ballistics/Cannonball.gd
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
committerAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
commit4d51178d32e07c070c61aa7567856bec7eda3639 (patch)
tree7ef4884dd2221340f9c1ed96bd0f52c761ae9fb0 /scripts/ballistics/Cannonball.gd
parent0939d84e611f1c63fd5805339a2f777251fb1653 (diff)
hit/killsounds, swimming, main menu, fixed explosion physics
Diffstat (limited to 'scripts/ballistics/Cannonball.gd')
-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 15f35a3..7b56577 100644
--- a/scripts/ballistics/Cannonball.gd
+++ b/scripts/ballistics/Cannonball.gd
@@ -9,7 +9,7 @@ func _physics_process(_delta):
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}
+ 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"):