Skip to content

ShouldCollide originalResult different with SM 1.11 #1650

@Adrianilloo

Description

@Adrianilloo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions