Skip to content

Commit

Permalink
Merge branch 'master' into sohl1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nekonomicon committed Jan 2, 2025
2 parents a652581 + 75b38fc commit 42ed34b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions dlls/func_break.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,8 @@ class CPushable : public CBreakable
// breakables use an overridden takedamage
virtual int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );

int DamageDecal(int bitsDamageType);

static TYPEDESCRIPTION m_SaveData[];

static const char *m_soundNames[3];
Expand Down Expand Up @@ -1227,3 +1229,11 @@ int CPushable::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, floa

return 1;
}

int CPushable::DamageDecal(int bitsDamageType)
{
if (FBitSet(pev->spawnflags, SF_PUSH_BREAKABLE))
return CBreakable::DamageDecal(bitsDamageType);

return CBaseEntity::DamageDecal(bitsDamageType);
}
3 changes: 2 additions & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3220,7 +3220,6 @@ void CBasePlayer::Precache( void )
m_flgeigerRange = 1000;
m_igeigerRangePrev = 1000;

m_bitsDamageType = 0;
m_bitsHUDDamage = -1;

m_iClientBattery = -1;
Expand All @@ -3234,6 +3233,8 @@ void CBasePlayer::Precache( void )

m_iUpdateTime = 5; // won't update for 1/2 a second

m_nCustomSprayFrames = -1;

if( gInitHUD )
m_fInitHUD = TRUE;

Expand Down

0 comments on commit 42ed34b

Please sign in to comment.