gamemodes 'hunt the flag' & 'keep the flag' added

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2485 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-09-06 02:57:11 +00:00
parent 4e531f19f0
commit 4ee2dbaddf
37 changed files with 400 additions and 192 deletions
+4 -3
View File
@@ -465,18 +465,19 @@ struct botent : playerent
int deaths() { return lifesequence; }
};
enum { CTFF_INBASE = 0, CTFF_STOLEN, CTFF_DROPPED };
enum { CTFF_INBASE = 0, CTFF_STOLEN, CTFF_DROPPED, CTFF_IDLE };
struct flaginfo
{
int team;
entity *flag;
entity *flagent;
int actor_cn;
playerent *actor;
vec originalpos;
int state; // one of CTFF_*
bool ack;
flaginfo() : flag(0), actor(0), state(CTFF_INBASE), ack(false) {}
int stolentime;
flaginfo() : flagent(0), actor(0), state(CTFF_INBASE), ack(false) {}
};
enum { BT_NONE, BT_NADE, BT_GIB };