|
|
@ -50,6 +50,12 @@ LINK_ENTITY_TO_CLASS( einar_civ, CEinarCivilian ) |
|
|
|
//=========================================================
|
|
|
|
//=========================================================
|
|
|
|
void CEinarCivilian::Spawn() |
|
|
|
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(); |
|
|
|
Precache(); |
|
|
|
|
|
|
|
|
|
|
|
SET_MODEL( ENT( pev ), "models/civ.mdl" ); |
|
|
|
SET_MODEL( ENT( pev ), "models/civ.mdl" ); |
|
|
@ -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; |
|
|
|
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(); |
|
|
|
MonsterInit(); |
|
|
|
SetUse( &CEinarCivilian::FollowerUse ); |
|
|
|
SetUse( &CEinarCivilian::FollowerUse ); |
|
|
|
} |
|
|
|
} |
|
|
|