mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-24 12:41:09 +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 )
|
HeadcrabRelease_t CNPC_BaseZombie::ShouldReleaseHeadcrab( const CTakeDamageInfo &info, float flDamageThreshold )
|
||||||
{
|
{
|
||||||
#ifdef MAPBASE
|
#ifdef MAPBASE
|
||||||
if ( m_iHealth <= 0 && !m_fIsHeadless )
|
if ( m_iHealth <= 0 && !m_fIsHeadless && !HasSpawnFlags(SF_ZOMBIE_NO_HEADCRAB_SPAWN))
|
||||||
#else
|
#else
|
||||||
if ( m_iHealth <= 0 )
|
if ( m_iHealth <= 0 )
|
||||||
#endif
|
#endif
|
||||||
|
@ -43,6 +43,7 @@ extern int AE_ZOMBIE_POUND;
|
|||||||
|
|
||||||
#ifdef MAPBASE
|
#ifdef MAPBASE
|
||||||
#define SF_ZOMBIE_NO_TORSO ( 1 << 15 )
|
#define SF_ZOMBIE_NO_TORSO ( 1 << 15 )
|
||||||
|
#define SF_ZOMBIE_NO_HEADCRAB_SPAWN ( 1 << 16 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user