Fixed speed bugs
This commit is contained in:
parent
068f227b8f
commit
8c8c6ef9d3
2 changed files with 4 additions and 2 deletions
|
@ -72,6 +72,8 @@ func _physics_process(delta):
|
||||||
SPEED = 10.0
|
SPEED = 10.0
|
||||||
if Global.fatigue < 5:
|
if Global.fatigue < 5:
|
||||||
SPEED = 2.0
|
SPEED = 2.0
|
||||||
|
if Input.is_action_pressed("sprint"):
|
||||||
|
pass
|
||||||
elif Global.fatigue > 5:
|
elif Global.fatigue > 5:
|
||||||
SPEED = 5.0
|
SPEED = 5.0
|
||||||
if Input.is_action_just_released("sprint"):
|
if Input.is_action_just_released("sprint"):
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
[ext_resource type="Script" path="res://objects/Bullet/Bullet.gd" id="1"]
|
[ext_resource type="Script" path="res://objects/Bullet/Bullet.gd" id="1"]
|
||||||
[ext_resource type="PackedScene" uid="uid://pni78bumc5f5" path="res://objects/Bullet/model/Bullet.dae" id="2"]
|
[ext_resource type="PackedScene" uid="uid://pni78bumc5f5" path="res://objects/Bullet/model/Bullet.dae" id="2"]
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ab5n2"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_l4uod"]
|
||||||
size = Vector3(0.40456, 0.406836, 0.393048)
|
size = Vector3(0.40456, 0.406836, 0.393048)
|
||||||
|
|
||||||
[node name="Bullet" type="Area3D" groups=["bullet"]]
|
[node name="Bullet" type="Area3D" groups=["bullet"]]
|
||||||
|
@ -12,7 +12,7 @@ script = ExtResource("1")
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="." groups=["bullet"]]
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." groups=["bullet"]]
|
||||||
transform = Transform3D(0.957696, 0, 0, 0, 1, 0, 0, 0, 1.66763, 0, 0, -0.295843)
|
transform = Transform3D(0.957696, 0, 0, 0, 1, 0, 0, 0, 1.66763, 0, 0, -0.295843)
|
||||||
shape = SubResource("BoxShape3D_ab5n2")
|
shape = SubResource("BoxShape3D_l4uod")
|
||||||
|
|
||||||
[node name="Bullet" parent="." instance=ExtResource("2")]
|
[node name="Bullet" parent="." instance=ExtResource("2")]
|
||||||
transform = Transform3D(0.200224, 0, 0, 0, -8.75207e-09, 0.200224, 0, -0.200224, -8.75207e-09, 0, 0, 0)
|
transform = Transform3D(0.200224, 0, 0, 0, -8.75207e-09, 0.200224, 0, -0.200224, -8.75207e-09, 0, 0, 0)
|
||||||
|
|
Loading…
Reference in a new issue