PDA

View Full Version : [OOB] Out-Of-Bounds Protector + Punishment (Zone Protector Plugin)


Hell Phoenix
08-02-2006, 07:37 PM
These tools can stop people from exploiting certain areas in a map, be it accessing a spawn, accessing an out of bounds area, etc. These zones can be defined for either axis, allies or both teams.

This one goes out to PenDragon =D

/************************************************** *************************
* oob_protector.sma Version 1.1 Date: AUGUST/02/2006
*
* [OOB] Out-Of-Bounds Protector + Punishment (Zone Protector Plugin)
*
* Protects Specified Zones in any DoD map from exploitation by defining
* seperate punishments for each Zone!
*
* Note: Use associated oob_builder to Build Custom Zones!
*
* Original by: Rob Secord, AKA xeroblood, AKA sufferer
* CS Updates by: Dan Weeks, AKA Suicid3
* Ported to DoD by: Hell Phoenix
* http://www.frenchys-pit.com
*
*
************************************************** *************************
* Changelog: 1.0 - Initial Release
* 1.01 - Updated for AMX Mod X 1.01
* - Added Team Support
* 1.02 - Updated with Default OOB files
* 1.1 - Ported to DoD
* - Updated to use cvar pointers (which means it requires amxx 1.70 or above)
*
************************************************** *************************
* Todo: - Nothing
*
************************************************** *************************
* Admin Commands:
*
* oob_mode - Enables/Disables OOB-Protector Plugin
* (Toggle Switch, no Parameters).
*
************************************************** *************************
* Admin CVARs:
*
* oob_obey_immunity <0|1> - If 1 plugin must obey immunity rights.
* oob_delay_between <#> - Sets the number of seconds between punishments if inflicted.
* oob_slap_damage <#> - The Amount of Damage Taken on Slap Punishment.
* oob_fire_damage <#> - The Amount of Damage Taken on Fire Punishment.
* oob_poison_damage <#> - The Amount of Damage Taken on Poison Punishment.
*
************************************************** *************************/

/************************************************** *************************
* oob_builder.sma Version 1.1 Date: AUGUST/02/2006
*
* [OOB] Out-Of-Bounds Protector + Punishment (Zone Builder Plugin)
*
* Builds Specified Zones in any map through console commands for use with
* associated "Zone Protector Plugin".
* Note:
* You only need this plugin installed to Build new Zones for maps!
* You may Remove this plugin afterwards, when running the server!
*
* Original by: Rob Secord, AKA xeroblood, AKA sufferer
* CS Updates by: Dan Weeks, AKA Suicid3
* Ported to DoD by: Hell Phoenix
* http://www.frenchys-pit.com
*
************************************************** *************************
* Changelog: 1.0 - Initial Release
* 1.01 - Updated for AMX Mod X 1.01
* - Added Team Support
* 1.02 - Updated with Default OOB files
* 1.1 - Ported to DoD
************************************************** *************************
* Admin Commands: (None of them take any parameters, just the command only)
*
* oob_start_zone - First: Starts a new OOB-Zone from your current origin.
* oob_adjust_height - Second (Optional): Adjusts the height of the current
* OOB-Zone with a +/- value (Raise/Lower).
* oob_save_zone - Third: Saves current origins and shows Punishment Menu
* and Delay Menu to Complete Zone.
* oob_cancel_zone - Optional: Cancels The Current OOB-Zone at any time.
*
* Note: After saving new zones in a map, you must reload the map before
* any of the newly added zones will be protected!
*
************************************************** *************************
* Admin CVARs:
*
* oob_delay_seconds - Used for Delay Menu to set the number of seconds
* of Delay for each punishment before action is taken.
*
************************************************** *************************/

Edgar
08-03-2006, 02:12 PM
Thanks for this port!

Did you change something elese then the team settings and cvars?

