movement system rework
This commit is contained in:
parent
900502ec8a
commit
792465a33c
7 changed files with 47 additions and 31 deletions
|
|
@ -270,6 +270,8 @@ metadata/_custom_type_script = "uid://3777rkbebgjm"
|
|||
|
||||
[node name="Crouch" type="Node" parent="BodyStateMachine" node_paths=PackedStringArray("stand_up_area", "player", "animation_player", "weapon_system")]
|
||||
script = ExtResource("9_oprun")
|
||||
acceleration = 50.0
|
||||
deceleration = 50.0
|
||||
stand_up_area = NodePath("../../StandArea")
|
||||
player = NodePath("../..")
|
||||
animation_player = NodePath("../../AnimationPlayer")
|
||||
|
|
@ -277,19 +279,24 @@ weapon_system = NodePath("../../WeaponSystem")
|
|||
|
||||
[node name="Stand" type="Node" parent="BodyStateMachine" node_paths=PackedStringArray("player", "weapon_system")]
|
||||
script = ExtResource("10_a8ls1")
|
||||
acceleration = 100.0
|
||||
deceleration = 50.0
|
||||
JUMP_VELOCITY = 6.0
|
||||
player = NodePath("../..")
|
||||
weapon_system = NodePath("../../WeaponSystem")
|
||||
|
||||
[node name="Walk" type="Node" parent="BodyStateMachine" node_paths=PackedStringArray("player", "weapon_system")]
|
||||
script = ExtResource("11_qfm1y")
|
||||
acceleration = 50.0
|
||||
deceleration = 50.0
|
||||
player = NodePath("../..")
|
||||
weapon_system = NodePath("../../WeaponSystem")
|
||||
|
||||
[node name="Fall" type="Node" parent="BodyStateMachine" node_paths=PackedStringArray("player")]
|
||||
[node name="Fall" type="Node" parent="BodyStateMachine" node_paths=PackedStringArray("player", "weapon_system")]
|
||||
script = ExtResource("12_fulsm")
|
||||
player = NodePath("../..")
|
||||
SPEED = 5.0
|
||||
acceleration = 25.0
|
||||
weapon_system = NodePath("../../WeaponSystem")
|
||||
|
||||
[node name="WeaponSystem" type="Node" parent="." node_paths=PackedStringArray("animation_player", "camera", "player")]
|
||||
script = ExtResource("4_qlg0r")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue