added speed and jump modifiers based on weapon weight
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user