more hud work

This commit is contained in:
derek
2024-12-13 15:20:17 -06:00
parent 9bb5332ba6
commit ec75bffb70
29 changed files with 178 additions and 81 deletions

View File

@@ -492,12 +492,14 @@ func crouch(delta):
func aim_down_sights(delta):
if gun:
if gun.ads == true:
if ads:
if ads:
if gun.ads == true:
camera.fov = lerp(camera.fov,BASE_FOV - float(gun.fov_zoom_amt),(delta * 5)/Engine.time_scale)
gun.position = lerp(gun.position,ADS_POS,delta * 10 / Engine.time_scale)
else:
gun.position = lerp(gun.position, weapon_start_pos,delta * 2)
camera.fov = lerp(camera.fov,BASE_FOV - float(gun.fov_zoom_amt),(delta * 5)/Engine.time_scale)
func _headbob(time) -> Vector3:
var pos = Vector3.ZERO