summaryrefslogtreecommitdiff
path: root/scripts/ballistics/Cannonball.gd
diff options
context:
space:
mode:
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"):