Raised This Month: $ Target: $400
 0% 

[HELP] Detect Walls In A Radius


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hellmonja
Senior Member
Join Date: Oct 2015
Old 12-28-2019 , 14:44   [HELP] Detect Walls In A Radius
Reply With Quote #1

Okay, this is something I've been trying to do for a long time and still don't even know where to begin. I've been trying to fix Arkshine's Prone Position plugin, where the player's vision can go outside the walls if you crawl up to one and potentially do wallhacks. I think it has something to do with using "usehull" though I'm not sure.

The idea I have is simple: While on prone, the plugin will detect if any walls are nearby within a radius, record which direction the wall/s are from and push the player back away from it. Right, I don't know where to even begin.

I was studying TraceHull but it doesn't seem to have a radius that you could set. The prone plugin seems to make player clipping much smaller so it has to detect the wall a bit of distance away from the player.

Another idea I had is to just detect if the player was outside the map and would just fade his screen black until said player comes back inside, as posted here (https://forums.alliedmods.net/showthread.php?t=185682). But again, it doesn't work. Probably because burying your head in walls while in prone doesn't count as being outside since the clipping becomes small...
__________________
hellmonja is offline
 



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 02:41.


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