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