Add "displayname" keyvalue for custom monster names.

This commit is contained in:
Julian
2020-06-03 01:36:04 -03:00
parent 4d61695e6b
commit 1e68434df5
25 changed files with 149 additions and 23 deletions

View File

@@ -49,7 +49,7 @@ void CMHornet :: Spawn( void )
pev->movetype = MOVETYPE_FLY;
pev->solid = SOLID_BBOX;
pev->takedamage = DAMAGE_YES;
pev->flags |= FL_MONSTER;
pev->flags |= FL_MONSTER; // I have a bad feeling about this
pev->health = 1;// weak!
// hornets don't live as long in multiplayer
@@ -83,6 +83,8 @@ void CMHornet :: Spawn( void )
pev->nextthink = gpGlobals->time + 0.1;
ResetSequenceInfo( );
pev->classname = MAKE_STRING( "hornet" );
}