Raised This Month: $12 Target: $400
 3% 

SDK Hooks Disabled for Game?(Battlegrounds 3)


Post New Thread Reply   
 
Thread Tools Display Modes
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
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 09-03-2019 , 13:37   Re: SDK Hooks Disabled for Game?(Battlegrounds 3)
Reply With Quote #2

try different type of *Think* hooks.
https://sm.alliedmods.net/new-api/sdkhooks/SDKHookType
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-07-2019 , 06:27   Re: SDK Hooks Disabled for Game?(Battlegrounds 3)
Reply With Quote #3

SM doesn't have gamedata for your game so you only have basic functionality, support needs to be added first.

They are only distributing a windows release without symbols, so there isn't much interest in doing the work to support it currently.
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode