mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
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:
@@ -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"
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user