added a second slot you can equip a weapon to
This commit is contained in:
@ -21,7 +21,7 @@ value = 0.2
|
||||
[sub_resource type="Resource" id="Resource_8cirl"]
|
||||
script = ExtResource("1_qt3yl")
|
||||
key = "Energy"
|
||||
value = 2.0
|
||||
value = 1.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gk542")
|
||||
|
@ -27,8 +27,10 @@ func _process(delta: float) -> void:
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
if trigger_held and time_since_firing >= current_time_between_shots:
|
||||
if trigger_held and current_energy >= energy_cost and time_since_firing >= current_time_between_shots:
|
||||
time_since_firing -= current_time_between_shots
|
||||
current_energy -= energy_cost
|
||||
energy_changed.emit(current_energy)
|
||||
shoot()
|
||||
networked_shoot.rpc()
|
||||
|
||||
|
@ -21,7 +21,7 @@ value = 20.0
|
||||
[sub_resource type="Resource" id="Resource_ogk1x"]
|
||||
script = ExtResource("1_vpmor")
|
||||
key = "Speed Multiplier"
|
||||
value = 2.5
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_wdp3h"]
|
||||
script = ExtResource("1_vpmor")
|
||||
@ -31,7 +31,7 @@ value = 4.0
|
||||
[sub_resource type="Resource" id="Resource_d1lvi"]
|
||||
script = ExtResource("1_vpmor")
|
||||
key = "Energy"
|
||||
value = 4.0
|
||||
value = 1.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_630yu")
|
||||
|
@ -53,6 +53,7 @@ func release_trigger():
|
||||
|
||||
func shoot():
|
||||
animator.play("shoot")
|
||||
recharging = false
|
||||
for target in targets:
|
||||
networked_spawn_rocket.rpc(get_tree().root.get_path_to(target), multiplayer.get_unique_id())
|
||||
targets.clear()
|
||||
|
Reference in New Issue
Block a user