PHP Code:
public OnEntityCreated(entity, const String:classname[])
{
if (StrEqual(classname,"tf_projectile_pipe_remote", false))
{
SDKHook(entity, SDKHook_PreThink, OnPreThinkPost);
}
}
Code:
L 08/23/2014 - 04:35:14: [SM] Native "SDKHook" reported: Hook type not valid for this type of entity (165/tf_projectile_pipe_remote)
L 08/23/2014 - 04:35:14: [SM] Displaying call stack trace for plugin "sticky.smx":
L 08/23/2014 - 04:35:14: [SM] [0] Line 291, C:\frog\tf\addons\sourcemod\scripting\sticky.sp::OnEntityCreated()
L 08/23/2014 - 04:36:39: [SM] Native "SDKHook" reported: Hook type not valid for this type of entity (42/tf_projectile_pipe_remote)
L 08/23/2014 - 04:36:39: [SM] Displaying call stack trace for plugin "sticky.smx":
L 08/23/2014 - 04:36:39: [SM] [0] Line 291, C:\frog\tf\addons\sourcemod\scripting\sticky.sp::OnEntityCreated()
What are my alternatives to hooking stickies for every frame?
Or would I just have to settle for a 0.1 timer?
...
For every sticky?
While we're at it, what's the difference between
SDKHook_PreThink,
SDKHook_PostThink,
SDKHook_Think,
SDKHook_PreThinkPost,
SDKHook_PostThinkPost,
SDKHook_ThinkPost,
Edit: While testing all of these different "Think" hooks I must've missed SDKHook_Think. Trying it again, and it works fine for my stickies.
But my question still stands.
__________________