-Fixed meteors so that they properly come from multiple directions

-Added a new malf AI sprite, courtesy of the d2k5 server.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1643 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
Daelith.Rhedynfre@gmail.com
2011-05-31 09:02:02 +00:00
parent dd63a1ce4f
commit 45960ad350
2 changed files with 6 additions and 7 deletions
+6 -7
View File
@@ -24,7 +24,6 @@
/proc/spawn_meteor()
var/startside = pick(cardinal)
var/startx
var/starty
var/endx
@@ -35,23 +34,23 @@
do
switch(startside)
if(NORTH)
switch(pick(1,2,3,4))
if(1) //NORTH
starty = world.maxy-1
startx = rand(1, world.maxx-1)
endy = 1
endx = rand(1, world.maxx-1)
if(EAST)
if(2) //EAST
starty = rand(1,world.maxy-1)
startx = world.maxx-1
endy = rand(1, world.maxy-1)
endx = 1
if(SOUTH)
if(3) //SOUTH
starty = 1
startx = rand(1, world.maxx-1)
endy = world.maxy-1
endx = rand(1, world.maxx-1)
if(WEST)
if(4) //WEST
starty = rand(1, world.maxy-1)
startx = 1
endy = rand(1,world.maxy-1)
@@ -111,7 +110,7 @@
playsound(src.loc, 'meteorimpact.ogg', 40, 1)
if (--src.hits <= 0)
if(prob(15))// && !istype(A, /obj/grille))
explosion(src.loc, 0, 5, 6, 7, 0)
explosion(src.loc, 4, 5, 6, 7, 0)
playsound(src.loc, "explosion", 50, 1)
del(src)
return