feat: implement projectile system and add nail gun, plasma gun, and DMR weapons
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user