Engineering Space Helmets and CE space helmets now have flashlights built in to them.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1953 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
Superxpdude@gmail.com
2011-07-30 16:05:37 +00:00
parent 7e77eb4a85
commit b7bc3fa7c3
4 changed files with 70 additions and 2 deletions
+6 -2
View File
@@ -175,8 +175,10 @@
/obj/item/clothing/head/helmet/space/engineering
name = "Engineering space helmet"
desc = "A special helmet designed for work in a hazardous, low-pressure environment. Painted in Engineering Orange to designate its department of origin."
icon_state = "helm-orange"
icon_state = "helm_engineering0"
item_state = "helm-orange"
var/brightness_on = 4
var/on = 0
radiation_protection = 0.25
armor = list(melee = 40, bullet = 30, laser = 20, taser = 5, bomb = 35, bio = 50, rad = 50)
@@ -191,8 +193,10 @@
/obj/item/clothing/head/helmet/space/command/chief_engineer
name = "Chief engineer space helmet"
desc = "A special helmet designed to work in a hazardous, low-pressure environment. Bears the insignia of the chief engineer."
icon_state = "helm-ce"
icon_state = "helm_ce0"
item_state = "helm-ce"
var/brightness_on = 4
var/on = 0
/obj/item/clothing/head/helmet/space/command/chief_medical_officer
name = "Chief medical offier space helmet"
+64
View File
@@ -82,4 +82,68 @@
/obj/item/clothing/head/helmet/hardhat/dropped(mob/user)
if(on)
user.sd_SetLuminosity(user.luminosity - brightness_on)
src.sd_SetLuminosity(brightness_on)
/obj/item/clothing/head/helmet/space/engineering/verb/toggle()
set name = "Toggle Helmet Light"
set category = "Object"
on = !on
icon_state = "helm_engineering[on]"
if(on)
usr.sd_SetLuminosity(usr.luminosity + brightness_on)
else
usr.sd_SetLuminosity(usr.luminosity - brightness_on)
/obj/item/clothing/head/helmet/space/engineering/attack_self(mob/user)
on = !on
icon_state = "helm_engineering[on]"
if(on)
user.sd_SetLuminosity(user.luminosity + brightness_on)
else
user.sd_SetLuminosity(user.luminosity - brightness_on)
/obj/item/clothing/head/helmet/space/engineering/pickup(mob/user)
if(on)
src.sd_SetLuminosity(0)
usr.sd_SetLuminosity(usr.luminosity + brightness_on)
/obj/item/clothing/head/helmet/space/engineering/dropped(mob/user)
if(on)
usr.sd_SetLuminosity(usr.luminosity - brightness_on)
src.sd_SetLuminosity(brightness_on)
/obj/item/clothing/head/helmet/space/command/chief_engineer/verb/toggle()
set name = "Toggle Helmet Light"
set category = "Object"
on = !on
icon_state = "helm_ce[on]"
if(on)
usr.sd_SetLuminosity(usr.luminosity + brightness_on)
else
usr.sd_SetLuminosity(usr.luminosity - brightness_on)
/obj/item/clothing/head/helmet/space/command/chief_engineer/attack_self(mob/user)
on = !on
icon_state = "helm_ce[on]"
if(on)
user.sd_SetLuminosity(user.luminosity + brightness_on)
else
user.sd_SetLuminosity(user.luminosity - brightness_on)
/obj/item/clothing/head/helmet/space/command/chief_engineer/pickup(mob/user)
if(on)
src.sd_SetLuminosity(0)
usr.sd_SetLuminosity(usr.luminosity + brightness_on)
/obj/item/clothing/head/helmet/space/command/chief_engineer/dropped(mob/user)
if(on)
usr.sd_SetLuminosity(usr.luminosity - brightness_on)
src.sd_SetLuminosity(brightness_on)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 22 KiB