Raised This Month: $32 Target: $400
 8% 

[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, 486 views)
File Type: zip csgo-linux.zip (183.3 KB, 736 views)
File Type: zip csgo-windows.zip (95.3 KB, 601 views)
File Type: zip sm-ext-PhysHooks-master.zip (18.8 KB, 675 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
Member
Join Date: May 2012
Location: Latvia, Riga
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
Elban
New Member
Join Date: Jan 2021
Location: Germany
Old 09-13-2021 , 17:55   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #9

[21] <FAILED> file "PhysHooks.ext.2.csgo.dll": Could not find patch signature for symbol: Physics_RunThinkFunctions

using this on Windows Server 2019 with following gamedata entry for "Physics_RunThinkFunctions"

"Physics_RunThinkFunctions"
{
"library" "server"
"linux" "\x55\x89\xE5\x57\x56\x53\x83\xEC\x4C\xA1\x2A \x2A\x2A\x2A\x0F\xB6\x5D\x08"
"windows" "\x55\x8B\xEC\x83\xEC\x0C\x53\x56\x8B\x35\x2A \x2A\x2A\x2A\x8A\xD9"
}
Elban is offline
mintique
Junior Member
Join Date: Mar 2019
Old 10-10-2021 , 13:48   Re: [CS:S/CS:GO] PhysHooks
Reply With Quote #10

Quote:
Originally Posted by Elban View Post
[21] <FAILED> file "PhysHooks.ext.2.csgo.dll": Could not find patch signature for symbol: Physics_RunThinkFunctions

using this on Windows Server 2019 with following gamedata entry for "Physics_RunThinkFunctions"

"Physics_RunThinkFunctions"
{
"library" "server"
"linux" "\x55\x89\xE5\x57\x56\x53\x83\xEC\x4C\xA1\x2A \x2A\x2A\x2A\x0F\xB6\x5D\x08"
"windows" "\x55\x8B\xEC\x83\xEC\x0C\x53\x56\x8B\x35\x2A \x2A\x2A\x2A\x8A\xD9"
}
I tried it, but i got this error:

L 10/11/2021 - 023:58: [PhysHooks] Invalid detour address passed - Disabling detour to prevent crashes
L 10/11/2021 - 023:58: [SM] Unable to load extension "PhysHooks.ext": Could not create detour for Physics_RunThinkFunctions

any solution?
mintique 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 06:28.


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