View Single Post
Author Message
Mero Furuya
New Member
Join Date: Sep 2019
Old 09-02-2019 , 19:49   SDK Hooks Disabled for Game?(Battlegrounds 3)
Reply With Quote #1

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(clientSDKHook_OnTakeDamageOnTakeDamage);
    
SDKHook(clientSDKHook_ThinkThink);


public 
void Think(int entity)
{
    
PrintToChatAll("Think test");
}

public 
Action OnTakeDamage(int victimint &attackerint &inflictorfloat &damageint &damagetype)
{
    
PrintToChatAll("damage test");
    
damage 0.0;
    return 
Plugin_Changed;

Mero Furuya is offline