Hell Phoenix
08-03-2006, 02:31 PM
I didnt change any of the cvars...they are the same. I had to change the weapons, and the punishments mostly. I removed the "shooting blanks" because the function doesnt work and I didnt feel it was really necessary enough to include another module to do it (it can be done through fakemeta).

I think thats about it.

Private Dyin
08-03-2006, 07:46 PM
Thanks very much Hell Phoenix!!!

I've been bugging Pendragon about this for a long time now. :D I can get off his back now.

WARDOG
10-16-2006, 05:43 PM
Getting online compiler problems under 1.70, is the compiler working right now?

Warning: chmod(): Operation not permitted in /home/zorderel/public_html/compiler/paste.php on line 23

Warning: unlink(/home/zorderel/public_html/compiler/1.70/temp.sma): Operation not permitted in /home/zorderel/public_html/compiler/paste.php on line 24

Warning: touch(): Utime failed: Permission denied in /home/zorderel/public_html/compiler/paste.php on line 27

Warning: chmod(): Operation not permitted in /home/zorderel/public_html/compiler/paste.php on line 28
The File /home/zorderel/public_html/compiler/1.70/temp.sma is not Writable

Hell Phoenix
10-16-2006, 06:04 PM
It does look like it. You can use the one on the amxx forums though for now.

WARDOG
10-16-2006, 06:45 PM
It does look like it. You can use the one on the amxx forums though for now.

The one on the AMX forums only compiles for 1.76, or does it matter? If not can you show me a link for 1.70.

Tried to compile it on my own PC. The only thing I changed was the admin levels. Keep getting errors, here is the output.

// ----------------------------------------

//// oob_builder.sma
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_builder.sma(114) : error 017: un
defined symbol "ADMIN_LEVEL_K"
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_builder.sma(139) : error 017: un
defined symbol "ADMIN_LEVEL_K"
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_builder.sma(160) : error 017: un
defined symbol "ADMIN_LEVEL_K"
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_builder.sma(188) : error 017: un
defined symbol "ADMIN_LEVEL_K"
//
// 4 Errors.
// Could not locate output file compiled\oob_builder.amx (compile failed).
//
// Compilation Time: 0.11 sec
// ----------------------------------------

//// oob_protector.sma
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_protector.sma(14 0) : error 017:
undefined symbol "ADMIN_LEVEL_K"
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_protector.sma(14 0) : warning 215
: expression has no effect
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_protector.sma(14 0) : error 001:
expected token: ";", but found ")"
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_protector.sma(14 0) : error 029:
invalid expression, assumed zero
// D:\amxmodx-1.70\addons\amxmodx\scripting\oob_protector.sma(14 0) : fatal error
107: too many error messages on one line
//
// Compilation aborted.
// 4 Errors.
// Could not locate output file compiled\oob_protector.amx (compile failed).
//
// Compilation Time: 0.11 sec
// ----------------------------------------

Hell Phoenix
10-16-2006, 07:04 PM
For your errors...its because level K doesnt exist, I think your looking fro admin_password. From amxconst.inc:

#define ADMIN_ALL 0 /* everyone */
#define ADMIN_IMMUNITY (1<<0) /* flag "a" */
#define ADMIN_RESERVATION (1<<1) /* flag "b" */
#define ADMIN_KICK (1<<2) /* flag "c" */
#define ADMIN_BAN (1<<3) /* flag "d" */
#define ADMIN_SLAY (1<<4) /* flag "e" */
#define ADMIN_MAP (1<<5) /* flag "f" */
#define ADMIN_CVAR (1<<6) /* flag "g" */
#define ADMIN_CFG (1<<7) /* flag "h" */
#define ADMIN_CHAT (1<<8) /* flag "i" */
#define ADMIN_VOTE (1<<9) /* flag "j" */
#define ADMIN_PASSWORD (1<<10) /* flag "k" */
#define ADMIN_RCON (1<<11) /* flag "l" */
#define ADMIN_LEVEL_A (1<<12) /* flag "m" */
#define ADMIN_LEVEL_B (1<<13) /* flag "n" */
#define ADMIN_LEVEL_C (1<<14) /* flag "o" */
#define ADMIN_LEVEL_D (1<<15) /* flag "p" */
#define ADMIN_LEVEL_E (1<<16) /* flag "q" */
#define ADMIN_LEVEL_F (1<<17) /* flag "r" */
#define ADMIN_LEVEL_G (1<<18) /* flag "s" */
#define ADMIN_LEVEL_H (1<<19) /* flag "t" */
#define ADMIN_MENU (1<<20) /* flag "u" */
#define ADMIN_ADMIN (1<<24) /* flag "y" */
#define ADMIN_USER (1<<25) /* flag "z" */

