mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 11:13:16 +00:00
Fixes an issue with helmet visors
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user