VERY rough test of replaying camera loc/rot

This commit is contained in:
Derek
2025-02-17 19:59:58 -06:00
parent 804e4d68c3
commit ba0d9ce2f3
10 changed files with 2525 additions and 32 deletions

View File

@@ -717,7 +717,8 @@ func weapon_sway(delta):
func weapon_bob(vel : float, delta):
if weapon_holder:
weapon_holder.global_position.y += -clamp(velocity.y * .15,-1,1) * delta
if gun != null and !ads and !gun.ads:
weapon_holder.global_position.y += -clamp(velocity.y * .15,-1,1) * delta
if vel > 2 and is_on_floor():
var speed_adjust = speed/WALK_SPEED
var bob_amount : float = 0.05