From c2abd17f73dd309efa317a99b12e6072b5129126 Mon Sep 17 00:00:00 2001 From: Yui <50331474+SirYodaJedi@users.noreply.github.com> Date: Fri, 28 Feb 2025 15:15:53 -0500 Subject: [PATCH 1/2] subs.cpp - Don't network info_null --- src/game/server/subs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/server/subs.cpp b/src/game/server/subs.cpp index b2bf003f444..e7ad735453c 100644 --- a/src/game/server/subs.cpp +++ b/src/game/server/subs.cpp @@ -22,10 +22,10 @@ void CPointEntity::Spawn( void ) } -class CNullEntity : public CBaseEntity +class CNullEntity : public CServerOnlyEntity { public: - DECLARE_CLASS( CNullEntity, CBaseEntity ); + DECLARE_CLASS( CNullEntity, CServerOnlyEntity ); void Spawn( void ); }; From 60309e5343cd2b246d76bdf5674c5690c625f9bb Mon Sep 17 00:00:00 2001 From: Yui <50331474+SirYodaJedi@users.noreply.github.com> Date: Thu, 4 Dec 2025 10:30:00 -0500 Subject: [PATCH 2/2] Make infodecal and info_projecteddecal serverside as well They are networked separately of the edict, via temporary entities --- src/game/server/world.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/game/server/world.cpp b/src/game/server/world.cpp index 55c1e7b527f..4f9d8263483 100644 --- a/src/game/server/world.cpp +++ b/src/game/server/world.cpp @@ -43,10 +43,10 @@ extern CUtlMemoryPool g_EntityListPool; #define SF_DECAL_NOTINDEATHMATCH 2048 -class CDecal : public CPointEntity +class CDecal : public CServerOnlyPointEntity { public: - DECLARE_CLASS( CDecal, CPointEntity ); + DECLARE_CLASS( CDecal, CServerOnlyPointEntity ); void Spawn( void ); bool KeyValue( const char *szKeyName, const char *szValue ); @@ -240,10 +240,10 @@ bool CDecal::KeyValue( const char *szKeyName, const char *szValue ) //----------------------------------------------------------------------------- // Purpose: Projects a decal against a prop //----------------------------------------------------------------------------- -class CProjectedDecal : public CPointEntity +class CProjectedDecal : public CServerOnlyPointEntity { public: - DECLARE_CLASS( CProjectedDecal, CPointEntity ); + DECLARE_CLASS( CProjectedDecal, CServerOnlyPointEntity ); void Spawn( void ); bool KeyValue( const char *szKeyName, const char *szValue );