now the event couch can go through portals

This commit is contained in:
jenz
2026-09-04 18:12:42 +02:00
parent e3e70fcb12
commit ef4bc91712
+1
View File
@@ -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);
} }