Browse Source

Fix civilian's voice pitch selection.

theyhunger
Andrey Akhmichin 2 years ago
parent
commit
627f182571
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 12
      dlls/hunger/civilian.cpp

12
dlls/hunger/civilian.cpp

@ -50,6 +50,12 @@ LINK_ENTITY_TO_CLASS( einar_civ, CEinarCivilian ) @@ -50,6 +50,12 @@ LINK_ENTITY_TO_CLASS( einar_civ, CEinarCivilian )
//=========================================================
void CEinarCivilian::Spawn()
{
if( pev->body == -1 )
{
// -1 chooses a random head
pev->body = RANDOM_LONG( 0, NUM_CIVILIAN_HEADS - 1 );// pick a head, any head
}
Precache();
SET_MODEL( ENT( pev ), "models/civ.mdl" );
@ -68,12 +74,6 @@ void CEinarCivilian::Spawn() @@ -68,12 +74,6 @@ void CEinarCivilian::Spawn()
m_afCapability = bits_CAP_HEAR | bits_CAP_TURN_HEAD | bits_CAP_OPEN_DOORS | bits_CAP_AUTO_DOORS | bits_CAP_USE;
if( pev->body == -1 )
{
// -1 chooses a random head
pev->body = RANDOM_LONG( 0, NUM_CIVILIAN_HEADS - 1 );// pick a head, any head
}
MonsterInit();
SetUse( &CEinarCivilian::FollowerUse );
}

Loading…
Cancel
Save