From b3d51631482dbcb10503c706b85d60e0ba8bc1bd Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Tue, 5 Apr 2022 20:38:36 -0700 Subject: [PATCH] Extend FX_GibHuman with a dir (euler) and force parameter. --- src/server/gamerules_multiplayer.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/gamerules_multiplayer.qc b/src/server/gamerules_multiplayer.qc index ab698e9..940b7ec 100644 --- a/src/server/gamerules_multiplayer.qc +++ b/src/server/gamerules_multiplayer.qc @@ -71,7 +71,7 @@ HLMultiplayerRules::PlayerDeath(base_player pl) /* either gib, or make a corpse */ if (pl.health < -50) { - FX_GibHuman(pl.origin); + FX_GibHuman(pl.origin, vectoangles(pl.origin - g_dmg_eAttacker.origin), g_dmg_iDamage * 2.0f); } else { FX_Corpse_Spawn((player)pl, ANIM_DIESIMPLE); }