Extend FX_GibHuman with a dir (euler) and force parameter.

This commit is contained in:
Marco Cawthorne 2022-04-05 20:38:36 -07:00
parent 5ad48e5917
commit b3d5163148
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}