From 6c7704b1f6d289aa3797ff4f64ae0a0504064192 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Fri, 29 Dec 2017 21:51:11 +0500 Subject: [PATCH] More blood. --- dlls/combat.cpp | 6 +++--- dlls/weapons.cpp | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/combat.cpp b/dlls/combat.cpp index 7ae75648..62c55652 100644 --- a/dlls/combat.cpp +++ b/dlls/combat.cpp @@ -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 ); } } diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index e706b0e4..71a3d7c4 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -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 )