Skip to content

Commit

Permalink
ambatublow
Browse files Browse the repository at this point in the history
  • Loading branch information
NullDagaf committed Nov 15, 2023
1 parent e5fdceb commit 928aebb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modular_BD2/mortar/code/mortar.dm
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,20 @@

for(var/mob/M in range(7))
shake_camera(M, 3, 1)

var/area/target_area = get_area(T)


spawn(travel_time) //What goes up
playsound(T, 'modular_BD2/mortar/sound/mortar_long_whistle.ogg', 50, 1)
spawn(45) //Must go down //This should always be 45 ticks!
mortar_shell.detonate(T)
if(target_area.outdoors)
mortar_shell.detonate(T)
else
for(var/mob/M in range(7))
shake_camera(M, 3, 1)

playsound(T, 'sound/effects/explosionfar.ogg', 70, 1)

qdel(mortar_shell)
xdial = 0//Reset after each shell.
Expand Down

0 comments on commit 928aebb

Please sign in to comment.