From 9469d8635182871699031e3a5988c51456326a49 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 19 Dec 2019 15:57:58 +0100 Subject: Delete dretch --- src/game/g_cmds.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8822d1e..87cfd65 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -3118,6 +3118,12 @@ void Cmd_Class_f( gentity_t *ent ) trap_Argv( 1, s, sizeof( s ) ); newClass = BG_FindClassNumForName( s ); + if( newClass == PCL_ALIEN_LEVEL0 ) + { + trap_SendServerCommand( ent-g_entities, "print \"Dretch is deleted\n\""); + return; + } + if( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) { if( ent->client->sess.spectatorState == SPECTATOR_FOLLOW ) -- cgit