now the event couch can go through portals
This commit is contained in:
@@ -547,6 +547,7 @@ void prop_any_create(int client)
|
|||||||
// Hook the prop so we can detect when it gets shot/damaged, and track it so we can unhook later
|
// Hook the prop so we can detect when it gets shot/damaged, and track it so we can unhook later
|
||||||
if (g_cvNotifyShot.BoolValue)
|
if (g_cvNotifyShot.BoolValue)
|
||||||
{
|
{
|
||||||
|
SetEntityFlags(prop, FL_CLIENT); //Now youre thinking with portals
|
||||||
SDKHook(prop, SDKHook_OnTakeDamage, OnPropTakeDamage);
|
SDKHook(prop, SDKHook_OnTakeDamage, OnPropTakeDamage);
|
||||||
g_aSpawnedProps.Push(prop);
|
g_aSpawnedProps.Push(prop);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user