More blood.

This commit is contained in:
Night Owl 2017-12-29 21:51:11 +05:00
parent 7dc9476ef9
commit 6c7704b1f6
2 changed files with 7 additions and 4 deletions

View File

@ -243,6 +243,9 @@ void CGib::SpawnRandomGibs( entvars_t *pevVictim, int cGibs, int human )
pGib->pev->velocity = pGib->pev->velocity * 4;
}
UTIL_BloodStream( pGib->pev->origin, UTIL_RandomBloodVector(), pGib->m_bloodColor, 100 );
UTIL_BloodDrips( pGib->pev->origin, g_vecZero, pGib->m_bloodColor, RANDOM_LONG( 20, 60 ) );
pGib->pev->solid = SOLID_BBOX;
UTIL_SetSize( pGib->pev, Vector( 0, 0, 0 ), Vector( 0, 0, 0 ) );
}
@ -1336,9 +1339,6 @@ void CBaseMonster::TraceAttack( entvars_t *pevAttacker, float flDamage, Vector v
SpawnBlood( ptr->vecEndPos, BloodColor(), flDamage );// a little surface blood.
TraceBleed( flDamage, vecDir, ptr, bitsDamageType );
AddMultiDamage( pevAttacker, this, flDamage, bitsDamageType );
// Spawn blood stream.
UTIL_BloodStream( ptr->vecEndPos, -vecDir, ( BloodColor() == BLOOD_COLOR_RED ) ? 70 : BloodColor(), RANDOM_LONG( 4, 5 ) * 10 );
}
}

View File

@ -137,7 +137,10 @@ SpawnBlood
*/
void SpawnBlood( Vector vecSpot, int bloodColor, float flDamage )
{
UTIL_BloodDrips( vecSpot, g_vecAttackDir, bloodColor, (int)flDamage );
if( bloodColor == BLOOD_COLOR_RED )
bloodColor = 73;
UTIL_BloodDrips( vecSpot, g_vecAttackDir, bloodColor, (int)flDamage * 3 );
UTIL_BloodStream( vecSpot, gpGlobals->v_forward * 2 - gpGlobals->v_up * 35, bloodColor, (int)flDamage );
}
int DamageDecal( CBaseEntity *pEntity, int bitsDamageType )