Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 9aa2038

Browse files
authored
Fixes emagged honkbot applying nearly permanent stuttering and jittering if getting spammed (#22598)
1 parent 6ed878d commit 9aa2038

File tree

1 file changed

+4
-4
lines changed
  • code/modules/mob/living/simple_animal/bot

1 file changed

+4
-4
lines changed

code/modules/mob/living/simple_animal/bot/honkbot.dm

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,10 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
197197
sensor_blink()
198198
if(spam_flag == 0)
199199
if(ishuman(C))
200-
C.adjust_stutter(20 SECONDS)
200+
C.adjust_stutter_up_to(20 SECONDS, 50 SECONDS)
201+
C.adjust_jitter_up_to(20 SECONDS, 50 SECONDS)
201202
C.adjustEarDamage(0, 5) //far less damage than the H.O.N.K.
202-
C.adjust_jitter(50 SECONDS)
203-
C.Paralyze(60)
203+
C.Paralyze(6 SECONDS)
204204
var/mob/living/carbon/human/H = C
205205
if(client) //prevent spam from players..
206206
spam_flag = TRUE
@@ -218,7 +218,7 @@ Maintenance panel panel is [open ? "opened" : "closed"]"},
218218
C.visible_message(span_danger("[src] has honked [C]!"),\
219219
span_userdanger("[src] has honked you!"))
220220
else
221-
C.adjust_stutter(20 SECONDS)
221+
C.adjust_stutter_up_to(20 SECONDS, 50 SECONDS)
222222
C.Paralyze(8 SECONDS)
223223
addtimer(CALLBACK(src, PROC_REF(spam_flag_false)), cooldowntime)
224224

0 commit comments

Comments
 (0)