PropSpawner: Set prop team to CT for it to work with filtered triggers
This commit is contained in:
@@ -723,6 +723,7 @@ void prop_any_create(int client)
|
||||
if (g_cvNotifyShot.BoolValue)
|
||||
{
|
||||
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);
|
||||
g_aSpawnedProps.Push(prop);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user