I'm trying to use SDK Hooks with Battlegrounds 3. However, I tried the Think hook and damage hook with no luck. The print messages aren't being shown. I can see that OnClientPutInServer is being called though. Is there a way to check if the SDKHook is actually being set? Or could SDK hooks just be disabled for this game?
This is my SDK Tools version:
"SDK Tools" (1.9.0.6281) by AlliedModders LLC: Source SDK Tools
PHP Code:
#include <sourcemod>
#include <sdkhooks>
public Plugin:myinfo = {
name = "Friendy Fire",
author = "Slick",
description = "Allows officers to kill teammates",
url = ""
};
public OnClientPutInServer(client)
{
PrintToChatAll("put in server");
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
SDKHook(client, SDKHook_Think, Think);
}
public void Think(int entity)
{
PrintToChatAll("Think test");
}
public Action OnTakeDamage(int victim, int &attacker, int &inflictor, float &damage, int &damagetype)
{
PrintToChatAll("damage test");
damage = 0.0;
return Plugin_Changed;
}