From 577b6aa33ac967eacfc445b5952f1d0af6240b23 Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Mon, 26 Feb 2024 19:05:38 -0500 Subject: [PATCH] [MIRROR] Adds a 1 second delay to moving up and down with the verb/keybinds to disable z-level combat cheese (#1159) * Adds a 1 second delay to moving up and down with the verb/keybinds to disable z-level combat cheese (#81666) ## About The Pull Request Adds a 1 second delay to moving up and down with the verb/keybinds to disable z-level combat cheese ## Why It's Good For The Game Fighting someone using keybinds to move between z-levels over and over again is damn near impossible. Try it sometimes, it's as bullshit as if we had bombs that were cross-Z-level. ## Changelog :cl: balance: Adds a 1 second delay to moving up and down with the verb/keybinds to disable z-level combat cheese /:cl: --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> * Adds a 1 second delay to moving up and down with the verb/keybinds to disable z-level combat cheese --------- Co-authored-by: Iamgoofball Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/mob/mob_movement.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/mob_movement.dm b/code/modules/mob/mob_movement.dm index 464313e1a4f..4da5da30987 100644 --- a/code/modules/mob/mob_movement.dm +++ b/code/modules/mob/mob_movement.dm @@ -542,7 +542,9 @@ else to_chat(src, span_warning("You are not Superman.")) return - + balloon_alert(src, "moving up...") + if(!do_after(src, 1 SECONDS)) + return if(zMove(UP, z_move_flags = ZMOVE_FLIGHT_FLAGS|ZMOVE_FEEDBACK|ventcrawling_flag)) to_chat(src, span_notice("You move upwards.")) @@ -566,7 +568,9 @@ return loc_atom.relaymove(src, DOWN) var/ventcrawling_flag = HAS_TRAIT(src, TRAIT_MOVE_VENTCRAWLING) ? ZMOVE_VENTCRAWLING : 0 - + balloon_alert(src, "moving down...") + if(!do_after(src, 1 SECONDS)) + return if(zMove(DOWN, z_move_flags = ZMOVE_FLIGHT_FLAGS|ZMOVE_FEEDBACK|ventcrawling_flag)) to_chat(src, span_notice("You move down.")) return FALSE