That's interesting hook, but it doesn't gives enough information about with which exactly entity we colliding.
PHP Code:
//entity - hooked entity
//collisiongroup - with that type of entity we colliding(for ex COLLISION_GROUP_PLAYER)
//contentmask - collide mask of hooked entity? Or colliding entity?
//originalresult - collision result by default collision rules
public bool:ShouldCollide( entity, collisiongroup, contentsmask, bool:originalResult)
{
// modify collision rules return false for not collide, true - for collide
}
We can't get colliding player team because don't know it Entity index.
And I tested this hook and
it doesn't work in ~50%, it's just exploding with allies without calling collide func, but sometimes calling...