mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 05:22:55 +00:00
Merge branch 'tot' into mobile_hacks
This commit is contained in:
commit
08cb9e6b67
@ -47,6 +47,12 @@ extern "C" EXPORT void monster_civ( entvars_t *pev )
|
||||
//=========================================================
|
||||
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");
|
||||
@ -67,11 +73,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user