An extension with a bunch of qphysics related hooks which are needed for the
LagCompensation plugin.
It also makes the engine simulate all players before entities.
It also simulates players in random order, to make map triggers (OnStartTouch) on a group of people randomized.
Include:
PHP Code:
forward void OnRunThinkFunctions(bool simulating);
forward void OnPrePlayerThinkFunctions();
forward void OnPostPlayerThinkFunctions();
forward void OnRunThinkFunctionsPost(bool simulating);
// Block TriggerMoved from being called at all for an entity by setting the bit to 1.
native void BlockTriggerMoved(int map[2048 / 32], bool set);
// Block triggers TriggerMoved from touching any client by setting the bit to 1 for the entity index.
native void BlockTriggerTouchPlayers(int map[2048 / 32], bool set);
// Block SolidMoved from being called at all for an entity by setting the bit to 1.
native void BlockSolidMoved(int map[2048 / 32], bool set);
// Block solids SolidMoved from touching any client by setting the bit to 1 for the entity index.
native void BlockSolidTouchPlayers(int map[2048 / 32], bool set);
// Block clients SolidMoved from touching an entity by setting the bit to 1 in the clients map.
native void FilterClientSolidTouch(int map[((MAXPLAYERS + 1) * 2048) / 32], bool set);
Included is source code and builds for CSS Linux and CSGO Linux/Windows.
Git repository:
https://git.botox.bz/CSSZombieEscape/sm-ext-PhysHooks
CS:GO Windows source code and builds
have been released publicly after I've received donations in total of 200€.
Supporting Windows requires a lot more effort, debugging it even more. It's also really stupid to run a Windows server when Linux causes a lot less trouble.
https://paypal.me/BotoXbz
50€ - Net4All.ru
20€ - JAZE
60€ - GFLClan.com
65€ - Kxnrl