From 564fbccd704780f16dd58e03278b11336944fb68 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 12:55:58 +0000 Subject: add cg_disableBlueprintErrors and un-cvarize g_humanRepeaterAllowOverlap --- src/game/g_cmds.c | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'src/game/g_cmds.c') diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 65eedc3f..9c670d5a 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -2522,32 +2522,51 @@ void Cmd_Build_f( gentity_t *ent ) case IBE_NOROOM: case IBE_NOOVERMIND: case IBE_NOPOWERHERE: + case IBE_RPWCAUSEOVRL: ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; break; // more serious errors just pop a menu case IBE_NOALIENBP: - G_TriggerMenu( ent->client->ps.clientNum, MN_A_NOBP ); + if( ent->client->pers.disableBlueprintErrors ) + ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; + else + G_TriggerMenu( ent->client->ps.clientNum, MN_A_NOBP ); break; case IBE_ONEOVERMIND: - G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEOVERMIND ); + if( ent->client->pers.disableBlueprintErrors ) + ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; + else + G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEOVERMIND ); break; case IBE_ONEHOVEL: - G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEHOVEL ); + if( ent->client->pers.disableBlueprintErrors ) + ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; + else + G_TriggerMenu( ent->client->ps.clientNum, MN_A_ONEHOVEL ); break; case IBE_ONEREACTOR: - G_TriggerMenu( ent->client->ps.clientNum, MN_H_ONEREACTOR ); + if( ent->client->pers.disableBlueprintErrors ) + ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; + else + G_TriggerMenu( ent->client->ps.clientNum, MN_H_ONEREACTOR ); break; case IBE_NOHUMANBP: - G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOBP); + if( ent->client->pers.disableBlueprintErrors ) + ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; + else + G_TriggerMenu( ent->client->ps.clientNum, MN_H_NOBP); break; case IBE_NODCC: - G_TriggerMenu( ent->client->ps.clientNum, MN_H_NODCC ); + if( ent->client->pers.disableBlueprintErrors ) + ent->client->ps.stats[ STAT_BUILDABLE ] = buildable; + else + G_TriggerMenu( ent->client->ps.clientNum, MN_H_NODCC ); break; default: -- cgit