Extend FX_GibHuman with a dir (euler) and force parameter.
This commit is contained in:
parent
02114e9188
commit
def78f91a3
2 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue