Skip to content

Commit

Permalink
Mark fake clients as notarget
Browse files Browse the repository at this point in the history
This fixes turrets spazzing out on Windows and Friendly npcs's heads on both Windows and Linux.
  • Loading branch information
Alienmario committed Aug 11, 2024
1 parent e87675e commit 29aaced
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripting/include/srccoop/deathnotice.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 29aaced

Please sign in to comment.