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

This commit is contained in:
Marco Cawthorne 2022-04-05 20:38:56 -07:00
parent 90ff3b69b4
commit 294af509ad
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 7 additions and 2 deletions

View File

@ -36,7 +36,12 @@ switch (fHeader) {
vGibPos[0] = readcoord();
vGibPos[1] = readcoord();
vGibPos[2] = readcoord();
FX_GibHuman(vGibPos);
vector vDir;
vDir[0] = readcoord();
vDir[1] = readcoord();
vDir[2] = readcoord();
float flForce = readfloat();
FX_GibHuman(vGibPos, vDir, flForce);
break;
case EV_BLOOD:
vector vBloodPos;

View File

@ -25,7 +25,7 @@ CSSingleplayerRules::PlayerDeath(base_player pl)
if (pl.health < -50) {
pl.health = 0;
FX_GibHuman(pl.origin);
FX_GibHuman(pl.origin, vectoangles(pl.origin - g_dmg_eAttacker.origin), g_dmg_iDamage * 2.0f);
return;
}