added speed and jump modifiers based on weapon weight

This commit is contained in:
derek
2025-06-17 09:22:08 -05:00
parent 07ea71a3ed
commit 7c76c791f2
12 changed files with 26 additions and 7 deletions

View File

@@ -376,6 +376,15 @@ func movement_input():
return direction
#for every modifier that changes movement, subtract from the speed multiplier
func speed_modifiers():
var speed_multiplier = 1
if gun != null:
speed_multiplier -= (1 - gun.weapon_info.player_speed_modifier)
return speed_multiplier
func joypad_walk():
# Joypad right stick look control
var dir_out = Vector2(0,0)