From bb7e2bc3967779ab43cb87465e66f5bf6dcb1c56 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Wed, 3 Jul 2024 17:26:20 +0200 Subject: latch boost --- client/global.gd | 3 ++- client/player/controllable_player.gd | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/global.gd b/client/global.gd index 30edbce5..9d0a376b 100644 --- a/client/global.gd +++ b/client/global.gd @@ -50,7 +50,8 @@ var default_settings := { "voxel_gi": ToggleSetting.new(tr("Use VoxelGI (Blocks the game on map update but is more accurate)"), false), "sdfgi": ToggleSetting.new(tr("Use SDFGI (Doesn't block the game but produces more artifacts)"), false), "grass_amount": RangeSetting.new(tr("3D grass amount per grass tile"), 16, 0, 32), - "setup_complete": ToggleSetting.new(tr("Initial setup complete. (Uncheck and restart to reenter)"), false) + "setup_complete": ToggleSetting.new(tr("Initial setup complete. (Uncheck and restart to reenter)"), false), + "latch_boost": ToggleSetting.new(tr("Always extend boost to maximum duration"), true) } var profile: Dictionary diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index 8ba11097..c4c29566 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -65,7 +65,7 @@ func _process(delta): func _process_movement(delta): var input = Input.get_vector("left", "right", "forward", "backwards") - var boost = Input.is_action_pressed("boost") + var boost = Input.is_action_pressed("boost") or (Global.get_setting("latch_boost") and boosting) input = input.rotated( - game.camera.angle_target) position_anim = position_ rotation_anim = rotation_ -- cgit v1.2.3-70-g09d2