From 66eec0128d4576297a541d7fa1947a3fe6fb0c56 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 16 Jan 2019 07:53:01 +0100 Subject: [PATCH] CBaseEntity: Added support for the Not In Deathmatch spawnflag. --- Source/gs-entbase/server/baseentity.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/gs-entbase/server/baseentity.cpp b/Source/gs-entbase/server/baseentity.cpp index aefc68c6..67757a29 100644 --- a/Source/gs-entbase/server/baseentity.cpp +++ b/Source/gs-entbase/server/baseentity.cpp @@ -36,6 +36,14 @@ class CBaseEntity void CBaseEntity :: CBaseEntity ( void ) { + /* Not in Deathmatch */ + if (spawnflags & 2048) { + if (cvar("sv_playerslots") > 1) { + remove(this); + return; + } + } + gflags |= GF_CANRESPAWN; m_oldModel = Util_FixModel(model); m_oldSolid = solid;