From 29aaced201ad9273fc3b547eb9982e98943966a0 Mon Sep 17 00:00:00 2001 From: Alienmario Date: Sun, 11 Aug 2024 15:38:53 +0200 Subject: [PATCH] Mark fake clients as notarget This fixes turrets spazzing out on Windows and Friendly npcs's heads on both Windows and Linux. --- scripting/include/srccoop/deathnotice.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripting/include/srccoop/deathnotice.inc b/scripting/include/srccoop/deathnotice.inc index 1022692..f28429e 100644 --- a/scripting/include/srccoop/deathnotice.inc +++ b/scripting/include/srccoop/deathnotice.inc @@ -132,6 +132,7 @@ methodmap DnManager { g_sDnData.m_pBot1 = CBasePlayer(CreateFakeClient("ScBot01")); g_sDnData.m_pBot1.SetTeam(TEAM_SPECTATOR); + g_sDnData.m_pBot1.SetFlags(FL_FAKECLIENT | FL_NOTARGET); } return g_sDnData.m_pBot1; } @@ -150,6 +151,7 @@ methodmap DnManager { g_sDnData.m_pBot2 = CBasePlayer(CreateFakeClient("ScBot02")); g_sDnData.m_pBot2.SetTeam(TEAM_SPECTATOR); + g_sDnData.m_pBot2.SetFlags(FL_FAKECLIENT | FL_NOTARGET); } return g_sDnData.m_pBot2; }