Fixes an issue with helmet visors

This commit is contained in:
Mark9013100
2015-09-18 16:29:07 -04:00
committed by Neerti
parent 6e549833ac
commit 080e526e9e
3 changed files with 1 additions and 17 deletions

View File

@@ -15,23 +15,6 @@
max_heat_protection_temperature = HELMET_MAX_HEAT_PROTECTION_TEMPERATURE max_heat_protection_temperature = HELMET_MAX_HEAT_PROTECTION_TEMPERATURE
siemens_coefficient = 0.7 siemens_coefficient = 0.7
w_class = 3 w_class = 3
action_button_name = "Toggle Visor"
var/flipped = 0 //Piggybacked from cap flipping.
/obj/item/clothing/head/helmet/dropped()
src.icon_state = initial(icon_state)
src.flipped=0
..()
/obj/item/clothing/head/helmet/attack_self(mob/user)
src.flipped = !src.flipped
if(src.flipped)
icon_state = "[icon_state]up"
user << "You activate the visor."
else
src.icon_state = initial(icon_state)
user << "You push the visor into the helmet."
update_clothing_icon() //so our mob-overlays update
/obj/item/clothing/head/helmet/riot /obj/item/clothing/head/helmet/riot
name = "riot helmet" name = "riot helmet"
@@ -42,6 +25,7 @@
flags_inv = HIDEEARS flags_inv = HIDEEARS
siemens_coefficient = 0.7 siemens_coefficient = 0.7
action_button_name = "Toggle Visor" action_button_name = "Toggle Visor"
var/flipped = 0 //Piggybacked from cap flipping.
/obj/item/clothing/head/helmet/riot/dropped() /obj/item/clothing/head/helmet/riot/dropped()
src.icon_state = initial(icon_state) src.icon_state = initial(icon_state)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB