PDA

View Full Version : dod_avalanche Nade Exploit fix


dodsynthetic
07-21-2008, 10:50 AM
Syn's Avalanche Nade Exploit Fix v1.7

This plugin prevents players from jamming nades in various places on dod_avalanche that generate an abnormal damage radius.

===========================
v1.7 Changes
===========================
- Spawn block is no longer an entity. There was no point in it being one any longer.

===========================
v1.6 Changes
===========================
- Method used to block exploits is completely changed. Even though the last version was greatly
improved speed wise, I wasn't satisfied and now there is only one entity used for the Allied spawn
block. The new nade blocking is done by detecting if nades are in the location of the exploit area
and deflected in the opposite direction if they are. All in all, it is much faster and able to
provide a higher quality of blocking.

===========================
v1.5 Changes
===========================
- Changed couch model to stock model. It would cause a server to crash without the original. Thanks Diamond-Optic for letting me know.

===========================
v1.4 Changes
===========================
- Dramatically reduced CPU usage by using fewer small blocking entities in favor of larger ones covering more area.

===========================
v1.3 Changes
===========================
- Fixed ramp up to Axis arch. Thanks Tank. XD

===========================
v1.2 Changes
===========================
- Adjusted the following bouncy/sticky/nade leak spots: Stairs up to the red room, doorway leading to lower Axis apartments, stairs going up to blue room, the W crack ramp and surrounding area, path to Allied 2nd from Allied apartments, stairs all the way up to top of spiral, broken ledge from stairs to door at top of spiral, the broken ledge on the 2nd floor behind door to spiral and the crack that wipes out axis spawn. Thanks Tank and Diamond-Optic for poiting out problem spots.

- Left in some functionality for tweaking/creating block spots. See notes for more information.

===========================
v1.1 Changes
===========================
- Tweaked some blocking entities because you could still sneak nades past them. Thanks Diamond-Optic for letting me know. XD

- Added 11 new exploit locations. Thanks again Diamond-Optic for the demo that showed some I didn't know about.

- Added optional blocking so Axis cannot enter Allied spawn from the penquin room via the invisible ledge.

- As much as I like seeing random bunnies throughout the map, the blocking entity models are now invisible so as to not teach players where these spots are and abuse them on servers not running the plugin. Yet again, thanks Diamond-Optic for that line of code I previously didn't know about for making models truly invisible.

===========================
Features
===========================
- Prevents all players from abusing nade exploits on dod_avalanche.

- Optional Axis blocking into Allied spawn from the penguin room.

- Blocks a total of 30 nade exploit locations.

===========================
Notes
===========================
- Did I miss an exploit? Let me know and I will gladly add it!

===========================
CVARS
===========================
ava_nade_fix | 0 = off | 1 = on
- Enables or disables the nade block protection. Requires restart to take effect. Default on.

ava_spawn_block | 0 = off | 1 = on
- Blocks Axis entry into Allied spawn by using invisible ledge in the penguin room. Default on.

===========================
Installation
===========================
- Compile the .sma file | An online compiler can be found here:
http:www.amxmodx.org/webcompiler.cgi
- Copy the compiled .amxx file into your addons\amxmodx\plugins folder
- Add the name of the compiled .amxx to the bottom of your addons\amxmodx\configs\plugins.ini
- Change the map or restart your server to start using the plugin!

diamond-optic
07-21-2008, 12:20 PM
i wonder if it would be better to set the rendermode of the models to 0 so they are invisible and dont show players where nade exploits are for servers not running this..

also how many are blocked? i have a couple demos that someone sent me a few years ago of a ton of diff nade exploits & explanations of where they kill ppl (cant remember who sent it tho) that i could pass onto you if youd like *EDIT* ok nm it looks like you have quite the number of them blocked lol

also, would this method work to stop the rocket glitches thru the floor in the apt (when shooting into the window at the 1st flag) ..like a year ago i messed with it but never had time or the desire to work on it more.. I was basically going to take one of the rug models from the gcf (because they are large and flat and could go in/on the floor perfectly and see if they would block the damage thru the floor

dodsynthetic
07-21-2008, 12:26 PM
I have 19 exploits blocked so far. I did think about setting the render amount to zero but I used that in a custom booster plugin I made for BAM and you can still see a ghostly figure on zero. I also tried to do this without setting a model but got nothing but crashes as soon as the model appeared in your FOV. I'm definitely open to any exploit locations I may have missed. As for the rockets, I believe this would work with something flat like a carpet model, even a custom large flat model since they will hit the model instead of the roof. I might have to test that out. :D

Zor
07-21-2008, 05:24 PM
I would say we should add this into the dod_blockexploits and have it on a map by map basis. That way we could search them out and kill the exploits.

blobby
07-22-2008, 11:28 PM
I would say we should add this into the dod_blockexploits and have it on a map by map basis. That way we could search them out and kill the exploits.

And i would say thats good thinking and also nice work on your plugin here mate

dodsynthetic
07-23-2008, 06:47 AM
Feel free to add it/ use it how you want. XD I'm just about finished adding those new spots and a few more I found along with adjustments to previously plugged ones.

subliminal
07-27-2008, 06:20 AM
i know of about 30 exploits on avalanche. so i think u have missed quite a lot, nice plugin though !

Tank
07-27-2008, 08:15 AM
Well, I would say don't hold back on getting either Syn or me a demo with those nade glitches so we can add those coordinates.

dodsynthetic
07-27-2008, 10:32 AM
I'm almost done with the new version and it will have exactly 30 exploits covered XD As it stands, there are only 4 left to cover but I've been doing some testing on other cracks/spots to see if they are exploitable as well. On top of all that, I'm going to put a block in so Axis can't get into the Allied apartments via that invisible ledge from the penguin room.

Tank
07-27-2008, 12:18 PM
Would that block be cvar handled? As I think it's good that axis also can get into allied base.

dodsynthetic
07-27-2008, 06:12 PM
Yeah, it would be set by a cvar.

Tank
08-15-2008, 12:05 PM
Ok, I'll be honest and this is kinda lazy of me...I haven't tried the latest version out yet. But I have been testing your first one, where all the models were still visible.

Uhm, normally as people would ask this, I would just say, upload it and see for yourself but I will upload this in a day or so...I really don't feel like doing it right now, need a small break.

To the point tanky, is this the models with the vern (the big ass plant) and the bunny but then invisible? Cause if so, then we have a slight problem. At Axis first, you can jump on top of the vern and jump right into axis spawn. Idk if that is the case with the latest version?

Also, and please don't think im battering your plugin to the ground, by sticking in the vern at axis first, you also lose a nice camping spot. Im thinking real fast but I think the axis first nade exploit should contain a small model then the vern+bunny.

diamond-optic
08-23-2008, 11:48 PM
the spot at the bottom of the red room stairs (the little crack in the side of that hole thats in the wall) sticks out a bit and when coming down the stairs a lot of the time i hit it and it ruins my flow going thru the hole lol..

think maybe you could make it a little smaller, so it doesnt stick out from the wall so much?

*edit*

also in the w crack.. if you stand infront of the opening looking out over the middle.. and you back up into the corner, you bounce up and down lol.. the stuff under the w crack must be poking thru a bit.. everyone is always wondering why they start shaking in the w crack lol

*edit #2*

with the ramp going to the w crack.. im still able to easily get nades to go in there (like bouncing them off the slanted rock that goes up to the floor.. they go right in past/under the blockers)

*edit #3 lol*

also in the spiral stairway room.. the same problem with the w crack exists by that tiny broken wall (that you go by when going from the stairs to the doorway that leads to the w crack)

and also on the 2nd level, next to the stairs (if you walk against them) you get stuck

and another thing with the hole in the wall below the red room, ive been getting stuck coming thru the hole too (as well as while coming down the stairs)

dodsynthetic
08-25-2008, 12:22 AM
Thanks for the info Diamond. XD I'll make the necessary tweaks.

Dr.G
10-26-2008, 10:29 PM
Did the idea about putting this code into dod_blockexploits die? Or is it a part of dod_blockexploits now?

diamond-optic
10-27-2008, 01:09 AM
im probably not gonna add it..

no need to have that much extra code in it for just one map, i think its easier to just run this plugin in the map-specific plugin ini file

plus i dont think synthetic has updated this to fix the problems yet

Tank
10-27-2008, 08:48 AM
Synthetic has been screwed over by his ISP. Has been offline for almost a month or perhaps 2. That is mainly the reason he hadn't had the chance to support anything atm.

dodsynthetic
11-04-2008, 07:16 PM
Haha, sorry for the delay, I'm working on this now. Apart from a horrible ISP and being busy with other things, I haven't touched it since. If anyone else knows of more sticky or buggy spots, please post. I'd like to hammer them all out in this next release.

h0_noMan
11-04-2008, 10:21 PM
Thanks for the update.

I know another bug/exploit.

When you shot at the top of the room just uppon the first allied flag, you can killed in the room just upside.

I think you can fix this by making a second ceiling (distanced from the original one to prevent the propagation)

Sorry for my english.

dodsynthetic
11-05-2008, 05:09 AM
Ahh, yeah Diamond was playing around with the exact same idea of "second ceilings" to prevent the rocket blast through the floor syndrome. I'll see what I can come up with.

dodsynthetic
11-07-2008, 03:02 PM
New version up. I hope I got everything this time. XD

Dr.G
11-07-2008, 07:02 PM
Nice! Ill check it out right away!

Tank
11-20-2008, 01:31 PM
I already informed you on this one, but I'll post here in case you forget and want to work on it one day.

Second level of the church, the ramp towards the Axis arch, has a model sticking out making people "sticky icky".

For the rest, no complains so far and a job well done.

Ps: Off-topic, I love this one....Just the fact when someone accuses a player out of the blue for nade glitching that I can say: Nope, you can't nadeglitch, try it...and a few seconds later you see a suicide nade death :D.

diamond-optic
11-20-2008, 05:17 PM
Second level of the church, the ramp towards the Axis arch, has a model sticking out making people "sticky icky".

heheh yeah i was just gonna post about this one

Tank
11-20-2008, 08:32 PM
Diamond, I think this especially goes for you. I was testing the abilities of BSP edit and made a wall blow up. The idea originially came from your server....

Ok, before I completely go offtopic, I dont know if you made the entrence of penguin room (the room containing the invisible ledge) func_breakable and you blow the wall up, you will get stuck by the floating cloaked bunny :D

Idk if you made it blowable (that sounded bad) but might want to check it out.

diamond-optic
11-20-2008, 10:14 PM
yeah i know what youre talking about.. i havent really done anything about it yet tho, not really too concerned with my server all that much lol

dodsynthetic
11-21-2008, 05:33 AM
Another update. Ramp to axis arch is now usable without having to step in that messy rabbit poo. XD

Tank
11-21-2008, 03:05 PM
Syn knows what I'm talking about.

I've been going through all the plugins, enabling one by one an to check the cpu usage on each and everyone of them.

I noticed when I enabled the dod_avalanche_nade_exploit_fix :D it goes up to 50%. Could it be that something for testing purpose is still in this version?

dodsynthetic
11-21-2008, 08:22 PM
It's all disabled. You shouldn't see any models or the box outlines over the blocking entities. I think it's the fact that it adds a large number of extra entities that is causing the drain on the CPU. I will look into reducing the number of entities but the problem I was having is the bounding box will block players at any point and with nades it's only a small region about half of the bb size. Ideally, one or two blocking entities would be perfect for each spot but not sure if it will work very well.

dodsynthetic
11-22-2008, 03:31 AM
Another update! I didn't like the idea of leaving a resource eating beast out there so I got started on coming up with a way to reduce the amount of entities or use a different method. I messed around with some ideas and finally figured out an interesting thing when it comes to collisions. After testing with large bounding boxes and checking entity touch, I found out that collisions will happen differently dependent on move type. For players, they collide with the bounding box. For something like a grenade which has a different move type, it doesn't collide with the bounding box but a separate box that fits around the model and will only be as big as your bounding box if smaller than the model or the model size it's self if the bounding box is bigger. I wish I had figured this out before. :D Anyway, on my home server, CPU usage dropped from and average 90% to about 0-2%.

Tank
11-22-2008, 01:37 PM
Really awesome stuff Syn. I'll try this one out later tonight (if im still somewhat sober) and otherwise tomorrow. Although I didn't understand much about your post and the changes you made but I'll keep you updated.

diamond-optic
11-23-2008, 11:35 PM
my server wont start up with this version now...

dodsynthetic
11-24-2008, 12:32 AM
Uh oh lol. I would bet that it is because I used what I thought was a stock couch model and a server would crash if the model doesn't exist. I'm going to open my GCF and double check. If this is the case, I'll switch to a similar model that is stock as I'd rather not have players download a model.

dodsynthetic
11-24-2008, 12:42 AM
That's exactly what it was. XD New version is up.

dodsynthetic
12-04-2008, 04:15 AM
New version is available. I noticed that on my private home server the last update made cpu go to nothing but upon recently checking on my pub server, it still had a 20% base average with just me in the server. This is not cool so I have changed the whole way it blocks nades. I dropped all blocking entities in favor of just detecting if a nade was in range of an exploit area and if so, they are deflected in the opposite direction. There is only one blocking entity left and it is for blocking Axis getting into Allied spawn from the Penguin room. This change dropped my pub server cpu usage down to 0-2% where it should be. XD

Tank
12-04-2008, 08:47 AM
Syn, in all honesty I discovered this a while ago on both my test server as main server. I didn't tell you as you have been so busy with the nade glitch fix on ava, so I was still thinking about leaving it out or putting it back in.

I'm glad you fixed it though, I was waiting for that :D

dodsynthetic
12-08-2008, 06:36 AM
Minor update to the spawn block. It's now uses the faster method as the nade exploits but instead of deflecting a nade, it deflects Axis players.

|OnEHiTwOnDeR|SoCal
01-01-2009, 08:57 PM
still has glitches. my main admin found a few more, ill get back to u on which it is but one that still is in tact is the spiral bottom.

dodsynthetic
01-04-2009, 06:16 PM
Ahh, I might have accidentally removed them or didn't have them deflect in the right direction. Let me know of any others and I'll be putting the fixes in the new universal map exploit fix plugin which should hopefully done soon.

|OnEHiTwOnDeR|SoCal
01-18-2009, 07:05 AM
well the one under the W crack still glitches all in spiral and i donno if ANYONE knows of this glitch: the LEFT SIDE of the OUTSIDE OF THE W CRACK. lol anyone?

Dr.G
01-18-2009, 08:14 AM
well the one under the W crack still glitches all in spiral and i donno if ANYONE knows of this glitch: the LEFT SIDE of the OUTSIDE OF THE W CRACK. lol anyone?

Screenshots might help :)

Tank
01-18-2009, 02:22 PM
Stan, this the one you meant?

I found another issue with this plugin, the following picture shows a spot in the table room, however where the red square is placed that model is sticking it out, when you throw a nade from the point I took my screenshot into that room with the chairs, it will bounce back. Many people have been killed by their own nade because of it.

PS: sorry bout the huge fing pics but don't have time to resize them, got quite some work waiting on me. Also sorry for sharing this info out in the public, once Syn responds I'll edit this page.

dodsynthetic
01-21-2009, 03:34 PM
I should be able to work on this in the next few days, possibly tonight. Between work and learning assembly I haven't had allot of free time. XD

Dr.G
01-21-2009, 04:25 PM
I got one more:



If u use windows XP there is a very handy tool "Image Resizer" u can find it here http://www.microsoft.com/windowsxp/Downloads/powertoys/Xppowertoys.mspx

look on your right side and scroll down...

after install just select the picture and right click on it an u have an option called "Resize Pictures"

Tank
01-21-2009, 11:23 PM
Yeah Windows Power Tools, however the moment I use that one my menu speed goes down, even I increase menu speed in either tweak ui or registry i need a new pc

|OnEHiTwOnDeR|SoCal
01-22-2009, 03:14 PM
no ozzy...this one which prolly NOONE IS AWARE OFF


http://img124.imageshack.us/img124/3286/86203554ua4.png (http://imageshack.us)
http://img124.imageshack.us/img124/86203554ua4.png/1/w641.png (http://g.imageshack.us/img124/86203554ua4.png/1/)

Tank
01-22-2009, 08:46 PM
I wasn't aware of that one, however carefull with using a too big of a model in there. I like that spot to get on top of there. That side where the arrow is at is the easiest spot to go onto

dodsynthetic
01-23-2009, 10:08 PM
Interesting, I didn't know about that roof one. I'll be sure to add it in. I did find the problem with the last ava plug though and why it's so jacked up. One of my array's size wasn't fully declared and it shifted values to locations they shouldn't have been at. Probably because I missed some previous location entries. Regardless, I think it's time to retire AMXX-Studio for not catching my fail and use the new PawnStudio. As for an update to the new nade exploit plugin, it's almost there. Just working some minor things out and adding in the final functionality right now. It's completely universal for any map and saves easy to read definition files by map name. It also has an easy to use real time editor so you can create or customize your own nade and player blocks. The ava and purple nade fix plugins will be tossed down the porcelain throne in favor of this new one.

Oh Tank, I removed entity based blocks because of the horrible CPU eatery with a previous version so it no longer blocked players but it's block location data arrays are jacked up so better just to wait for this new hotness. XD

dodsynthetic
01-29-2009, 05:48 PM
This plugin has now evolved into a universal nade exploit plugin which you can find here --> http://www.dodplugins.net/forums/showthread.php?t=1519