Browse Source

Right scientist bodies on the needle draw and holster (#13)

opforfixed
Roman Chistokhodov 7 years ago committed by Andrey Akhmichin
parent
commit
1168d10392
  1. 6
      dlls/scientist.cpp
  2. 5
      dlls/scientist.h

6
dlls/scientist.cpp

@ -535,13 +535,13 @@ void CScientist::HandleAnimEvent( MonsterEvent_t *pEvent ) @@ -535,13 +535,13 @@ void CScientist::HandleAnimEvent( MonsterEvent_t *pEvent )
case SCIENTIST_AE_NEEDLEON:
{
int oldBody = pev->body;
pev->body = ( oldBody % NUM_SCIENTIST_HEADS ) + NUM_SCIENTIST_HEADS * 1;
pev->body = ( oldBody % NUM_SCIENTIST_HEADS_OPFOR ) + NUM_SCIENTIST_HEADS_OPFOR * 1;
}
break;
case SCIENTIST_AE_NEEDLEOFF:
{
int oldBody = pev->body;
pev->body = ( oldBody % NUM_SCIENTIST_HEADS ) + NUM_SCIENTIST_HEADS * 0;
pev->body = ( oldBody % NUM_SCIENTIST_HEADS_OPFOR ) + NUM_SCIENTIST_HEADS_OPFOR * 0;
}
break;
default:
@ -650,12 +650,14 @@ void CScientist::TalkInit() @@ -650,12 +650,14 @@ void CScientist::TalkInit()
m_voicePitch = 105;
break; //glasses
case HEAD_EINSTEIN:
case HEAD_EINSTEIN_WITH_BOOK:
m_voicePitch = 100;
break; //einstein
case HEAD_LUTHER:
m_voicePitch = 95;
break; //luther
case HEAD_SLICK:
case HEAD_SLICK_WITH_STICK:
m_voicePitch = 100;
break; //slick
}

5
dlls/scientist.h

@ -16,9 +16,10 @@ @@ -16,9 +16,10 @@
#ifndef SCIENTIST_H
#define SCIENTIST_H
#define NUM_SCIENTIST_HEADS 4 // four heads available for scientist model
#define NUM_SCIENTIST_HEADS 4 // four heads available for scientist model, used when randoming a scientist head
#define NUM_SCIENTIST_HEADS_OPFOR 6 // used for body change when scientist uses the needle
enum { HEAD_GLASSES = 0, HEAD_EINSTEIN = 1, HEAD_LUTHER = 2, HEAD_SLICK = 3 };
enum { HEAD_GLASSES = 0, HEAD_EINSTEIN = 1, HEAD_LUTHER = 2, HEAD_SLICK = 3, HEAD_EINSTEIN_WITH_BOOK = 4, HEAD_SLICK_WITH_STICK = 5 };
enum
{

Loading…
Cancel
Save