Use monster classname for player deaths.
This commit is contained in:
@@ -142,6 +142,8 @@ void CMTurret::Spawn()
|
||||
m_eyeBrightness = 0;
|
||||
|
||||
pev->nextthink = gpGlobals->time + 0.3;
|
||||
|
||||
pev->classname = MAKE_STRING( "monster_turret" );
|
||||
}
|
||||
|
||||
void CMTurret::Precache()
|
||||
@@ -166,8 +168,10 @@ void CMMiniTurret::Spawn()
|
||||
m_iMinPitch = -15;
|
||||
UTIL_SetSize(pev, Vector(-16, -16, -m_iRetractHeight), Vector(16, 16, m_iRetractHeight));
|
||||
|
||||
SetThink(&CMMiniTurret::Initialize);
|
||||
pev->nextthink = gpGlobals->time + 0.3;
|
||||
SetThink(&CMMiniTurret::Initialize);
|
||||
pev->nextthink = gpGlobals->time + 0.3;
|
||||
|
||||
pev->classname = MAKE_STRING( "monster_miniturret" );
|
||||
}
|
||||
|
||||
|
||||
@@ -1006,8 +1010,10 @@ void CMSentry::Spawn()
|
||||
UTIL_SetSize(pev, Vector(-16, -16, -m_iRetractHeight), Vector(16, 16, m_iRetractHeight));
|
||||
|
||||
SetTouch(&CMSentry::SentryTouch);
|
||||
SetThink(&CMSentry::Initialize);
|
||||
pev->nextthink = gpGlobals->time + 0.3;
|
||||
SetThink(&CMSentry::Initialize);
|
||||
pev->nextthink = gpGlobals->time + 0.3;
|
||||
|
||||
pev->classname = MAKE_STRING( "monster_sentry" );
|
||||
}
|
||||
|
||||
void CMSentry::Shoot(Vector &vecSrc, Vector &vecDirToEnemy)
|
||||
|
||||
Reference in New Issue
Block a user