Skip to content

Commit

Permalink
Merge pull request #5360 from Kilmented/master
Browse files Browse the repository at this point in the history
random mob firing
  • Loading branch information
Tk420634 authored Sep 23, 2024
2 parents 74b33e1 + 957bd31 commit 0fe3cae
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 0fe3cae

Please sign in to comment.