11d504e93a
* Removes hacky see in darkness invisibility bullshit, uses planes. Also removed the use of invisibility for ghosts of others, instead using override images. Per client lighting visibility now has 4 levels, all on, all off, and two midways, this allows for things to be able to see in the dark while still being able to see what is dark and what has light, ghosts and aliens and other shit can cycle between all 4, other things were given one of the 3 values depending. * Remove qdel global var search. * Cleans up code, makes changing lighting/NV level easier.
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
//////////////////The Monster
|
|
|
|
/mob/living/simple_animal/imp
|
|
name = "imp"
|
|
real_name = "imp"
|
|
desc = "A large, menacing creature covered in armored black scales."
|
|
speak_emote = list("cackles")
|
|
emote_hear = list("cackles","screeches")
|
|
response_help = "thinks better of touching"
|
|
response_disarm = "flails at"
|
|
response_harm = "punches"
|
|
icon = 'icons/mob/mob.dmi'
|
|
icon_state = "imp"
|
|
icon_living = "imp"
|
|
speed = 1
|
|
a_intent = INTENT_HARM
|
|
stop_automated_movement = 1
|
|
status_flags = CANPUSH
|
|
attack_sound = 'sound/magic/demon_attack1.ogg'
|
|
atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0)
|
|
minbodytemp = 250 //Weak to cold
|
|
maxbodytemp = INFINITY
|
|
faction = list("hell")
|
|
attacktext = "wildly tears into"
|
|
maxHealth = 200
|
|
health = 200
|
|
healable = 0
|
|
environment_smash = 1
|
|
obj_damage = 40
|
|
melee_damage_lower = 10
|
|
melee_damage_upper = 15
|
|
see_in_dark = 8
|
|
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
|
|
var/boost = 0
|
|
bloodcrawl = BLOODCRAWL_EAT
|
|
var/list/consumed_mobs = list()
|
|
var/playstyle_string = "<B><font size=3 color='red'>You are an imp,</font> a mischevious creature from hell. You are the lowest rank on the hellish totem pole \
|
|
Though you are not obligated to help, perhaps by aiding a higher ranking devil, you might just get a promotion. However, you are incapable \
|
|
of intentionally harming a fellow devil.</B>"
|
|
|
|
/mob/living/simple_animal/imp/Initialize()
|
|
..()
|
|
boost = world.time + 30
|
|
|
|
/mob/living/simple_animal/imp/Life()
|
|
..()
|
|
if(boost<world.time)
|
|
speed = 1
|
|
else
|
|
speed = 0
|
|
|
|
/mob/living/simple_animal/imp/death()
|
|
..(1)
|
|
playsound(get_turf(src),'sound/magic/demon_dies.ogg', 200, 1)
|
|
visible_message("<span class='danger'>[src] screams in agony as it sublimates into a sulfurous smoke.</span>")
|
|
ghostize()
|
|
qdel(src)
|