fixed bomb launcher range and rocket launcher selection bugs

This commit is contained in:
2023-11-28 18:02:40 +11:00
parent d5d832f3f2
commit e18ea532bc
8 changed files with 91 additions and 122 deletions

View File

@ -6,7 +6,9 @@ var bounces := 0
func _ready() -> void:
apply_central_impulse(direction * force)
apply_central_impulse(direction.normalized() * force)
#print(direction.length())
#print(force)
if owner_id == 0:
max_bounces = 0

View File

@ -23,7 +23,7 @@ func _ready() -> void:
func _process(delta: float) -> void:
super._process(delta)
if !trigger_held or time_since_firing < time_between_shots:
if !trigger_held or time_since_firing < time_between_shots or current_energy < energy_cost:
return
var target_list = targets.duplicate()
for target in target_list: