fixed bomb launcher range and rocket launcher selection bugs
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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:
|
||||
|
Reference in New Issue
Block a user