|
|
|
@ -42,6 +42,12 @@ LINK_ENTITY_TO_CLASS(monster_civ, CCivScientist);
@@ -42,6 +42,12 @@ LINK_ENTITY_TO_CLASS(monster_civ, CCivScientist);
|
|
|
|
|
//=========================================================
|
|
|
|
|
void CCivScientist::Spawn(void) |
|
|
|
|
{ |
|
|
|
|
// We need to set it before precache so the right voice will be chosen
|
|
|
|
|
if( pev->body == -1 ) |
|
|
|
|
{// -1 chooses a random head
|
|
|
|
|
pev->body = RANDOM_LONG( 0, NUM_SCIENTIST_HEADS - 1 );// pick a head, any he
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Precache(); |
|
|
|
|
|
|
|
|
|
SET_MODEL(ENT(pev), "models/civ_sci.mdl"); |
|
|
|
@ -62,11 +68,6 @@ void CCivScientist::Spawn(void)
@@ -62,11 +68,6 @@ void CCivScientist::Spawn(void)
|
|
|
|
|
// White hands
|
|
|
|
|
pev->skin = 0; |
|
|
|
|
|
|
|
|
|
if (pev->body == -1) |
|
|
|
|
{// -1 chooses a random head
|
|
|
|
|
pev->body = RANDOM_LONG(0, NUM_SCIENTIST_HEADS - 1);// pick a head, any head
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Luther is black, make his hands black
|
|
|
|
|
if (pev->body == HEAD_LUTHER) |
|
|
|
|
pev->skin = 1; |
|
|
|
|