no message

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@410 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2006-09-18 19:32:46 +00:00
parent d57c848c0d
commit 93ae9f3231
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ loadsky "textures/skymaps/steini/steini4"
texturereset // starts the texture slot/index at 0
texture 0 "kurt/klite1.jpg" //damn dummy
texture 0 "kurt/klite1.jpg" //dummy
//-------------water-uncomment all but one!------
+3 -5
View File
@@ -292,7 +292,7 @@ enum { M_NONE = 0, M_SEARCH, M_HOME, M_ATTACKING, M_PAIN, M_SLEEP, M_AIMING, M_N
#define MAXTRANS 5000 // max amount of data to swallow in 1 go
#define CUBE_SERVER_PORT 28765
#define CUBE_SERVINFO_PORT 28766
#define PROTOCOL_VERSION 121 // bump when protocol changes
#define PROTOCOL_VERSION 123 // bump when protocol changes
#define WEAPONCHANGE_TIME 400
@@ -404,8 +404,8 @@ extern bool demoplayback;
4 - team survior
5 - ctf
6 - pistols
7 - bot dm
8 - bot tdm
7 - bot tdm
8 - bot dm
9 - last swiss standing
*/
@@ -425,8 +425,6 @@ extern bool demoplayback;
//#define m_classicsp (gamemode==-2)
#define isteam(a,b) (m_teammode && strcmp(a, b)==0)
#define srvm_notimelimit (mode==1 || mode==7 || mode==8)
#define TEAM_CLA 0 //
#define TEAM_RVSF 1 //
// rb means red/blue
+3 -2
View File
@@ -255,11 +255,12 @@ void putitems(uchar *&p) // puts items in network stream and also spa
void resetspawns()
{
loopv(ents) ents[i].spawned = false;
if(m_noitemsnade)
if(m_noitemsnade || m_pistol)
loopv(ents)
{
entity &e = ents[i];
if(e.type == I_CLIPS || e.type == I_AMMO) e.type = I_GRENADE;
if(m_noitemsnade && (e.type == I_CLIPS || e.type == I_AMMO)) e.type = I_GRENADE;
else if(m_pistol && e.type==I_AMMO) e.type = I_CLIPS;
}
};
void setspawn(int i, bool on) { if(i<ents.length() && i>=0) ents[i].spawned = on; };
+6 -5
View File
@@ -4,6 +4,8 @@
#include "cube.h"
#define m_ctf_s (mode==5)
#define m_teammode_s (gamemode==0 || gamemode==4 || gamemode==5)
#define m_notimelimit_s (mode==1)
enum { ST_EMPTY, ST_LOCAL, ST_TCPIP };
@@ -32,7 +34,7 @@ string smapname;
int numclients()
{
int num = 0;
loopv(clients) if(clients[i].type!=ST_EMPTY) i++;
loopv(clients) if(clients[i].type!=ST_EMPTY) num++;
return num;
};
@@ -289,7 +291,7 @@ bool vote(char *map, int reqmode, int sender)
if(yes/(float)(yes+no) <= 0.5f) return false;
sendservmsg("vote passed");
resetvotes();
return true;
return true;
};
// Added by Rick: Vote for bot commands
@@ -556,7 +558,7 @@ void process(ENetPacket * packet, int sender) // sender may be -1
if(smapname[0] && !mapreload && !vote(text, reqmode, sender)) return;
mapreload = false;
mode = reqmode;
minremain = m_ctf_s ? 10 : (mode&1 ? 15 : 10);
minremain = m_ctf_s ? 10 : (m_teammode_s ? 15 : 10);
mapend = lastsec+minremain*60;
interm = 0;
strcpy_s(smapname, text);
@@ -826,8 +828,7 @@ void serverslice(int seconds, unsigned int timeout) // main server update, cal
lastsec = seconds;
//if((mode>1 || (mode==0 && nonlocalclients)) && seconds>mapend-minremain*60) checkintermission();
if(((srvm_notimelimit && !nonlocalclients) || (mode==0 && nonlocalclients)) && seconds>mapend-minremain*60) checkintermission();
if((mode>1 || (mode==0 && nonlocalclients)) && seconds>mapend-minremain*60) checkintermission();
if(interm && seconds>interm)
{
interm = 0;
+1 -1
View File
@@ -29,7 +29,7 @@ void sendstring(char *t, uchar *&p)
const char *modenames[] =
{
"team deathmatch", "coopedit", "deathmatch", "survior",
"team survior", "ctf", "pistols only", "bot team deathmatch", "bot deathmatch", "last swiss standing",
"team survior", "ctf", "pistols frenzy", "bot team deathmatch", "bot deathmatch", "last swiss standing",
};
//const char *modestr(int n) { return (n>=-2 && n<12) ? modenames[n+2] : "unknown"; };