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

Do SDKHook_ShouldCollide work properly?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 08-17-2016 , 19:00   Do SDKHook_ShouldCollide work properly?
Reply With Quote #1

I have simple code:
PHP Code:
public void OnClientPutInServer(int client)
{
    
SDKHook(clientSDKHook_ShouldCollideOnShouldCollide);
}

public 
bool OnShouldCollide(int clientint collisiongroupint contentsmaskbool originalResult)
{
    return 
originalResult;

But player don't collide with all. originalResult is always false. If i off plugin i will collide with other players.
Kailo is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-17-2016 , 19:17   Re: Do SDKHook_ShouldCollide work properly?
Reply With Quote #2

You're not running an old version sourcemod are you?
__________________
Neuro Toxin is offline
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 08-18-2016 , 05:54   Re: Do SDKHook_ShouldCollide work properly?
Reply With Quote #3

I use SM 1.8.0.5925. CS:GO.
Kailo is offline
Reply



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 21:16.


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