mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 11:31:23 +00:00
Move prediction disabler
► Move prediction disabler for server-side blood exclusively for HL2MP.
This commit is contained in:
parent
768e128147
commit
711052df70
1 changed files with 3 additions and 2 deletions
|
@ -918,8 +918,6 @@ void CBasePlayer::DrawDebugGeometryOverlays(void)
|
|||
//=========================================================
|
||||
void CBasePlayer::TraceAttack( const CTakeDamageInfo &inputInfo, const Vector &vecDir, trace_t *ptr, CDmgAccumulator *pAccumulator )
|
||||
{
|
||||
CDisablePredictionFiltering disabler;
|
||||
|
||||
if ( m_takedamage )
|
||||
{
|
||||
CTakeDamageInfo info = inputInfo;
|
||||
|
@ -975,6 +973,9 @@ void CBasePlayer::TraceAttack( const CTakeDamageInfo &inputInfo, const Vector &v
|
|||
if ( bShouldBleed )
|
||||
#endif
|
||||
{
|
||||
#ifdef HL2MP
|
||||
CDisablePredictionFiltering disabler;
|
||||
#endif
|
||||
SpawnBlood(ptr->endpos, vecDir, BloodColor(), info.GetDamage());// a little surface blood.
|
||||
TraceBleed( info.GetDamage(), vecDir, ptr, info.GetDamageType() );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue