#include "../util.qh"
#include <server/weapons/csqcprojectile.qh>
#include <server/autocvars.qh>
- #include <server/constants.qh>
- #include <server/defs.qh>
+ #include <common/weapons/_all.qh>
+ #include <common/stats.qh>
#include "../deathtypes/all.qh"
#include "../turrets/sv_turrets.qh"
#include "../vehicles/all.qh"
- #include "../mapinfo.qh"
+ #include <common/gamemodes/_mod.qh>
#include <server/anticheat.qh>
#endif
#ifdef SVQC
if(IS_PLAYER(player))
{
- if(tflags & TELEPORT_FLAG_TDEATH)
- if(player.takedamage && !IS_DEAD(player) && !g_race && !g_cts && (autocvar_g_telefrags || (tflags & TELEPORT_FLAG_FORCE_TDEATH)))
- tdeath(player, teleporter, telefragger, telefragmin, telefragmax);
+ if((tflags & TELEPORT_FLAG_TDEATH) && player.takedamage && !IS_DEAD(player)
+ && !g_race && !g_cts && (autocvar_g_telefrags || (tflags & TELEPORT_FLAG_FORCE_TDEATH))
+ && !(round_handler_IsActive() && !round_handler_IsRoundStarted()))
+ {
+ tdeath(player, teleporter, telefragger, telefragmin, telefragmax);
+ }
// player no longer is on ground
UNSET_ONGROUND(player);