feat: implement projectile system and add nail gun, plasma gun, and DMR weapons

This commit is contained in:
DottsGit
2026-06-04 17:35:12 -04:00
parent 7b7107c5d6
commit c32f45a8aa
4 changed files with 21 additions and 8 deletions
+3 -1
View File
@@ -90,7 +90,9 @@ func _spawn_custom_projectile(origin: Vector3, fire_dir: Vector3) -> void:
light.omni_range = 4.0
proj.add_child(light)
proj.global_position = muzzle_flash.global_position if muzzle_flash else origin
proj.position = muzzle_flash.global_position if muzzle_flash else origin
proj.logical_source = origin
proj.velocity = fire_dir * projectile_speed
proj.damage = base_damage
proj.min_damage = min_damage