•Voidpacks now work, and have sprites for every itemstate.

Simple "if" structure added in the toggle-jetpack verb to check the type of the suit. It's friendly to any addition of new jetpack types. I'll be including those re-sprited suits soon.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1423 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
polyxenitopalidou@gmail.com
2011-04-08 23:39:22 +00:00
parent 162014c7f9
commit caabcf0820
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
/obj/closet/malf/suits/New()
..()
sleep(2)
new /obj/item/weapon/tank/jetpack(src)
new /obj/item/weapon/tank/jetpack/voidpack(src)
new /obj/item/clothing/mask/breath(src)
new /obj/item/clothing/head/helmet/space/nasavoid(src)
new /obj/item/clothing/suit/space/nasavoid(src)
+4 -1
View File
@@ -285,7 +285,10 @@
set name = "Toggle Jetpack"
set category = "Object"
src.on = !( src.on )
src.icon_state = text("jetpack[]", src.on)
if(src.name == "Void Jetpack (oxygen)") //Slight change added by me. i didn't make it an if-elseif because some of you might want to add other types of resprited packs :3 -Agouri
src.icon_state = text("voidjetpack[]", src.on)
else
src.icon_state = text("jetpack[]", src.on)
if(src.on)
src.ion_trail.start()
else