Browse Source

Fix scientist models.

residual_point
Night Owl 7 years ago
parent
commit
8639feb2fe
  1. 21
      dlls/scientist.cpp

21
dlls/scientist.cpp

@ -681,10 +681,12 @@ void CScientist::Spawn( void )
pev->body = RANDOM_LONG( 0, numHeads - 1 );// pick a head, any head pev->body = RANDOM_LONG( 0, numHeads - 1 );// pick a head, any head
} }
// Luther is black, make his hands black if( !FClassnameIs( pev, "monster_cleansuit_scientist" ) )
{
// Luther is black, but scientist model in RP does not have black hands skin, use another head instead.
if( pev->body == HEAD_LUTHER ) if( pev->body == HEAD_LUTHER )
pev->skin = 1; pev->body = HEAD_4;
}
MonsterInit(); MonsterInit();
SetUse( &CTalkMonster::FollowerUse ); SetUse( &CTalkMonster::FollowerUse );
} }
@ -1194,11 +1196,12 @@ void CDeadScientist::Spawn()
pev->body = RANDOM_LONG( 0, numHeads - 1 );// pick a head, any head pev->body = RANDOM_LONG( 0, numHeads - 1 );// pick a head, any head
} }
// Luther is black, make his hands black if( !FClassnameIs( pev, "monster_cleansuit_scientist_dead" ) )
{
// Luther is black, but scientist model in RP does not have black hands skin, use another head instead.
if( pev->body == HEAD_LUTHER ) if( pev->body == HEAD_LUTHER )
pev->skin = 1; pev->body = HEAD_4;
else }
pev->skin = 0;
pev->sequence = LookupSequence( m_szPoses[m_iPose] ); pev->sequence = LookupSequence( m_szPoses[m_iPose] );
if( pev->sequence == -1 ) if( pev->sequence == -1 )
@ -1285,9 +1288,9 @@ void CSittingScientist::Spawn()
pev->body = RANDOM_LONG( 0, NUM_SCIENTIST_HEADS - 1 );// pick a head, any head pev->body = RANDOM_LONG( 0, NUM_SCIENTIST_HEADS - 1 );// pick a head, any head
} }
// Luther is black, make his hands black // Luther is black, but scientist model in RP does not have black hands skin, use another head instead.
if( pev->body == HEAD_LUTHER ) if( pev->body == HEAD_LUTHER )
pev->skin = 1; pev->body = HEAD_4;
m_baseSequence = LookupSequence( "sitlookleft" ); m_baseSequence = LookupSequence( "sitlookleft" );
pev->sequence = m_baseSequence + RANDOM_LONG( 0, 4 ); pev->sequence = m_baseSequence + RANDOM_LONG( 0, 4 );

Loading…
Cancel
Save