added most player movement states and started work on 'on foot'

This commit is contained in:
derek
2025-06-16 11:07:18 -05:00
parent d732abbcf8
commit 0a314a409c
7 changed files with 64 additions and 204 deletions

View File

@@ -66,6 +66,12 @@ func _ready():
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta):
if Input.is_action_pressed("shoot"):
shoot()
if Input.is_action_just_pressed("reload"):
reload()
if chamber != null:
var rot_amount = revolver_chamber_rot_amt * _delta * 10
chamber.rotate_object_local(Vector3(0,-1,0),deg_to_rad(rot_amount))