[MIRROR] Adds unique projectile hit messages to simplemobs

This commit is contained in:
Chompstation Bot
2021-10-28 01:07:42 +00:00
parent 4f36828e4c
commit eef3a58cfb
54 changed files with 318 additions and 31 deletions

View File

@@ -679,17 +679,23 @@
playsound(target_mob, "bullet_miss", 75, 1)
return FALSE
var/impacted_organ = parse_zone(def_zone)
if(istype(target_mob, /mob/living/simple_mob))
var/mob/living/simple_mob/SM = target_mob
var/decl/mob_organ_names/organ_plan = SM.organ_names
impacted_organ = pick(organ_plan.hit_zones)
//hit messages
if(silenced)
playsound(target_mob, hitsound, 5, 1, -1)
to_chat(target_mob, span("critical", "You've been hit in the [parse_zone(def_zone)] by \the [src]!"))
to_chat(target_mob, span("critical", "You've been hit in the [impacted_organ] by \the [src]!"))
else
var/volume = vol_by_damage()
playsound(target_mob, hitsound, volume, 1, -1)
// X has fired Y is now given by the guns so you cant tell who shot you if you could not see the shooter
target_mob.visible_message(
span("danger", "\The [target_mob] was hit in the [parse_zone(def_zone)] by \the [src]!"),
span("critical", "You've been hit in the [parse_zone(def_zone)] by \the [src]!")
span("danger", "\The [target_mob] was hit in the [impacted_organ] by \the [src]!"),
span("critical", "You've been hit in the [impacted_organ] by \the [src]!")
)
//admin logs