From 4a51da34cefd60b26e0bc154bf3f7976e4d191d7 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Wed, 3 Sep 2003 00:18:51 +0000 Subject: * Added SURF_NOALIENBUILD and SURF_NOHUMANBUILD so that building can be prevented via shader --- src/cgame/cg_servercmds.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/cgame') diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index f6cef10f..5ad80f98 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -565,6 +565,12 @@ void CG_Menu( int menu ) trap_SendConsoleCommand( "menu tremulous_human_dialog\n" ); break; + case MN_H_NORMAL: + trap_Cvar_Set( "ui_dialog", "Cannot build on this surface. The surface is too steep or unsuitable " + "to build on. Please choose another site for this structure." ); + trap_SendConsoleCommand( "menu tremulous_alien_dialog\n" ); + break; + case MN_H_REACTOR: trap_Cvar_Set( "ui_dialog", "There can only be one reactor. Destroy the existing one if you " "wish to move it." ); @@ -613,6 +619,10 @@ void CG_Menu( int menu ) trap_SendConsoleCommand( "menu tremulous_human_dialog\n" ); break; + + //=============================== + + case MN_A_NOROOM: trap_Cvar_Set( "ui_dialog", "There is no room to build here. Move until the structure turns " "translucent green indicating a valid build location." ); -- cgit