about summary refs log tree commit diff
path: root/src/game/server/gamemodes/zcatch.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/gamemodes/zcatch.hpp')
-rw-r--r--src/game/server/gamemodes/zcatch.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/game/server/gamemodes/zcatch.hpp b/src/game/server/gamemodes/zcatch.hpp
new file mode 100644
index 00000000..7d6836d2
--- /dev/null
+++ b/src/game/server/gamemodes/zcatch.hpp
@@ -0,0 +1,26 @@
+/* copyright (c) 2007 magnus auvinen, see licence.txt for more info */
+#ifndef GAME_SERVER_GAMEMODES_ZCATCH_H
+#define GAME_SERVER_GAMEMODES_DM_H
+
+#include <game/server/gamecontroller.h>
+
+class CGameController_zCatch : public IGameController
+{
+	public:
+	CGameController_zCatch(class CGameContext *pGameServer);
+	virtual void Tick();
+	virtual bool IsZCatch();
+	
+	enum
+	{
+		ZCATCH_JOINED_NEW = -2,
+		ZCATCH_NOT_CATCHED = -1,
+	}; 
+
+	virtual int OnCharacterDeath(class CCharacter *pVictim, class CPlayer *pKiller, int WeaponID);
+	virtual void StartRound();
+	virtual void OnCharacterSpawn(class CCharacter *pChr);
+	virtual void EndRound();
+};
+
+#endif