Raised This Month: $51 Target: $400
 12% 

Players collision


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 12-11-2021 , 11:42   Players collision
Reply With Quote #1

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.
joseph9 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-11-2021 , 12:57   Re: Players collision
Reply With Quote #2

Quote:
Originally Posted by joseph9 View Post
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.
DarthMan is offline
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 12-11-2021 , 13:07   Re: Players collision
Reply With Quote #3

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

Last edited by joseph9; 12-11-2021 at 13:07.
joseph9 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-11-2021 , 13:40   Re: Players collision
Reply With Quote #4

Quote:
Originally Posted by joseph9 View Post
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 .
DarthMan is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-11-2021 , 15:25   Re: Players collision
Reply With Quote #5

Isn't that what "semi-clip" does?
__________________
fysiks is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-12-2021 , 04:45   Re: Players collision
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
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.
DarthMan is offline
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 12-12-2021 , 05:44   Re: Players collision
Reply With Quote #7

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.
joseph9 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-12-2021 , 13:58   Re: Players collision
Reply With Quote #8

Quote:
Originally Posted by joseph9 View Post
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.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
joseph9
Junior Member
Join Date: Nov 2016
Location: Poland
Old 12-15-2021 , 05:21   Re: Players collision
Reply With Quote #9

Quote:
Originally Posted by Natsheh View Post
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
joseph9 is offline
Reply



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 11:13.


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