Raised This Month: $29 Target: $400
 7% 

[CS:S/CS:GO] PhysHooks


Post New Thread Reply   
 
Thread Tools Display Modes
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, 189 views)
File Type: zip csgo-linux.zip (183.3 KB, 282 views)
File Type: zip csgo-windows.zip (95.3 KB, 240 views)
File Type: zip sm-ext-PhysHooks-master.zip (18.8 KB, 260 views)

Last edited by BotoX; 02-26-2020 at 05:08.
BotoX is offline
lamheocbvn
Junior Member
Join Date: Dec 2014
Old 02-23-2020 , 15:49   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #2

Which SM version for that PhysHooks?
I have problem with this
Quote:
<FAILED> file "PhysHooks.ext.2.css.so": Could not find interface: IPlayerManager
lamheocbvn is offline
BotoX
Junior Member
Join Date: Sep 2015
Old 02-23-2020 , 18:04   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #3

Quote:
Originally Posted by lamheocbvn View Post
Which SM version for that PhysHooks?
I have problem with this
Ooops! I've updated the builds, made the mistake of compiling them with my fork of sourcemod.
BotoX is offline
Smesh
Junior Member
Join Date: May 2012
Old 03-02-2020 , 08:43   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #4

cstrike-windows build, please
Smesh is offline
BotoX
Junior Member
Join Date: Sep 2015
Old 03-03-2020 , 09:25   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #5

Quote:
Originally Posted by Smesh View Post
cstrike-windows build, please
cstrike Windows is not supported. Use Linux.
BotoX is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 03-03-2020 , 12:29   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #6

Quote:
Originally Posted by BotoX View Post
cstrike Windows is not supported. Use Linux.
A true man of the people...

Looks neat - nice job.
KyleS is offline
zombiekiller99
Junior Member
Join Date: Apr 2021
Old 05-09-2021 , 12:03   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #7

LagCompensation.smx (LagCompensation): Required extension "PhysHooks" file("PhysHooks.ext") not running.

you gave the extension Physhooks.ext2
but I need the first ext
zombiekiller99 is offline
FroGeX
Senior Member
Join Date: Aug 2020
Old 05-09-2021 , 23:39   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #8

some examples of use?
FroGeX is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:44.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode