summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_event.c12
-rw-r--r--src/game/bg_public.h5
-rw-r--r--src/game/g_cmds.c8
3 files changed, 20 insertions, 5 deletions
diff --git a/src/cgame/cg_event.c b/src/cgame/cg_event.c
index a2be137c..94c3498d 100644
--- a/src/cgame/cg_event.c
+++ b/src/cgame/cg_event.c
@@ -450,6 +450,18 @@ void CG_Menu( int eventParm )
trap_SendConsoleCommand( "menu hmcumenu\n" );
break;
+ case MN_NOROOM:
+ trap_SendConsoleCommand( "menu hnoroom\n" );
+ break;
+
+ case MN_NOCREEP:
+ trap_SendConsoleCommand( "menu dnocreep\n" );
+ break;
+
+ case MN_REACTOR:
+ trap_SendConsoleCommand( "menu hreactor\n" );
+ break;
+
case MN_INFEST:
strcpy( menuDef, "5,5|Infest|0.8,0,0.8,1|0.6,0,0.6,0.8|1,0,1,1|1|16|" );
for( i = PCL_NONE + 1; i < PCL_NUM_CLASSES; i++ )
diff --git a/src/game/bg_public.h b/src/game/bg_public.h
index dfdf86a3..32a2b14d 100644
--- a/src/game/bg_public.h
+++ b/src/game/bg_public.h
@@ -518,7 +518,10 @@ typedef enum
MN_ABUILD,
MN_HBUILD,
MN_MCU,
- MN_INFEST
+ MN_INFEST,
+ MN_NOROOM,
+ MN_NOCREEP,
+ MN_REACTOR
} dynMenu_t;
// animations
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 759ac058..7735ee12 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1925,11 +1925,11 @@ void Cmd_Build_f( gentity_t *ent )
break;
case IBE_NOCREEP:
- trap_SendServerCommand( ent-g_entities, va("print \"No creep to build on\n\"" ) );
+ G_AddPredictableEvent( ent, EV_MENU, MN_NOCREEP );
break;
case IBE_NOROOM:
- trap_SendServerCommand( ent-g_entities, va("print \"Not enough room\n\"" ) );
+ G_AddPredictableEvent( ent, EV_MENU, MN_NOROOM );
break;
}
}
@@ -1951,11 +1951,11 @@ void Cmd_Build_f( gentity_t *ent )
break;
case IBE_REACTOR:
- trap_SendServerCommand( ent-g_entities, va("print \"Only one reactor per map\n\"" ) );
+ G_AddPredictableEvent( ent, EV_MENU, MN_REACTOR );
break;
case IBE_NOROOM:
- trap_SendServerCommand( ent-g_entities, va("print \"Not enough room\n\"" ) );
+ G_AddPredictableEvent( ent, EV_MENU, MN_NOROOM );
break;
}
}