|
|
@ -643,23 +643,6 @@ void CScientist::Spawn( void ) |
|
|
|
const char *pszModel; |
|
|
|
const char *pszModel; |
|
|
|
Precache(); |
|
|
|
Precache(); |
|
|
|
|
|
|
|
|
|
|
|
UTIL_SetSize( pev, VEC_HUMAN_HULL_MIN, VEC_HUMAN_HULL_MAX ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pev->solid = SOLID_SLIDEBOX; |
|
|
|
|
|
|
|
pev->movetype = MOVETYPE_STEP; |
|
|
|
|
|
|
|
m_bloodColor = BLOOD_COLOR_RED; |
|
|
|
|
|
|
|
pev->health = gSkillData.scientistHealth; |
|
|
|
|
|
|
|
pev->view_ofs = Vector( 0, 0, 50 );// position of the eyes relative to monster's origin.
|
|
|
|
|
|
|
|
m_flFieldOfView = VIEW_FIELD_WIDE; // NOTE: we need a wide field of view so scientists will notice player and say hello
|
|
|
|
|
|
|
|
m_MonsterState = MONSTERSTATE_NONE; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//m_flDistTooFar = 256.0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_afCapability = bits_CAP_HEAR | bits_CAP_TURN_HEAD | bits_CAP_OPEN_DOORS | bits_CAP_AUTO_DOORS | bits_CAP_USE; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// White hands
|
|
|
|
|
|
|
|
pev->skin = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( pev->body == -1 ) |
|
|
|
if( pev->body == -1 ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// -1 chooses a random head
|
|
|
|
// -1 chooses a random head
|
|
|
@ -679,10 +662,27 @@ void CScientist::Spawn( void ) |
|
|
|
|
|
|
|
|
|
|
|
SET_MODEL( ENT( pev ), pszModel ); |
|
|
|
SET_MODEL( ENT( pev ), pszModel ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// White hands
|
|
|
|
|
|
|
|
pev->skin = 0; |
|
|
|
|
|
|
|
|
|
|
|
// Luther is black, make his hands black
|
|
|
|
// Luther is black, make his hands black
|
|
|
|
if( pev->body == HEAD_LUTHER || pev->body == HEAD_NEW_BLACK ) |
|
|
|
if( pev->body == HEAD_LUTHER || pev->body == HEAD_NEW_BLACK ) |
|
|
|
pev->skin = 1; |
|
|
|
pev->skin = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UTIL_SetSize( pev, VEC_HUMAN_HULL_MIN, VEC_HUMAN_HULL_MAX ); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pev->solid = SOLID_SLIDEBOX; |
|
|
|
|
|
|
|
pev->movetype = MOVETYPE_STEP; |
|
|
|
|
|
|
|
m_bloodColor = BLOOD_COLOR_RED; |
|
|
|
|
|
|
|
pev->health = gSkillData.scientistHealth; |
|
|
|
|
|
|
|
pev->view_ofs = Vector( 0, 0, 50 );// position of the eyes relative to monster's origin.
|
|
|
|
|
|
|
|
m_flFieldOfView = VIEW_FIELD_WIDE; // NOTE: we need a wide field of view so scientists will notice player and say hello
|
|
|
|
|
|
|
|
m_MonsterState = MONSTERSTATE_NONE; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//m_flDistTooFar = 256.0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_afCapability = bits_CAP_HEAR | bits_CAP_TURN_HEAD | bits_CAP_OPEN_DOORS | bits_CAP_AUTO_DOORS | bits_CAP_USE; |
|
|
|
|
|
|
|
|
|
|
|
MonsterInit(); |
|
|
|
MonsterInit(); |
|
|
|
SetUse( &CTalkMonster::FollowerUse ); |
|
|
|
SetUse( &CTalkMonster::FollowerUse ); |
|
|
|
} |
|
|
|
} |
|
|
|