actually there's a setting and console command too default
What is this command?
It's the setting "keep ragdolls" in the NPC menu.