Corpses spawned from human-like npcs will inherit damage values dealt to the npc (#90037)

## About The Pull Request

If you shoot a Syndicate NPC, and it dies and spawns a corpse, the
corpse will - rather than having zero damage - have the corresponding
damage you dealt to it.

## Why It's Good For The Game

Always found it a little immersion breaking that they just spawned
flawless corpses.
Course they won't have any wounds or anything... but hey it's *better*.

## Changelog

🆑 Melbert
qol: Corpses spawned from human-like NPCs will spawn damaged according
to how they died (or will even gib if the npc was gibbed)
fix: Maint Russians with guns will now spawn corpses instead of
vanishing
/🆑
This commit is contained in:
MrMelbert
2025-03-19 19:48:41 +00:00
committed by GitHub
parent 878822987c
commit 7a763a1152
7 changed files with 55 additions and 34 deletions
@@ -3,14 +3,14 @@
name = "Syndicate Operative"
desc = "Death to Nanotrasen."
faction = list(ROLE_SYNDICATE)
loot = list(/obj/effect/mob_spawn/corpse/human/syndicatesoldier)
corpse = /obj/effect/mob_spawn/corpse/human/syndicatesoldier
mob_spawner = /obj/effect/mob_spawn/corpse/human/syndicatesoldier
/mob/living/basic/trooper/syndicate/space
name = "Syndicate Commando"
maxHealth = 170
health = 170
loot = list(/obj/effect/gibspawner/human)
corpse = /obj/effect/gibspawner/human
unsuitable_atmos_damage = 0
minimum_survivable_temperature = 0
mob_spawner = /obj/effect/mob_spawn/corpse/human/syndicatecommando
@@ -29,7 +29,7 @@
/mob/living/basic/trooper/syndicate/melee //dude with a knife and no shields
melee_damage_lower = 15
melee_damage_upper = 15
loot = list(/obj/effect/gibspawner/human)
corpse = /obj/effect/gibspawner/human
attack_verb_continuous = "slashes"
attack_verb_simple = "slash"
attack_sound = 'sound/items/weapons/bladeslice.ogg'
@@ -99,7 +99,7 @@
///////////////Guns////////////
/mob/living/basic/trooper/syndicate/ranged
loot = list(/obj/effect/gibspawner/human)
corpse = /obj/effect/gibspawner/human
ai_controller = /datum/ai_controller/basic_controller/trooper/ranged
r_hand = /obj/item/gun/ballistic/automatic/pistol
/// Type of bullet we use
@@ -125,7 +125,7 @@
/mob/living/basic/trooper/syndicate/ranged/infiltrator //shuttle loan event
projectilesound = 'sound/items/weapons/gun/smg/shot_suppressed.ogg'
loot = list(/obj/effect/mob_spawn/corpse/human/syndicatesoldier)
corpse = /obj/effect/mob_spawn/corpse/human/syndicatesoldier
/mob/living/basic/trooper/syndicate/ranged/space
name = "Syndicate Commando"
@@ -159,12 +159,12 @@
name = "spaceport security"
desc = "Premier corporate security forces for all spaceports found along the Orion Trail."
faction = list(FACTION_ORION)
loot = list()
corpse = null
/mob/living/basic/trooper/syndicate/ranged/smg/pilot //caravan ambush ruin
name = "Syndicate Salvage Pilot"
loot = list(/obj/effect/mob_spawn/corpse/human/syndicatepilot)
mob_spawner = /obj/effect/mob_spawn/corpse/human/syndicatepilot
corpse = /obj/effect/mob_spawn/corpse/human/syndicatepilot
/mob/living/basic/trooper/syndicate/ranged/smg/space
name = "Syndicate Commando"