Skip to content

Commit

Permalink
[MIRROR] Adds a 1 second delay to moving up and down with the verb/ke…
Browse files Browse the repository at this point in the history
…ybinds 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 <[email protected]>

* Adds a 1 second delay to moving up and down with the verb/keybinds to disable z-level combat cheese

---------

Co-authored-by: Iamgoofball <[email protected]>
Co-authored-by: Ghom <[email protected]>
  • Loading branch information
3 people authored and StealsThePRs committed Feb 27, 2024
1 parent 747f07b commit 577b6aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/modules/mob/mob_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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."))

Expand All @@ -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
Expand Down

0 comments on commit 577b6aa

Please sign in to comment.