mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
[MIRROR] Adds unique projectile hit messages to simplemobs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user