mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 23:17:28 +01:00
Tempest's saddlebags now double as ambulance siren
This commit is contained in:
@@ -614,6 +614,52 @@
|
||||
slowdown = 0
|
||||
taurtype = /datum/sprite_accessory/tail/taur/feline/tempest
|
||||
no_message = "These saddlebags seem to be fitted for someone else, and keep slipping off!"
|
||||
action_button_name = "Toggle Mlembulance Mode"
|
||||
var/ambulance = 0
|
||||
var/ambulance_state = 0
|
||||
var/ambulance_last_switch = 0
|
||||
var/ambulance_volume = 15
|
||||
|
||||
/obj/item/weapon/storage/backpack/saddlebag/tempest/ui_action_click()
|
||||
ambulance = !(ambulance)
|
||||
if(ambulance)
|
||||
processing_objects.Add(src)
|
||||
item_state = "tempestsaddlebag-red"
|
||||
icon_state = "tempestbag-red"
|
||||
if (ismob(src.loc))
|
||||
var/mob/M = src.loc
|
||||
M.update_inv_back()
|
||||
ambulance_state = 0
|
||||
set_light(2, 1, "#FF0000")
|
||||
while(ambulance)
|
||||
playsound(src.loc, 'sound/items/amulanceweeoo.ogg', ambulance_volume, 0)
|
||||
sleep(20)
|
||||
else
|
||||
item_state = "tempestsaddlebag"
|
||||
icon_state = "tempestbag"
|
||||
if (ismob(src.loc))
|
||||
var/mob/M = src.loc
|
||||
M.update_inv_back()
|
||||
set_light(0)
|
||||
|
||||
/obj/item/weapon/storage/backpack/saddlebag/tempest/process()
|
||||
if(!ambulance)
|
||||
processing_objects.Remove(src)
|
||||
return
|
||||
if(world.time - ambulance_last_switch > 15)
|
||||
ambulance_state = !(ambulance_state)
|
||||
var/newcolor = "red"
|
||||
var/newlight = "#FF0000"
|
||||
if(ambulance_state)
|
||||
newcolor = "blue"
|
||||
newlight = "#0000FF"
|
||||
item_state = "tempestsaddlebag-[newcolor]"
|
||||
icon_state = "tempestbag-[newcolor]"
|
||||
if (ismob(src.loc))
|
||||
var/mob/M = src.loc
|
||||
M.update_inv_back()
|
||||
set_light(2, 1, newlight)
|
||||
ambulance_last_switch = world.time
|
||||
|
||||
//WickedTempest: Chakat Tempest
|
||||
/obj/item/weapon/implant/reagent_generator/tempest
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 52 KiB |
Binary file not shown.
Reference in New Issue
Block a user