mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
* mob part bitflags in proper format, added tail part bitflag, hidetail clothing cover flag, reordered tail layer, added tail_underlimbs_layer for overlapping tails, limbs_layer for limbs placed under, tail_wagging + has_icon_skin_tone + tail_overlapped species anatomical flags, mutable_appearance() helper, made many suits cover tail, added tail wagging emote for species that can wag, made a species folder for species files, rewrote update_tail_showing(), character preview can show tails, vox tails are now separate from the body instead of being baked into the chest, vox tails will show slightly in north dir instead of being invisible * added color defines, undid bitfield format change, wag emote is shorter and doesnt show text on stopping wag, vox tails have their own file and have better names, removed icon manipulation from tail updating, species can have own tail icon, made vox tail north sprites full/complete sprites * wag emote no longer displays runechat, custom emotes can choose to not show runechat, restores old husk overlays * limb_tail tail define, moved 2 tail species flags to organ level, added span define, tail is on organ level, added support for cosmetic organs, tail preview icon shows better, added tail support to common surgeries * fix double tail organ, tail organ item only uses east sprite and is shifted to center it more * removes tail wagging * rename tail define, minor tweaks * more checks, fix char preview issues, remove unused proc, frankensteins spawn with random kind of tail, repaired tajaran and unathi tails credit to falcon2346, robotail support, rambler will not spawn with tail, gibbing drops tails * Update species.dm
92 lines
3.3 KiB
Plaintext
92 lines
3.3 KiB
Plaintext
/datum/species/plasmaman // /vg/
|
|
name = "Plasmaman"
|
|
icobase = 'icons/mob/human_races/r_plasmaman_sb.dmi'
|
|
deform = 'icons/mob/human_races/r_plasmaman_pb.dmi' // TODO: Need deform.
|
|
known_languages = list(LANGUAGE_HUMAN)
|
|
attack_verb = "punches"
|
|
|
|
flags = WHITELISTED | PLAYABLE | PLASMA_IMMUNE
|
|
anatomy_flags = NO_BLOOD
|
|
blood_color = "#743474"
|
|
flesh_color = "#898476"
|
|
|
|
//default_mutations=list(M_SKELETON) // This screws things up
|
|
primitive = /mob/living/carbon/monkey/skellington/plasma
|
|
|
|
breath_type = GAS_PLASMA
|
|
|
|
heat_level_1 = 350 // Heat damage level 1 above this point.
|
|
heat_level_2 = 400 // Heat damage level 2 above this point.
|
|
heat_level_3 = 500 // Heat damage level 3 above this point.
|
|
burn_mod = 0.5
|
|
brute_mod = 1.5
|
|
|
|
head_icons = 'icons/mob/species/plasmaman/head.dmi'
|
|
wear_suit_icons = 'icons/mob/species/plasmaman/suit.dmi'
|
|
|
|
has_organ = list(
|
|
"heart" = /datum/organ/internal/heart,
|
|
"lungs" = /datum/organ/internal/lungs/plasmaman,
|
|
"liver" = /datum/organ/internal/liver,
|
|
"kidneys" = /datum/organ/internal/kidney,
|
|
"brain" = /datum/organ/internal/brain,
|
|
"appendix" = /datum/organ/internal/appendix,
|
|
"eyes" = /datum/organ/internal/eyes
|
|
)
|
|
monkey_anim = "p2monkey"
|
|
|
|
meat_type = /obj/item/weapon/reagent_containers/food/snacks/meat/plasmaman
|
|
|
|
survival_gear = /obj/item/weapon/storage/box/survival/plasmaman
|
|
|
|
/datum/species/plasmaman/New()
|
|
..()
|
|
speech_filter = new /datum/speech_filter/unathi
|
|
|
|
// -- Outfit datums --
|
|
/datum/species/plasmaman/final_equip(var/mob/living/carbon/human/H)
|
|
H.fire_sprite = "Plasmaman"
|
|
var/tank_slot = slot_s_store
|
|
var/tank_slot_name = "suit storage"
|
|
H.equip_or_collect(new/obj/item/weapon/tank/plasma/plasmaman(H), tank_slot) // Bigger plasma tank from Raggy.
|
|
to_chat(H, "<span class='notice'>You are now running on plasma internals from the [H.s_store] in your [tank_slot_name]. You must breathe plasma in order to survive, and are extremely flammable.</span>")
|
|
H.internal = H.get_item_by_slot(tank_slot)
|
|
if (H.internals)
|
|
H.internals.icon_state = "internal1"
|
|
|
|
/datum/species/plasmaman/can_artifact_revive()
|
|
return 0
|
|
|
|
/datum/species/plasmaman/handle_environment(var/datum/gas_mixture/environment, var/mob/living/carbon/human/host)
|
|
//For now we just assume suit and head are capable of containing the plasmaman
|
|
var/flags_found = FALSE
|
|
if(host.wear_suit && (host.wear_suit.clothing_flags & CONTAINPLASMAMAN) && host.head && (host.head.clothing_flags & CONTAINPLASMAMAN))
|
|
flags_found = TRUE
|
|
|
|
if(!flags_found)
|
|
if(environment)
|
|
if(environment.total_moles && ((environment[GAS_OXYGEN] / environment.total_moles) >= OXYCONCEN_PLASMEN_IGNITION)) //How's the concentration doing?
|
|
if(!host.on_fire)
|
|
to_chat(host, "<span class='warning'>Your body reacts with the atmosphere and bursts into flame!</span>")
|
|
host.adjust_fire_stacks(0.5)
|
|
host.IgniteMob()
|
|
else
|
|
var/obj/item/clothing/suit/PS=host.wear_suit
|
|
if(istype(PS))
|
|
if(host.fire_stacks > 0)
|
|
PS.Extinguish(host)
|
|
else
|
|
PS.regulate_temp_of_wearer(host)
|
|
|
|
/datum/species/plasmaman/gib(mob/living/carbon/human/H)
|
|
..()
|
|
var/datum/organ/external/head_organ = H.get_organ(LIMB_HEAD)
|
|
if(head_organ.status & ORGAN_DESTROYED)
|
|
new /obj/effect/decal/remains/human/noskull(H.loc)
|
|
else
|
|
new /obj/effect/decal/remains/human(H.loc)
|
|
head_organ.droplimb(1,1)
|
|
|
|
H.drop_all()
|
|
qdel(H)
|