mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-24 04:31:11 +03:00
Added new spawnflag
This commit is contained in:
parent
41233cb475
commit
a736b0f96a
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user