whoops
This commit is contained in:
@@ -539,7 +539,7 @@ func weapon_tilt(input_x, delta):
|
|||||||
camera.rotation.z = lerp(camera.rotation.z, -input_x * HEAD_TILT_AMT, 5 * delta)
|
camera.rotation.z = lerp(camera.rotation.z, -input_x * HEAD_TILT_AMT, 5 * delta)
|
||||||
|
|
||||||
func weapon_sway(delta):
|
func weapon_sway(delta):
|
||||||
if !gun.ads:
|
if !ads:
|
||||||
var joy_input = Vector2(Input.get_joy_axis(0,JOY_AXIS_RIGHT_X)*5,Input.get_joy_axis(0,JOY_AXIS_RIGHT_Y)*5)
|
var joy_input = Vector2(Input.get_joy_axis(0,JOY_AXIS_RIGHT_X)*5,Input.get_joy_axis(0,JOY_AXIS_RIGHT_Y)*5)
|
||||||
mouse_input = lerp(mouse_input, Vector2.ZERO, 10 * delta)
|
mouse_input = lerp(mouse_input, Vector2.ZERO, 10 * delta)
|
||||||
joy_input = lerp(joy_input,Vector2.ZERO,10 * delta)
|
joy_input = lerp(joy_input,Vector2.ZERO,10 * delta)
|
||||||
|
|||||||
Reference in New Issue
Block a user