PropSpawner: Set prop team to CT for it to work with filtered triggers

This commit is contained in:
Irineu
2026-09-22 12:24:34 +02:00
committed by jenz
parent da984e5266
commit fd63b4c235
+1
View File
@@ -723,6 +723,7 @@ void prop_any_create(int client)
if (g_cvNotifyShot.BoolValue) if (g_cvNotifyShot.BoolValue)
{ {
SetEntityFlags(prop, FL_CLIENT); //Now youre thinking with portals SetEntityFlags(prop, FL_CLIENT); //Now youre thinking with portals
SetEntProp(prop, Prop_Data, "m_iTeamNum", CS_TEAM_CT); // So it works with filtered triggers
SDKHook(prop, SDKHook_OnTakeDamage, OnPropTakeDamage); SDKHook(prop, SDKHook_OnTakeDamage, OnPropTakeDamage);
g_aSpawnedProps.Push(prop); g_aSpawnedProps.Push(prop);
} }