Added new spawnflag

This commit is contained in:
Wikot235 2024-07-28 14:11:06 +02:00
parent 41233cb475
commit a736b0f96a
2 changed files with 2 additions and 1 deletions

View File

@ -787,7 +787,7 @@ bool CNPC_BaseZombie::ShouldBecomeTorso( const CTakeDamageInfo &info, float flDa
HeadcrabRelease_t CNPC_BaseZombie::ShouldReleaseHeadcrab( const CTakeDamageInfo &info, float flDamageThreshold )
{
#ifdef MAPBASE
if ( m_iHealth <= 0 && !m_fIsHeadless )
if ( m_iHealth <= 0 && !m_fIsHeadless && !HasSpawnFlags(SF_ZOMBIE_NO_HEADCRAB_SPAWN))
#else
if ( m_iHealth <= 0 )
#endif

View File

@ -43,6 +43,7 @@ extern int AE_ZOMBIE_POUND;
#ifdef MAPBASE
#define SF_ZOMBIE_NO_TORSO ( 1 << 15 )
#define SF_ZOMBIE_NO_HEADCRAB_SPAWN ( 1 << 16 )
#endif