summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-04-03 03:39:26 +0000
committerTony J. White <tjw@tjw.org>2007-04-03 03:39:26 +0000
commit2d9ab8a588afa1b8f990b74ce324eb4f61c2c695 (patch)
treec7299320118c574db3b06dbb2be11ea650740bfb /src/cgame
parentce1b557f89f88165b681b99c7b5182f0cf87a0c6 (diff)
* PCL_HUMAN_BSUIT is now a full fledged player class now. This means that the
overrides/classes/human_bsuit.cfg file can set all the goodies such as viewHeight and bounding box size. Also, bsuit corpses work now. * added MN_A_TEAMCHANGEBUILDTIMER, MN_H_TEAMCHANGEBUILDTIMER, MN_A_EVOLVEBUILDTIMER, and MN_H_ARMOURYBUILDTIMER for the error dialogs you get when trying to do something that's not allowed with an active build timer. * added MN_H_NOARMOURYHERE and MN_H_NOENERGYAMMOHERE error dialogs for trying to buy/sell when not near the necessary buildables. * added MN_H_NOROOMBSUITON and MN_H_NOROOMBSUITOFF error dialogs for when there is no room to change class between PCL_HUMAN and PCL_HUMAN_BSUIT * removed an unused variable from my recent big ui commit
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_servercmds.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c
index 6fcae7eb..7fb3e060 100644
--- a/src/cgame/cg_servercmds.c
+++ b/src/cgame/cg_servercmds.c
@@ -540,6 +540,19 @@ void CG_Menu( int menu )
cmd = "menu tremulous_human_dialog\n";
break;
+ case MN_A_TEAMCHANGEBUILDTIMER:
+ longMsg = "You cannot leave the Alien team until your build timer "
+ "has expired.";
+ shortMsg = "You cannot change teams until your build timer expires.\n";
+ cmd = "menu tremulous_alien_dialog\n";
+ break;
+
+ case MN_H_TEAMCHANGEBUILDTIMER:
+ longMsg = "You cannot leave the Human team until your build timer "
+ "has expired.";
+ shortMsg = "You cannot change teams until your build timer expires.\n";
+ cmd = "menu tremulous_human_dialog\n";
+ break;
//===============================
@@ -634,6 +647,42 @@ void CG_Menu( int menu )
cmd = "menu tremulous_human_dialog\n";
break;
+ case MN_H_NOARMOURYHERE:
+ longMsg = "You must be near a powered Armoury in order to purchase "
+ "weapons, upgrades or non-energy ammunition.";
+ shortMsg = "You must be near a powered Armoury\n";
+ cmd = "menu tremulous_human_dialog\n";
+ break;
+
+ case MN_H_NOENERGYAMMOHERE:
+ longMsg = "You must be near an Armoury, Reactor or Repeater in order "
+ "to purchase energy ammunition.";
+ shortMsg = "You must be near an Armoury, Reactor or Repeater\n";
+ cmd = "menu tremulous_human_dialog\n";
+ break;
+
+ case MN_H_NOROOMBSUITON:
+ longMsg = "There is not enough room here to put on a Battle Suit. "
+ "Make sure you have enough head room to climb in.";
+ shortMsg = "Not enough room here to put on a Battle Suit\n";
+ cmd = "menu tremulous_human_dialog\n";
+ break;
+
+ case MN_H_NOROOMBSUITOFF:
+ longMsg = "There is not enough room here to take off your Battle Suit. "
+ "Make sure you have enough head room to climb out.";
+ shortMsg = "Not enough room here to take off your Battle Suit\n";
+ cmd = "menu tremulous_human_dialog\n";
+ break;
+
+ case MN_H_ARMOURYBUILDTIMER:
+ longMsg = "You are not allowed to buy or sell weapons until your "
+ "build timer has expired.";
+ shortMsg = "You can not buy or sell weapos until your build timer "
+ "expires\n";
+ cmd = "menu tremulous_human_dialog\n";
+ break;
+
//===============================
@@ -716,6 +765,12 @@ void CG_Menu( int menu )
cmd = "menu tremulous_alien_dialog\n";
break;
+ case MN_A_EVOLVEBUILDTIMER:
+ longMsg = "You cannot Evolve until your build timer has expired.";
+ shortMsg = "You cannot Evolve until your build timer expires\n";
+ cmd = "menu tremulous_alien_dialog\n";
+ break;
+
case MN_A_HOVEL_OCCUPIED:
longMsg = "This Hovel is already occupied by another builder.";
shortMsg = "This Hovel is already occupied by another builder\n";