Use monster classname for player deaths.

This commit is contained in:
Julian
2020-06-01 17:10:52 -03:00
parent 5c275e5b62
commit d39bc85ab6
19 changed files with 307 additions and 19 deletions

View File

@@ -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)