Fix broken shock roach death.

Fix hwgrunt not spinning down the minigun.
Other misc. fixes.
This commit is contained in:
Giegue
2023-03-04 17:24:01 -03:00
parent 62063e34da
commit bd02a95260
7 changed files with 40 additions and 10 deletions

View File

@@ -399,12 +399,12 @@ void check_player_dead( edict_t *pPlayer )
}
else
{
// SOMETHING that is a monster
// Does this monster have a name?
if ( !FStringNull( pAttacker->v.netname ) )
strcpy(szName, STRING( pAttacker->v.netname ));
else
{
// No netname, use classname
// No name, use class
strcpy(szName, STRING( pAttacker->v.classname ));
}
}
@@ -537,8 +537,8 @@ void check_monster_info( edict_t *pPlayer )
// It should be alive
if ( UTIL_IsAlive( tr.pHit ) )
{
// Must be a monster
if (tr.pHit->v.flags & FL_MONSTER)
// Must be a monster (and strictly a monster!)
if (strncmp( STRING( tr.pHit->v.classname ), "monster_", 8 ) == 0 && tr.pHit->v.flags & FL_MONSTER)
{
char szName[129];
float monsterHealth, monsterFrags;