dodsynthetic
01-29-2009, 05:46 PM
Syn's Nade Exploit Fix v1.002
This plugin is a spawn off of my dod_avalanche and dod_purple nade exploit fix plugins. This is
designed to be used with any map. All you need is a defintion file for a particular map. You can
also create your own or modify existing ones with the built in editor. The reason I made a universal
plugin for all maps is simple. Less to deal with. It would be a redunant to have to get different
plugins to cover multiple maps. It also creates less mess on the dodplugins.net forums. XD
Currently comes with the following definitions:
dod_avalanche
dod_purple
===========================
v1.002 Changes
===========================
- Fixed non working player blocks.
===========================
v1.001 Changes
===========================
- Added missing admin flag check for console commands. Allowed anyone to use the editor! o.O
- Per request, added menu to access all console commands via menu.
===========================
Features & Notes
===========================
- Deflects nades from marked exploit locations on maps. Can block Allied, Axis, or all grenades.
- Blocks can be set to deflect players instead of nades on either or both teams as well. This is
good for spawn protection or anywhere you don't want players getting to.
- Built in editor for creating and editing your own custom blocks.
- Supports as many maps as you want.
- Each map definition file supports up to a maximum of 64 blocks.
- Want to have a map fixed? Let me know and I'll create a definition file for it or you can use the
built in editor to make your own!
- Credit goes out to the following people for helping me test, improve the original plugin to this
final refined, unified plugin and provide exploit locations for dod_avalance:
| Tank | Diamond-Optic | OnEHiTwOnDeR | Dr.G |
- Block locations whose vector is 0.0 / 0.0 / 0.0 (X/Y/Z) are ignored. The chances of placing a
block at these coordinates are very slim but just incase I'm mentioning it.
- Unlike my previous dod_avalanche nade exploit fix map, I have not added an Axis player block into
Allied appartments from the penguin room. You can add it if you want.
===========================
Editor Mode
===========================
Because this is a more in depth function of the plugin, it gets it's own section. I've tried to
make it so creating your own block points are as less of a pita as possible.
[> Setting up <]
- First you are going to join sectators and turn on the editor by typing: nade_exploit_edit
into your console. This toggles the editor on and off and anytime the map changes or the server
restarts, it will always default off. Once you have enabled editor mode (console will show a message
to this effect) you can begin placing your blocks.
[> Keys <]
Attack - Place a new or select a highlighted block location for editing.
Attack2 - Cycle's through a selected entity's block modes, nade/allied/axis/all/remove.
Jump - Increment block location size.
Duck - Decrement block location size.
Turn Left - Rotate deflection direction to the left. This is not strafe left.
Turn Right - Rotate deflection direction to the right. This is not strafe right.
Run - Delete block location when editing it.
Use - This will instantly warp you back to the last spot you were editing from so you can check your
blocks quicker after spawing instead of walking all the way back. This location is saved only
temporarily and does not save between map changes.
If you don't know the binds for these keys, here they are in the same order:
+attack
+attack2
+jump
+duck
+turnleft
+turnright
+run
+use
If you don't know what to do and don't know how to bind keys this example will help. Let's say you
want to bind cancel to your I key. You would go into the console and type:
bind i +cancel
So by looking at that you can see first we are using the bind command, then the first argument is
the key you want, I in this case, and the last part is the action command we are binding to the I
key. It's really simple. You can do this with any of your keys and any command.
[> Working with blocks <]
This editor takes a simple approach to editing locations. All you have to do is aim where you want
the block to go and press your primary attack button. To make things even easier, there is a
temporary placement rabbit model for reference. Where this temp model is, is where your block will
be. The new block is also represented with a rabbit model. After placing a block, make sure you are
aiming at it. You will know your on it because you will see a white highlight box around it and an
implosion effect. The implosion effect is a general representation of the block radius, that is,
the range at which you want to cover for blocking something. So now that you have your new block
highlighted press your primary attack again. This time the rabbit will turn red and the
highlight box will dissapear indicating that this block locations is currently being edited. You can
move around the map and place it in another location or you can change it's block type. There are
6 block types you can choose from. These are Allied nades, Axis nades, all nades, Allied players,
Axis players or all players. To cycle through each block type, have your block location bunny
glowing red and press your secondary fire button. It will take you through all the modes. Also, if
you want to delete a block location, have it in the red and hit your run key. This will remove it
completely. Now on to the deflection. Setting this up is just as easy. Look at the way the rabbit
model is facing. He is pointing in the direction which objects will be deflected in. You can rotate
the deflection angle with your turn left, and turn right keys. Generally you want to always deflect
away in the opposite direction of where something shouldn't go. All that is left now is the radius
of the deflection. The radius is how big of an area you want to cover. Keep in mind that this radius
is the shape of a sphere. After playing around and setting up your block locations, test them out.
To make things easier after you spawn, press your use key and it will take you to the location of
the last block you edited. Once you are satisfied, go into the console and type: nade_exploit_save
and it will save all of your current work to a file for the corresponding map your on. You can then
exit editor mode by typing: nade_exploit_editor into the console again. This will resume normal
operation. There is also a menu to access all console commands and can be gotten to by typing:
nade_exploit_menu in console.
[> Additional info <]
- Remember that depending on the location you may need a few smaller radius block locations to cover
an area while others will suffice with a larger single block. Too big of a radius and it could block
parts of the map you don't want blocked and too small could lead to gaps that aren't fully covered.
- If you need to start over to the last time you saved, just type: nade_exploit_load into the
console.
- Using the console command: nade_exploit_wipe will completely wipe all block data from memory if
you want to start all over. This does not wipe a saved map file though.
.
===========================
Console Commands:
===========================
nade_exploit_editor
- Toggles editor mode on or off for creating/editing exploit definition files.
nade_exploit_status
- Displays info in the console as to the status of the plugin such as the total exploit blocks
running or any errors the plugin encountered.
nade_exploit_save
- Will attempt to save the current exploit definition data to the map's corresponding file. This
process can take a few seconds to complete.
nade_exploit_load
- Will attempt a load or reload of the current map's exploit definition file if available.
nade_exploit_wipe
- Use this to completely start over with no block locations. Use this with nade_exploit_save to
clean the map definition file as well.
nade_exploit_menu
- Allows access to all the console commands via manu.
===========================
CVARs
===========================
nade_exploit_fix | 0 = off | 1 = on
- Enables or disables the Map Exploit Fix plugin. Default on.
nade_exploit_scan_time | x.x
- Allows changing the delay between every scan. This will let you adjust the plugin's CPU usage.
While it doesn't take alot of work to check these locations, you might have a slower server or wish
to optimize your server if you have lots of plugins running. The higher the number, the more time
there will between each global check but if it's too high, you run the risk of a blockee getting
past a block location. For the most part you want to keep this under 1 second. You can enter an
integer or real number here. For example, a value of one would just be 1 second and a value of 1.5
would be 1 and a 1/2 seconds. Also, this only is for nade block locations. Players have to be
checked much faster in prethink. Default 0.5.
===========================
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
- Copy the desired map definition files to a new folder named nade_exploits inside of your amxmodx
config folder. For example most people's setups would look like this:
addons\amxmodx\configs\nade_exploits
- Change the map or restart your server to start using the plugin!
This plugin is a spawn off of my dod_avalanche and dod_purple nade exploit fix plugins. This is
designed to be used with any map. All you need is a defintion file for a particular map. You can
also create your own or modify existing ones with the built in editor. The reason I made a universal
plugin for all maps is simple. Less to deal with. It would be a redunant to have to get different
plugins to cover multiple maps. It also creates less mess on the dodplugins.net forums. XD
Currently comes with the following definitions:
dod_avalanche
dod_purple
===========================
v1.002 Changes
===========================
- Fixed non working player blocks.
===========================
v1.001 Changes
===========================
- Added missing admin flag check for console commands. Allowed anyone to use the editor! o.O
- Per request, added menu to access all console commands via menu.
===========================
Features & Notes
===========================
- Deflects nades from marked exploit locations on maps. Can block Allied, Axis, or all grenades.
- Blocks can be set to deflect players instead of nades on either or both teams as well. This is
good for spawn protection or anywhere you don't want players getting to.
- Built in editor for creating and editing your own custom blocks.
- Supports as many maps as you want.
- Each map definition file supports up to a maximum of 64 blocks.
- Want to have a map fixed? Let me know and I'll create a definition file for it or you can use the
built in editor to make your own!
- Credit goes out to the following people for helping me test, improve the original plugin to this
final refined, unified plugin and provide exploit locations for dod_avalance:
| Tank | Diamond-Optic | OnEHiTwOnDeR | Dr.G |
- Block locations whose vector is 0.0 / 0.0 / 0.0 (X/Y/Z) are ignored. The chances of placing a
block at these coordinates are very slim but just incase I'm mentioning it.
- Unlike my previous dod_avalanche nade exploit fix map, I have not added an Axis player block into
Allied appartments from the penguin room. You can add it if you want.
===========================
Editor Mode
===========================
Because this is a more in depth function of the plugin, it gets it's own section. I've tried to
make it so creating your own block points are as less of a pita as possible.
[> Setting up <]
- First you are going to join sectators and turn on the editor by typing: nade_exploit_edit
into your console. This toggles the editor on and off and anytime the map changes or the server
restarts, it will always default off. Once you have enabled editor mode (console will show a message
to this effect) you can begin placing your blocks.
[> Keys <]
Attack - Place a new or select a highlighted block location for editing.
Attack2 - Cycle's through a selected entity's block modes, nade/allied/axis/all/remove.
Jump - Increment block location size.
Duck - Decrement block location size.
Turn Left - Rotate deflection direction to the left. This is not strafe left.
Turn Right - Rotate deflection direction to the right. This is not strafe right.
Run - Delete block location when editing it.
Use - This will instantly warp you back to the last spot you were editing from so you can check your
blocks quicker after spawing instead of walking all the way back. This location is saved only
temporarily and does not save between map changes.
If you don't know the binds for these keys, here they are in the same order:
+attack
+attack2
+jump
+duck
+turnleft
+turnright
+run
+use
If you don't know what to do and don't know how to bind keys this example will help. Let's say you
want to bind cancel to your I key. You would go into the console and type:
bind i +cancel
So by looking at that you can see first we are using the bind command, then the first argument is
the key you want, I in this case, and the last part is the action command we are binding to the I
key. It's really simple. You can do this with any of your keys and any command.
[> Working with blocks <]
This editor takes a simple approach to editing locations. All you have to do is aim where you want
the block to go and press your primary attack button. To make things even easier, there is a
temporary placement rabbit model for reference. Where this temp model is, is where your block will
be. The new block is also represented with a rabbit model. After placing a block, make sure you are
aiming at it. You will know your on it because you will see a white highlight box around it and an
implosion effect. The implosion effect is a general representation of the block radius, that is,
the range at which you want to cover for blocking something. So now that you have your new block
highlighted press your primary attack again. This time the rabbit will turn red and the
highlight box will dissapear indicating that this block locations is currently being edited. You can
move around the map and place it in another location or you can change it's block type. There are
6 block types you can choose from. These are Allied nades, Axis nades, all nades, Allied players,
Axis players or all players. To cycle through each block type, have your block location bunny
glowing red and press your secondary fire button. It will take you through all the modes. Also, if
you want to delete a block location, have it in the red and hit your run key. This will remove it
completely. Now on to the deflection. Setting this up is just as easy. Look at the way the rabbit
model is facing. He is pointing in the direction which objects will be deflected in. You can rotate
the deflection angle with your turn left, and turn right keys. Generally you want to always deflect
away in the opposite direction of where something shouldn't go. All that is left now is the radius
of the deflection. The radius is how big of an area you want to cover. Keep in mind that this radius
is the shape of a sphere. After playing around and setting up your block locations, test them out.
To make things easier after you spawn, press your use key and it will take you to the location of
the last block you edited. Once you are satisfied, go into the console and type: nade_exploit_save
and it will save all of your current work to a file for the corresponding map your on. You can then
exit editor mode by typing: nade_exploit_editor into the console again. This will resume normal
operation. There is also a menu to access all console commands and can be gotten to by typing:
nade_exploit_menu in console.
[> Additional info <]
- Remember that depending on the location you may need a few smaller radius block locations to cover
an area while others will suffice with a larger single block. Too big of a radius and it could block
parts of the map you don't want blocked and too small could lead to gaps that aren't fully covered.
- If you need to start over to the last time you saved, just type: nade_exploit_load into the
console.
- Using the console command: nade_exploit_wipe will completely wipe all block data from memory if
you want to start all over. This does not wipe a saved map file though.
.
===========================
Console Commands:
===========================
nade_exploit_editor
- Toggles editor mode on or off for creating/editing exploit definition files.
nade_exploit_status
- Displays info in the console as to the status of the plugin such as the total exploit blocks
running or any errors the plugin encountered.
nade_exploit_save
- Will attempt to save the current exploit definition data to the map's corresponding file. This
process can take a few seconds to complete.
nade_exploit_load
- Will attempt a load or reload of the current map's exploit definition file if available.
nade_exploit_wipe
- Use this to completely start over with no block locations. Use this with nade_exploit_save to
clean the map definition file as well.
nade_exploit_menu
- Allows access to all the console commands via manu.
===========================
CVARs
===========================
nade_exploit_fix | 0 = off | 1 = on
- Enables or disables the Map Exploit Fix plugin. Default on.
nade_exploit_scan_time | x.x
- Allows changing the delay between every scan. This will let you adjust the plugin's CPU usage.
While it doesn't take alot of work to check these locations, you might have a slower server or wish
to optimize your server if you have lots of plugins running. The higher the number, the more time
there will between each global check but if it's too high, you run the risk of a blockee getting
past a block location. For the most part you want to keep this under 1 second. You can enter an
integer or real number here. For example, a value of one would just be 1 second and a value of 1.5
would be 1 and a 1/2 seconds. Also, this only is for nade block locations. Players have to be
checked much faster in prethink. Default 0.5.
===========================
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
- Copy the desired map definition files to a new folder named nade_exploits inside of your amxmodx
config folder. For example most people's setups would look like this:
addons\amxmodx\configs\nade_exploits
- Change the map or restart your server to start using the plugin!