Skip to content

Commit

Permalink
random mob firing delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilmented committed Sep 23, 2024
1 parent 0e36da9 commit 957bd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 957bd31

Please sign in to comment.