Browse Source

Add monster_xboss implementation.

residual_point
Night Owl 7 years ago
parent
commit
17eaf8a782
  1. 8
      dlls/islave.cpp

8
dlls/islave.cpp

@ -97,6 +97,7 @@ public: @@ -97,6 +97,7 @@ public:
LINK_ENTITY_TO_CLASS( monster_alien_slave, CISlave )
LINK_ENTITY_TO_CLASS( monster_alien_worker, CISlave )
LINK_ENTITY_TO_CLASS( monster_xboss, CISlave )
LINK_ENTITY_TO_CLASS( monster_vortigaunt, CISlave )
TYPEDESCRIPTION CISlave::m_SaveData[] =
@ -536,6 +537,9 @@ void CISlave::Spawn() @@ -536,6 +537,9 @@ void CISlave::Spawn()
}
else
{
if( FClassnameIs( pev, "monster_xboss" ) )
SET_MODEL( ENT( pev ), "models/xboss.mdl" );
else
SET_MODEL( ENT( pev ), "models/islave.mdl" );
m_voicePitch = RANDOM_LONG( 85, 110 );
pev->health = gSkillData.slaveHealth;
@ -562,7 +566,9 @@ void CISlave::Precache() @@ -562,7 +566,9 @@ void CISlave::Precache()
{
size_t i;
if( FClassnameIs( pev, "monster_alien_worker" ) )
if( FClassnameIs( pev, "monster_xboss" ) )
PRECACHE_MODEL( "models/xboss.mdl" );
else if( FClassnameIs( pev, "monster_alien_worker" ) )
PRECACHE_MODEL( "models/aworker.mdl" );
else
PRECACHE_MODEL( "models/islave.mdl" );

Loading…
Cancel
Save