feat: projectile speed is increased with respective player speed. Does not effect lateral projectile movement respective to the player

This commit is contained in:
DottsGit
2026-06-05 00:42:22 -04:00
parent eee1925b7a
commit 9f3264170e
5 changed files with 10 additions and 0 deletions
+2
View File
@@ -114,6 +114,8 @@ func _spawn_custom_projectile(origin: Vector3, fire_dir: Vector3) -> void:
proj.logical_source = origin
proj.velocity = fire_dir * projectile_speed
if player:
proj.velocity += fire_dir * player.velocity.dot(fire_dir)
proj.damage = base_damage
proj.min_damage = min_damage
proj.falloff_start = falloff_start