View Single Post
Author Message
BotoX
Junior Member
Join Date: Sep 2015
Old 02-23-2020 , 13:18   [CS:S/CS:GO] PhysHooks
Reply With Quote #1

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
Attached Files
File Type: zip cstrike-linux.zip (178.7 KB, 491 views)
File Type: zip csgo-linux.zip (183.3 KB, 738 views)
File Type: zip csgo-windows.zip (95.3 KB, 602 views)
File Type: zip sm-ext-PhysHooks-master.zip (18.8 KB, 676 views)

Last edited by BotoX; 02-26-2020 at 05:08.
BotoX is offline