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
+5 -1
View File
@@ -10,10 +10,14 @@ var falloff_start: float = 10.0
var min_damage: float = 5.0
var drop_gravity: float = 0.0 # For arc projectiles (nailgun might have slight drop, plasma none)
var logical_source = null
var _previous_position: Vector3
func _ready() -> void:
_previous_position = global_position
if logical_source != null:
_previous_position = logical_source
else:
_previous_position = global_position
# Automatically destroy after 5 seconds to prevent leaks
var t = get_tree().create_timer(5.0)
t.timeout.connect(queue_free)