mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
Apply sci pitch fix for cleansuit scientist. Fix pitch calculation for scientist (#311)
This commit is contained in:
parent
efb3c3cb1f
commit
cbff1ee44e
@ -43,6 +43,11 @@ LINK_ENTITY_TO_CLASS(monster_cleansuit_scientist, CCleansuitScientist);
|
|||||||
//=========================================================
|
//=========================================================
|
||||||
void CCleansuitScientist::Spawn(void)
|
void CCleansuitScientist::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();
|
Precache();
|
||||||
|
|
||||||
SET_MODEL(ENT(pev), "models/cleansuit_scientist.mdl");
|
SET_MODEL(ENT(pev), "models/cleansuit_scientist.mdl");
|
||||||
@ -63,11 +68,6 @@ void CCleansuitScientist::Spawn(void)
|
|||||||
// White hands
|
// White hands
|
||||||
pev->skin = 0;
|
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
|
// Luther is black, make his hands black
|
||||||
if (pev->body == HEAD_LUTHER)
|
if (pev->body == HEAD_LUTHER)
|
||||||
pev->skin = 1;
|
pev->skin = 1;
|
||||||
|
@ -644,7 +644,7 @@ void CScientist::TalkInit()
|
|||||||
m_szGrp[TLK_MORTAL] = "SC_MORTAL";
|
m_szGrp[TLK_MORTAL] = "SC_MORTAL";
|
||||||
|
|
||||||
// get voice for head
|
// get voice for head
|
||||||
switch( pev->body % NUM_SCIENTIST_HEADS )
|
switch( pev->body % NUM_SCIENTIST_HEADS_OPFOR )
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case HEAD_GLASSES:
|
case HEAD_GLASSES:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user