AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [CS:S/CS:GO] PhysHooks (https://forums.alliedmods.net/showthread.php?t=321682)

BotoX 02-23-2020 13:18

[CS:S/CS:GO] PhysHooks
 
4 Attachment(s)
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

lamheocbvn 02-23-2020 15:49

Re: [CS:S/CS:GO] PhysHooks
 
Which SM version for that PhysHooks?
I have problem with this
Quote:

<FAILED> file "PhysHooks.ext.2.css.so": Could not find interface: IPlayerManager

BotoX 02-23-2020 18:04

Re: [CS:S/CS:GO] PhysHooks
 
Quote:

Originally Posted by lamheocbvn (Post 2684831)
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.

Smesh 03-02-2020 08:43

Re: [CS:S/CS:GO] PhysHooks
 
cstrike-windows build, please

BotoX 03-03-2020 09:25

Re: [CS:S/CS:GO] PhysHooks
 
Quote:

Originally Posted by Smesh (Post 2685585)
cstrike-windows build, please

cstrike Windows is not supported. Use Linux.

KyleS 03-03-2020 12:29

Re: [CS:S/CS:GO] PhysHooks
 
Quote:

Originally Posted by BotoX (Post 2685696)
cstrike Windows is not supported. Use Linux.

A true man of the people... :bee:

Looks neat - nice job.

zombiekiller99 05-09-2021 12:03

Re: [CS:S/CS:GO] PhysHooks
 
LagCompensation.smx (LagCompensation): Required extension "PhysHooks" file("PhysHooks.ext") not running.

you gave the extension Physhooks.ext2
but I need the first ext

FroGeX 05-09-2021 23:39

Re: [CS:S/CS:GO] PhysHooks
 
some examples of use?

Elban 09-13-2021 17:55

Re: [CS:S/CS:GO] PhysHooks
 
[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"
}

mintique 10-10-2021 13:48

Re: [CS:S/CS:GO] PhysHooks
 
Quote:

Originally Posted by Elban (Post 2757708)
[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 - 02:33:58: [PhysHooks] Invalid detour address passed - Disabling detour to prevent crashes
L 10/11/2021 - 02:33:58: [SM] Unable to load extension "PhysHooks.ext": Could not create detour for Physics_RunThinkFunctions

any solution?


All times are GMT -4. The time now is 20:23.

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