mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 09:02:27 +00:00
changes:
rscadd: "Ported a new chat system, Goonchat, that allows for cool things like changing font style, size, spacing, highlighting up to 5 strings in the chat, and DARK MODE."
rscadd: "Repeated chat messages can now get compacted. You can disable this in goonchat settings."
rscadd: "You can change icon style to any font on your system."
tweak: "The game window has been altered a bit to adjust for this."
rscdel: "Removed skin style prefs as they are no longer used."
203 lines
6.9 KiB
Plaintext
203 lines
6.9 KiB
Plaintext
/*
|
|
* Contains:
|
|
* Fire protection
|
|
* Bomb protection
|
|
* Radiation protection
|
|
*/
|
|
|
|
/*
|
|
* Fire protection
|
|
*/
|
|
|
|
/obj/item/clothing/suit/fire
|
|
name = "firesuit"
|
|
desc = "A suit that protects against fire and heat."
|
|
icon_state = "firesuit"
|
|
item_state = "firesuit"
|
|
w_class = ITEMSIZE_LARGE//bulky item
|
|
gas_transfer_coefficient = 0.90
|
|
permeability_coefficient = 0.50
|
|
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
|
|
siemens_coefficient = 0.5
|
|
allowed = list(/obj/item/device/flashlight,/obj/item/tank/emergency_oxygen,/obj/item/extinguisher)
|
|
slowdown = 1.0
|
|
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT|HIDETAIL
|
|
heat_protection = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
|
|
max_heat_protection_temperature = FIRESUIT_MAX_HEAT_PROTECTION_TEMPERATURE
|
|
cold_protection = UPPER_TORSO | LOWER_TORSO | LEGS | FEET | ARMS | HANDS
|
|
|
|
|
|
/obj/item/clothing/suit/fire/firefighter
|
|
icon_state = "firesuit"
|
|
item_state = "firesuit"
|
|
|
|
|
|
/obj/item/clothing/suit/fire/heavy
|
|
name = "firesuit"
|
|
desc = "A suit that protects against extreme fire and heat."
|
|
//icon_state = "thermal"
|
|
siemens_coefficient = 0.35
|
|
item_state = "ro_suit"
|
|
w_class = ITEMSIZE_LARGE//bulky item
|
|
max_heat_protection_temperature = FIRESUIT_MAX_HEAT_PROTECTION_TEMPERATURE + 25000
|
|
slowdown = 1.5
|
|
|
|
/obj/item/clothing/suit/fire/atmos
|
|
name = "atmospheric technician firesuit"
|
|
desc = "A suit that protects against fire and heat, this one is designed for atmospheric technicians."
|
|
siemens_coefficient = 0.35
|
|
max_heat_protection_temperature = FIRESUIT_MAX_HEAT_PROTECTION_TEMPERATURE + 15000
|
|
icon_state = "atmos_firesuit"
|
|
item_state = "atmos_firesuit"
|
|
|
|
/*
|
|
* Bomb protection
|
|
*/
|
|
/obj/item/clothing/head/bomb_hood
|
|
name = "bomb hood"
|
|
desc = "Use in case of bomb."
|
|
icon_state = "bombsuit"
|
|
w_class = ITEMSIZE_HUGE//Too large to fit in a backpack
|
|
item_flags = STOPPRESSUREDAMAGE|THICKMATERIAL|BLOCK_GAS_SMOKE_EFFECT
|
|
armor = list(melee = 30, bullet = 20, laser = 25,energy = 30, bomb = 100, bio = 60, rad = 60)
|
|
siemens_coefficient = 0.1
|
|
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES
|
|
body_parts_covered = HEAD|FACE|EYES
|
|
siemens_coefficient = 0
|
|
tint = TINT_HEAVY
|
|
|
|
|
|
//Changes by Nanako
|
|
//Bomb suits should huge and robust. They used to have 100 bomb protection and nothing in other categories
|
|
//Bomb suits now have decent resistance in all categories, but with two major ergonomic drawbacks:
|
|
//1. Heavy. really heavy, massive slowdown on movement
|
|
//2. Bomb suit materials don't allow permeability of body heat, thus the wearer tends to overheat and can't wear them for long
|
|
/obj/item/clothing/suit/bomb_suit
|
|
name = "bomb suit"
|
|
desc = "A suit designed for safety when handling explosives. It looks heavy and uncomfortable to wear for even a short time."
|
|
icon_state = "bombsuit"
|
|
item_state = "bombsuit"
|
|
w_class = ITEMSIZE_HUGE //bulky item
|
|
gas_transfer_coefficient = 0.01
|
|
permeability_coefficient = 0.01
|
|
slowdown = 8
|
|
armor = list(melee = 55, bullet = 55, laser = 55,energy = 60, bomb = 100, bio = 60, rad = 60)
|
|
siemens_coefficient = 0.1
|
|
item_flags = STOPPRESSUREDAMAGE|THICKMATERIAL
|
|
flags_inv = HIDEJUMPSUIT|HIDETAIL
|
|
heat_protection = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS
|
|
cold_protection = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS
|
|
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS
|
|
max_heat_protection_temperature = SPACE_SUIT_MAX_HEAT_PROTECTION_TEMPERATURE
|
|
siemens_coefficient = 0
|
|
var/mob/living/carbon/human/wearer = null
|
|
var/suit_temp = T20C
|
|
|
|
/obj/item/clothing/suit/bomb_suit/equipped(var/mob/user, var/slot)
|
|
if (slot == slot_wear_suit)
|
|
var/mob/living/carbon/human/H = user
|
|
H.visible_message("<span class='notice'>[H] starts putting on \the [src]...</span>", "<span class='notice'>You start putting on \the [src]...</span>")
|
|
if(!do_after(H,50))
|
|
if(H && H.wear_suit == src)
|
|
H.wear_suit = null
|
|
H.drop_from_inventory(src,get_turf(H))
|
|
else
|
|
src.forceMove(get_turf(H))
|
|
return
|
|
|
|
wearer = user
|
|
to_chat(wearer, "<span class='Notice'>You struggle into the [src]. It feels hot, heavy and uncomfortable</span>")
|
|
START_PROCESSING(SSprocessing, src)
|
|
else
|
|
wearer = null
|
|
|
|
..(user, slot)
|
|
|
|
#define BOMBSUIT_THERMAL 0.27
|
|
#define BOMBHOOD_THERMAL 0.12
|
|
#define BOMBSUIT_MAX_TEMPERATURE 420 //heat 2 for humans, heat 1 for unathi
|
|
/obj/item/clothing/suit/bomb_suit/process()
|
|
if (!checkworn())//If nobody's wearing the suit, then it cools down
|
|
suit_temp -= 0.5
|
|
if (suit_temp < T20C)
|
|
suit_temp = T20C
|
|
STOP_PROCESSING(SSprocessing, src)
|
|
return
|
|
else
|
|
var/amount = BOMBSUIT_THERMAL
|
|
if (istype(wearer.head, /obj/item/clothing/head/bomb_hood))//wearing both parts heats up faster
|
|
amount += BOMBHOOD_THERMAL
|
|
|
|
suit_temp = min(suit_temp+amount, BOMBSUIT_MAX_TEMPERATURE)
|
|
|
|
if (wearer.bodytemperature < suit_temp)
|
|
wearer.bodytemperature += (suit_temp - wearer.bodytemperature)*0.5//Bodytemperature damps towards the suit temp
|
|
if (wearer.bodytemperature >= wearer.species.heat_discomfort_level)
|
|
wearer.species.get_environment_discomfort(wearer,"heat")
|
|
//This is added here because normal discomfort messages proc off of breath rather than bodytemperature.
|
|
//Since the surrounding environment isnt heated, they don't happen without it being specifically called here
|
|
|
|
/obj/item/clothing/suit/bomb_suit/proc/checkworn()
|
|
if (wearer)
|
|
if (wearer.wear_suit == src)
|
|
return 1
|
|
|
|
if (istype(loc, /mob/living/carbon/human))
|
|
wearer = loc
|
|
if (wearer.wear_suit == src)
|
|
return 1
|
|
else
|
|
return 0
|
|
|
|
else
|
|
wearer = null
|
|
return 0
|
|
|
|
|
|
/obj/item/clothing/suit/bomb_suit/Destroy()
|
|
STOP_PROCESSING(SSprocessing, src)
|
|
return ..()
|
|
|
|
|
|
/obj/item/clothing/head/bomb_hood/security
|
|
icon_state = "bombsuitsec"
|
|
body_parts_covered = HEAD
|
|
|
|
/obj/item/clothing/suit/bomb_suit/security
|
|
icon_state = "bombsuitsec"
|
|
allowed = list(/obj/item/gun/energy, /obj/item/melee/baton, /obj/item/handcuffs, /obj/item/wirecutters/bomb)
|
|
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|FEET|ARMS|HANDS
|
|
|
|
/*
|
|
* Radiation protection
|
|
*/
|
|
/obj/item/clothing/head/radiation
|
|
name = "radiation Hood"
|
|
icon_state = "rad"
|
|
desc = "A hood with radiation protective properties. Label: Made with lead, do not eat insulation"
|
|
flags_inv = BLOCKHAIR
|
|
body_parts_covered = HEAD|FACE|EYES
|
|
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 60, rad = 100)
|
|
siemens_coefficient = 0.35
|
|
|
|
|
|
/obj/item/clothing/suit/radiation
|
|
name = "radiation suit"
|
|
desc = "A suit that protects against radiation. Label: Made with lead, do not eat insulation."
|
|
icon_state = "rad"
|
|
item_state = "rad_suit"
|
|
w_class = ITEMSIZE_LARGE//bulky item
|
|
gas_transfer_coefficient = 0.90
|
|
permeability_coefficient = 0.50
|
|
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS|HANDS|FEET
|
|
allowed = list(/obj/item/device/flashlight,/obj/item/tank/emergency_oxygen,/obj/item/clothing/head/radiation,/obj/item/clothing/mask/gas)
|
|
slowdown = 1.5
|
|
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 60, rad = 100)
|
|
siemens_coefficient = 0.35
|
|
flags_inv = HIDEJUMPSUIT|HIDETAIL
|
|
|
|
|
|
#undef BOMBSUIT_THERMAL
|
|
#undef BOMBHOOD_THERMAL
|
|
#undef BOMBSUIT_MAX_TEMPERATURE
|