mirror of
https://github.com/kristoferssolo/FuncIt.git
synced 2025-10-21 19:30:35 +00:00
do it urself
This commit is contained in:
parent
0c37f03d8b
commit
528d0dad42
@ -271,7 +271,8 @@ func _physics_process(delta) -> void:
|
||||
# warning-ignore:return_value_discarded
|
||||
move_and_slide(velocityVDIR.rotated(rotationalHolder))
|
||||
rotate_weapon()
|
||||
if user_input["shoot"] and can_shoot and not is_reloading:
|
||||
|
||||
if user_input["shoot"] and can_shoot and not is_reloading and Global.mode == 1:
|
||||
rpc("shoot", trajectory)
|
||||
is_reloading = true
|
||||
reload_timer.start()
|
||||
|
||||
@ -10,6 +10,7 @@ var global
|
||||
var control
|
||||
var user_input
|
||||
var bot_weapon
|
||||
var mode = 1
|
||||
|
||||
var clientPhase = {
|
||||
"0": {
|
||||
|
||||
@ -15,6 +15,7 @@ func _ready() -> void:
|
||||
if get_tree().is_network_server():
|
||||
setup_player_positions()
|
||||
Global.start_game(true)
|
||||
Global.mode = 2
|
||||
|
||||
|
||||
func setup_player_positions() -> void:
|
||||
|
||||
@ -6,6 +6,7 @@ var current_player_location_instance_number = null
|
||||
var globalActivePhase = null
|
||||
|
||||
func _ready() -> void:
|
||||
Global.mode = 1
|
||||
$controls/user_input/controls/ready_button.hide()
|
||||
$controls/user_input/controls/skip_button.hide()
|
||||
# warning-ignore:return_value_discarded
|
||||
|
||||
@ -14,7 +14,14 @@ var amp = 5
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
Global.set("user_input", self)
|
||||
|
||||
|
||||
|
||||
func _on_ready_button_pressed():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_skip_button_pressed():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func _on_line_SpinBox_value_changed(value):
|
||||
@ -41,7 +48,6 @@ func _on_b_param_h_SpinBox_value_changed(value):
|
||||
if b_param_hyper != 0:
|
||||
Global.get("player").enable_trajectory_line("hyper")
|
||||
Global.get("player").trajectory = "hyper"
|
||||
|
||||
|
||||
|
||||
func _on_a_param_h_SpinBox_value_changed(value):
|
||||
@ -60,6 +66,5 @@ func _on_freq_SpinBox_value_changed(value):
|
||||
freq = value
|
||||
Global.get("player").enable_trajectory_line("sine")
|
||||
Global.get("player").trajectory = "sine"
|
||||
|
||||
|
||||
|
||||
|
||||
@ -366,7 +366,7 @@ wait_time = 0.03
|
||||
autostart = true
|
||||
|
||||
[node name="reload_timer" type="Timer" parent="."]
|
||||
wait_time = 0.15
|
||||
wait_time = 0.7
|
||||
one_shot = true
|
||||
|
||||
[node name="hit_timer" type="Timer" parent="."]
|
||||
|
||||
@ -596,3 +596,5 @@ valign = 1
|
||||
[connection signal="value_changed" from="controls/hyperbol/b_param_h_SpinBox" to="controls" method="_on_b_param_h_SpinBox_value_changed"]
|
||||
[connection signal="value_changed" from="controls/sin/amp_SpinBox" to="controls" method="_on_amp_SpinBox_value_changed"]
|
||||
[connection signal="value_changed" from="controls/sin/freq_SpinBox" to="controls" method="_on_freq_SpinBox_value_changed"]
|
||||
[connection signal="pressed" from="controls/ready_button" to="controls" method="_on_ready_button_pressed"]
|
||||
[connection signal="pressed" from="controls/skip_button" to="controls" method="_on_skip_button_pressed"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user