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

This commit is contained in:
Marco Cawthorne 2022-04-05 20:37:30 -07:00
parent 02114e9188
commit def78f91a3
Signed by: eukara
GPG key ID: C196CD8BA993248A
2 changed files with 7 additions and 2 deletions

View file

@ -36,7 +36,12 @@ ClientGame_EventParse(float fHeader)
vGibPos[0] = readcoord(); vGibPos[0] = readcoord();
vGibPos[1] = readcoord(); vGibPos[1] = readcoord();
vGibPos[2] = 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; break;
case EV_BLOOD: case EV_BLOOD:
vector vBloodPos; vector vBloodPos;

View file

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