Browse Source

Fix scientist's voice pitch selection.

thegate
Andrey Akhmichin 2 years ago
parent
commit
fa2bf0b10f
No known key found for this signature in database
GPG Key ID: 1F180D249B0643C0
  1. 12
      dlls/TheGate/scientist2.cpp

12
dlls/TheGate/scientist2.cpp

@ -43,6 +43,11 @@ LINK_ENTITY_TO_CLASS(monster_scientist2, CScientist2); @@ -43,6 +43,11 @@ LINK_ENTITY_TO_CLASS(monster_scientist2, CScientist2);
void CScientist2::Spawn(void)
{
if (pev->body == -1)
{// -1 chooses a random head
pev->body = RANDOM_LONG(0, NUM_SCIENTIST_HEADS - 1);// pick a head, any head
}
Precache();
SET_MODEL(ENT(pev), "models/scientist2.mdl");
@ -63,11 +68,6 @@ void CScientist2::Spawn(void) @@ -63,11 +68,6 @@ void CScientist2::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
}
MonsterInit();
SetUse(&CScientist2::FollowerUse);
}
@ -100,4 +100,4 @@ MONSTERSTATE CScientist2::GetIdealState(void) @@ -100,4 +100,4 @@ MONSTERSTATE CScientist2::GetIdealState(void)
}
return CScientist::GetIdealState();
}
}

Loading…
Cancel
Save