-
-
Notifications
You must be signed in to change notification settings - Fork 464
Closed
Description
Per updating my SM install from 1.10 to 1.11 recently, the value of originalResult changed from true to false, as of my plugin usage:
SDKHook(client, SDKHook_ShouldCollide, Hook_ShouldCollide);
// .......
public bool:Hook_ShouldCollide(entity, collisiongroup, contentsmask, bool:originalResult)
{
return (isKillProtected[entity] && bNoBlock) ? false : originalResult;
}
What the value of originalResult depends on? Is it possible that something is wrong from SM?
I had noted improper collisions were being filtered out instead of succeeding after upgrading, breaking my server (players passing through bullets and other players). And for now I replaced originalResult with true. I was assumming the value of it was the one from the game function, but I see that doesn't make sense on a non-post hook, right?
This is the only plugin that hooks ShouldCollide in my server.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels