From 722644008f05dee4994c955b89be1d2342077d32 Mon Sep 17 00:00:00 2001 From: oy Date: Sat, 26 Mar 2011 22:38:05 +0100 Subject: added a respawn delay command for tdm --- src/game/server/gamemodes/tdm.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/game/server/gamemodes') diff --git a/src/game/server/gamemodes/tdm.cpp b/src/game/server/gamemodes/tdm.cpp index ef5302c6..fb0ff783 100644 --- a/src/game/server/gamemodes/tdm.cpp +++ b/src/game/server/gamemodes/tdm.cpp @@ -1,5 +1,7 @@ /* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */ /* If you are missing that file, acquire a complete release at teeworlds.com. */ +#include + #include #include #include "tdm.h" @@ -23,6 +25,8 @@ int CGameControllerTDM::OnCharacterDeath(class CCharacter *pVictim, class CPlaye else m_aTeamscore[pKiller->GetTeam()&1]++; // good shit } + + pVictim->GetPlayer()->m_RespawnTick = max(pVictim->GetPlayer()->m_RespawnTick, Server()->Tick()+Server()->TickSpeed()*g_Config.m_SvRespawnDelayTDM); return 0; } -- cgit 1.4.1