Unique Animal Hitzones (#10125)

This commit is contained in:
Geeves
2020-10-02 16:38:54 +02:00
committed by GitHub
parent 91303ff64d
commit ea5c5d2dda
50 changed files with 74 additions and 4 deletions
+6 -2
View File
@@ -185,11 +185,15 @@
playsound(target_mob, /decl/sound_category/bulletflyby_sound, 50, 1)
return FALSE
var/impacted_organ = parse_zone(def_zone)
if(istype(target_mob, /mob/living/simple_animal))
var/mob/living/simple_animal/SA = target_mob
impacted_organ = pick(SA.organ_names)
//hit messages
if(silenced)
to_chat(target_mob, "<span class='danger'>You've been hit in the [parse_zone(def_zone)] by \a [src]!</span>")
to_chat(target_mob, "<span class='danger'>You've been hit in the [impacted_organ] by \a [src]!</span>")
else
target_mob.visible_message("<span class='danger'>\The [target_mob] is hit by \a [src] in the [parse_zone(def_zone)]!</span>", "<span class='danger'><font size=2>You are hit by \a [src] in the [parse_zone(def_zone)]!</font></span>")//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 class='danger'>\The [target_mob] is hit by \a [src] in the [impacted_organ]!</span>", "<span class='danger'><font size=2>You are hit by \a [src] in the [impacted_organ]!</font></span>")//X has fired Y is now given by the guns so you cant tell who shot you if you could not see the shooter
//admin logs
if(!no_attack_log)