WARDOG
10-16-2006, 08:10 PM
Doh, thanks,fixed.

WARDOG
10-18-2006, 12:40 AM
Does this load up the saved oobs when the map comes around again by itself?

Hell Phoenix
10-18-2006, 11:50 AM
Yes it does as long as they are in teh correct directory (the one they are placed in when you make them) =D

WARDOG
10-18-2006, 08:33 PM
Yes it does as long as they are in teh correct directory (the one they are placed in when you make them) =D

Thanks Hell, just another question though. I see no mention of having to create a directory to save the oobs in the info here. Directions for this, and directory info?

What do you need to do exactly to accomplish this?

Hell Phoenix
10-18-2006, 09:39 PM
It creates the directory for you when you make the first zone. But the directory is called "oob" in the config directory (IE:
addons/amxmodx/configs/oob/<mapname>.oob is the full bath to the files).

spitfire
11-05-2006, 01:54 AM
I tried getting this plugin to work but it just wont save the oob part...

I do oob_start_zone or whatever... Get the area I want oob_save_zone or whatever then I do the menus and then it goes to the last menu.. Delay time I hit it and the menus disapear... I then reloaded the map and had someone try to get to a exploit... They were not killed harmed nor hurt

Hell Phoenix
11-05-2006, 09:58 PM
Is the file in the directory? (addons/amxmodx/configs/oob/<mapname>.oob)

Do you have the oob_protector.amxx file running also?

npk06
12-08-2006, 02:49 PM
Very nice work. I modified it a bit on our server as I wanted it to act as a spawn protector so I changed a few things in the way it acts. Anyway, nice job from the dev. Don't forget to change the rights on the oob directory as it seems it couln't do it by itself.

Merrill
12-30-2006, 01:31 AM
Well i really need this plugin on our 24/7 charlie server as allies keep coming in to axis spawn.

I have both plugins running.

[ 19] OOB Zone Protector 1.1 AMXX DoD Communi oob_protector.a running
[ 20] OOB Zone Builder 1.1 AMXX DoD Communi oob_builder.amx running

I am able to create and save zones. It wouldn't create the oob directory so I created it myself. When I create the zone and save I do see a file in my oob directory called

dod_charlie.oob

When I cross the zone nothing happens. I'm using ver 1.75a

Any ideas on what I'm doing wrong?

Merrill
12-30-2006, 01:32 AM
Well like a dummy I had it set to obey immunity.

It's working fine

Thanks for the great plugin

Hell Phoenix
01-05-2007, 03:30 PM
Glad you got it working ;)

!TK!- Cold Blooded
10-04-2007, 05:53 AM
I got really excited when I saw this plugin but I must be missing something here. I loaded both .amx, made the oob folder, and the commands work in game as well. I do not have it to obey immunity and I have set many points to try and stop spawn campers, but it does not seem to be working. There was one time for about half a second where it said something in blue about being in a protected area, but I was not slayed nor took damage. Any help would be appreciated.

johnnyskid
11-21-2007, 05:51 AM
The green line comes up. Then I do ood_save_zone. Then the menu come up and I do that. My next step is I re-boot the map. But it does not take my weapon away? I have imunity set at zero.

Both plugins are installed. What am I doing wrong?

johnnyskid
11-22-2007, 03:42 AM
Still can't get it to save. Sorry to be a pest about this.