As first mentioned here,
https://forums.alliedmods.net/showth...38#post1490138
A bug has been discovered where some of the hook callbacks that are in the form of (ent, otherEnt) can get bad data in otherEnt if otherEnt would otherwise be -1. The value could have been something wildly out of the valid edict or entity ranges.
The most common occurrence of this seems to be with the WeaponDrop hook. When the game calls this, the weapon can be NULL (for example, if the player isn't currently holding a weapon).
There was also similar that could happen with TraceAttack or OnTakeDamage, where an ent would have a value of 4095 instead of -1.
There are fixed builds available now that resolve the above, but I'm not quite ready to do another release yet. Some other refactoring was done that isn't completely tested yet (though I don't expect issues), and there are a couple more hooktypes for possible addition that I still want to evaluate.
I recommend running if you know that you are having trouble related to one of the aforementioned issues.
hg119 and newer have the fixes.
Windows builds are not yet available but hopefully will be soon.
http://users.alliedmods.net/~psychonic/builds/sdkhooks/2.0/
As before, source is available at
http://hg.nicholashastings.com/sdkhooks
The 'hg' numbers in the filenames will match the revision number in the hosted copy of the repository.