AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Players collision (https://forums.alliedmods.net/showthread.php?t=335528)

joseph9 12-11-2021 11:42

Players collision
 
Hello everyone, when..
PHP Code:

set_pev(idpev_solidSOLID_NOT

..I can't attack players. Is there a way to achieve that? I would like players to be non-solid and be able to attack.

DarthMan 12-11-2021 12:57

Re: Players collision
 
Quote:

Originally Posted by joseph9 (Post 2765633)
Hello everyone, when..
PHP Code:

set_pev(idpev_solidSOLID_NOT

..I can't attack players. Is there a way to achieve that? I would like players to be non-solid and be able to attack.

It is definitely possible, however, not with AMXX. You would need to hook PM_Move (can be done with orpheu as well), however, I don't think that the module is enough powerful to be able to change the structure members. The only way I can think of to achieve your goal is by making a metamod plugin (c++ and hlsdk knowledge required). You'll also need to set the entity state solid to 0 in pfnAddToFullPack (this can also be achieved with an AMXX plugin) if the entity is a valid player.

joseph9 12-11-2021 13:07

Re: Players collision
 
Alright, so it's pretty much impossible for me to do it. Thank you for the answer!

DarthMan 12-11-2021 13:40

Re: Players collision
 
Quote:

Originally Posted by joseph9 (Post 2765642)
Alright, so it's pretty much impossible for me to do it. Thank you for the answer!

Yeah, with AMXX this is unfortunately not possible, as u actually want to prevent the collision which is done in PM_Move .

fysiks 12-11-2021 15:25

Re: Players collision
 
Isn't that what "semi-clip" does?

DarthMan 12-12-2021 04:45

Re: Players collision
 
Quote:

Originally Posted by fysiks (Post 2765687)
Isn't that what "semi-clip" does?

Well, if we speak about metamod plugins, then yeah, there are some semiclip modules out there. But the AMXX semiclip plugins simply set the player solidity to SOLID_NOT. And most of the semiclip meta plugins will likely only work with CS 1.6 and CZero. SemiclipEX is what I use on my servers, as it'[s fully customizable, but it doesn't work with ReHLDS, unfortunately, so I had someone compile me a version using the rehlds sdk.

joseph9 12-12-2021 05:44

Re: Players collision
 
SemiClip just apply SOLID_NOT and when players are in that state you can't attack them, they are simply untouchable. That's why there's a timer that disable it. What I wanted to achieve is that players (with spawn in the same area) do not collide and are able to attack each other right away.

Natsheh 12-12-2021 13:58

Re: Players collision
 
Quote:

Originally Posted by joseph9 (Post 2765764)
SemiClip just apply SOLID_NOT and when players are in that state you can't attack them, they are simply untouchable. That's why there's a timer that disable it. What I wanted to achieve is that players (with spawn in the same area) do not collide and are able to attack each other right away.

https://forums.alliedmods.net/showthread.php?t=137980

Here is a semclip "AMXMODX PLUGIN" check how he's achieving it, this all info you need.

joseph9 12-15-2021 05:21

Re: Players collision
 
Quote:

Originally Posted by Natsheh (Post 2765818)
https://forums.alliedmods.net/showthread.php?t=137980

Here is a semclip "AMXMODX PLUGIN" check how he's achieving it, this all info you need.

Damn I didn't see that coming. This one is working like a charm, thanks mate! I also was looking at it earlier but didn't notice :oops:


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

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