From 957bd313709a938f1f7dc1385504a5c96555d283 Mon Sep 17 00:00:00 2001 From: Jaeger <80431951+Kilmented@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:20:24 -0500 Subject: [PATCH] random mob firing delay --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index bfa253b70ac..e0147e4daaa 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -735,7 +735,7 @@ addtimer(CALLBACK(src,PROC_REF(Shoot), A, spreadgun), i * auto_fire_delay) spreadgun += ranged_extra_spread_per_shot ThrowSomething(A) - ranged_cooldown = world.time + ranged_cooldown_time + ranged_cooldown = world.time + ranged_cooldown_time + rand(0,30) if(sound_after_shooting) addtimer(CALLBACK(usr, GLOBAL_PROC_REF(playsound), src, sound_after_shooting, 100, 0, 0), sound_after_shooting_delay, TIMER_STOPPABLE) if(projectiletype)