Skip to content

Commit

Permalink
Симплы разговаривают, ПИЛОНЫ НЕ РАНТАЙМЯТ
Browse files Browse the repository at this point in the history
  • Loading branch information
konushi committed Dec 2, 2023
1 parent 30a7ca1 commit bab14c0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
17 changes: 11 additions & 6 deletions modular_ss220/maps220/code/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,12 @@
var/alert_cooldown = 3 SECONDS
var/alert_cooldown_time


/mob/living/simple_animal/hostile/blackmesa/Initialize(mapload)
. = ..()
add_language("Sol Common")
default_language = GLOB.all_languages["Sol Common"]

/mob/living/simple_animal/hostile/blackmesa/Aggro()
if(alert_sounds)
if(world.time > alert_cooldown_time)
Expand Down Expand Up @@ -855,7 +861,7 @@
speak_chance = 1
speak_emote = list("growls")
speed = 1
move_to_delay = 3.5
move_to_delay = 3.8
emote_taunt = list("growls", "snarls", "grumbles")
taunt_chance = 100
melee_damage_lower = 15
Expand All @@ -877,7 +883,6 @@
icon_state = "scientist_zombie"
icon_living = "scientist_zombie"
loot = list(/obj/effect/gibspawner/human)
del_on_death = TRUE

/mob/living/simple_animal/hostile/blackmesa/xen/headcrab_zombie/guard
name = "zombified guard"
Expand All @@ -887,7 +892,6 @@
maxHealth = 120 // Armor!
health = 120
loot = list(/obj/effect/gibspawner/human)
del_on_death = TRUE

/mob/living/simple_animal/hostile/blackmesa/xen/headcrab_zombie/hecu
name = "zombified marine"
Expand All @@ -897,7 +901,6 @@
maxHealth = 150 // More armor!
health = 150
loot = list(/obj/effect/gibspawner/human)
del_on_death = TRUE

/mob/living/simple_animal/hostile/blackmesa/xen/headcrab_zombie/hev
name = "zombified hazardous environment specialist"
Expand All @@ -922,7 +925,7 @@
'modular_ss220/aesthetics_sounds/sound/mobs/zombies/hzv13.ogg',
'modular_ss220/aesthetics_sounds/sound/mobs/zombies/hzv14.ogg',
)
del_on_death = TRUE


//Bullsquid
/mob/living/simple_animal/hostile/blackmesa/xen/bullsquid
Expand All @@ -946,6 +949,7 @@
melee_damage_lower = 15
melee_damage_upper = 15
ranged = TRUE
del_on_death = FALSE
retreat_distance = 5
minimum_distance = 5
dodging = TRUE
Expand Down Expand Up @@ -1000,6 +1004,7 @@
melee_damage_lower = 20
melee_damage_upper = 20
rapid_melee = 2
del_on_death = FALSE
butcher_results = list(/obj/item/reagent_containers/food/snacks/monstermeat/xenomeat = 3)
attack_sound = 'sound/weapons/bite.ogg'
gold_core_spawnable = HOSTILE_SPAWN
Expand Down Expand Up @@ -1038,6 +1043,7 @@
speed = 2
ranged = TRUE
dodging = TRUE
del_on_death = FALSE
harm_intent_damage = 15
melee_damage_lower = 10
melee_damage_upper = 10
Expand Down Expand Up @@ -1087,7 +1093,6 @@
attacktext = "lathes"
attack_sound = 'sound/weapons/punch1.ogg'
status_flags = NONE
del_on_death = TRUE
wander = TRUE
loot = list(/obj/effect/gibspawner/xeno, /obj/item/stack/ore/bluespace_crystal/refined = 30, /obj/item/card/id/xen_key, /obj/item/gun/energy/wormhole_projector)
flying = TRUE
Expand Down
19 changes: 10 additions & 9 deletions modular_ss220/maps220/code/objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@
faction = list("xen")
tts_seed = "Vortiger"
gold_core_spawnable = NO_SPAWN
del_on_death = TRUE

/mob/living/simple_animal/hostile/blackmesa/xen/update_overlays()
. = ..()
Expand Down Expand Up @@ -627,7 +628,7 @@
if(!ismob(entered_atom))
return
var/mob/living/simple_animal/hostile/blackmesa/xen/entered_xen_mob = entered_atom
if(!entered_xen_mob.can_be_shielded)
if(!entered_xen_mob)
return
register_mob(entered_xen_mob)

Expand All @@ -645,21 +646,21 @@
RegisterSignal(created_beam, COMSIG_PARENT_QDELETING, PROC_REF(beam_died), override = TRUE)
RegisterSignal(mob_to_register, COMSIG_PARENT_QDELETING, PROC_REF(mob_died), override = TRUE)

/obj/structure/xen_pylon/proc/beam_died(datum/beam/beam_to_kill)
SIGNAL_HANDLER
for(var/mob/living/simple_animal/hostile/blackmesa/xen/iterating_mob as anything in shielded_mobs)
// if(shielded_mobs[iterating_mob] == beam_to_kill)
iterating_mob.lose_shield()
shielded_mobs[iterating_mob] = null
shielded_mobs -= iterating_mob

/obj/structure/xen_pylon/proc/mob_died(atom/movable/source, force)
SIGNAL_HANDLER
var/datum/beam/beam = shielded_mobs[source]
QDEL_NULL(beam)
shielded_mobs[source] = null
shielded_mobs -= source

/obj/structure/xen_pylon/proc/beam_died(datum/beam/beam_to_kill)
SIGNAL_HANDLER
for(var/mob/living/simple_animal/hostile/blackmesa/xen/iterating_mob as anything in shielded_mobs)
if(shielded_mobs[iterating_mob] == beam_to_kill)
iterating_mob.lose_shield()
shielded_mobs[iterating_mob] = null
shielded_mobs -= iterating_mob

/obj/structure/xen_pylon/Destroy()
for(var/mob/living/simple_animal/hostile/blackmesa/xen/iterating_mob as anything in shielded_mobs)
iterating_mob.lose_shield()
Expand Down

0 comments on commit bab14c0

Please sign in to comment.