Shot Limit Zone

Expand and mod your server.
Post Reply
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Shot Limit Zone

Post by allejo »

A plugin that allows you add shot limits to flag based on the location of the flag. The difference between this plugin and the default BZFS -sl option is that by using that option, you are limiting all of the flags of the same type where with this plugin you will only limit the shot limit of a flag if grabbed from a specific area in the map. This plugin will not overwrite the -sl option.

Plug-in GitHub Page
https://github.com/allejo/shotLimitZone

Read Me
https://github.com/allejo/shotLimitZone ... /README.md

Most Up to Date Plug-in:
https://github.com/allejo/shotLimitZone ... itZone.cpp

BZW Example
https://github.com/allejo/shotLimitZone ... itZone.bzw

License
GPLv3

Please read the 'README,' it'll answer all your questions. I'm not providing any .so or .dll files because everyone who's hosting should be able to compile it themselves. Enjoy.
Last edited by allejo on Mon Jan 25, 2016 3:46 am, edited 1 time in total.
User avatar
dang dizzy white
Private First Class
Private First Class
Posts: 69
Joined: Tue Oct 29, 2013 11:30 pm
Location: Flowery Path Twelve

Re: Shot Limit Zone

Post by dang dizzy white »

This would actually be really useful for some progressive movement maps or some shot-enabled HTF.
Thank you, I'll be sure to use it if I go back to map creating.
sillysir
Private First Class
Private First Class
Posts: 75
Joined: Tue Jan 01, 2013 6:03 pm

Re: Shot Limit Zone

Post by sillysir »

Wonderful! Good job, allejo! :)

This may just inspire me to make another map... :D
silly :P
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Shot Limit Zone

Post by optic delusion »

just realized that...
zoneflag will generate the number of flags i want, and shotLimitZone preserves shot limits... If i make a zone including all flags, that is as big as the world size...
I can move flag generation completely out of the conf file, and into the bzw.
Also gives me the ability to simulate some flags that can spawn on buildings, while others cannot.

Will the plugin handle that many flags? I think it will, i know one way to find out.
Also, how will it react to Zoned tanks?
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.
User avatar
kierra
Lieutenant, Junior Grade
Lieutenant, Junior Grade
Posts: 4108
Joined: Wed Mar 23, 2005 1:02 am
Location: outer Slovenia
Contact:

Re: Shot Limit Zone

Post by kierra »

Optic Delusion wrote:just realized that...
zoneflag will generate the number of flags i want, and shotLimitZone preserves shot limits... If i make a zone including all flags, that is as big as the world size...
I can move flag generation completely out of the conf file, and into the bzw.
Also gives me the ability to simulate some flags that can spawn on buildings, while others cannot.

Will the plugin handle that many flags? I think it will, i know one way to find out.
Also, how will it react to Zoned tanks?
I hope the underlined means no oo flag on apocalypse bridges :)
"Sometimes people try to expose what's wrong with you, because they can't handle what's right about you."
"Measure your words -- they determine the distance of your relationships"
"If serving is beneath you, leadership is beyond ypu."
User avatar
allejo
Breaker of Builds
Breaker of Builds
Posts: 809
Joined: Sun Feb 17, 2008 10:01 pm
Location: /dev/null
Contact:

Re: Shot Limit Zone

Post by allejo »

Optic Delusion wrote:just realized that...
zoneflag will generate the number of flags i want, and shotLimitZone preserves shot limits... If i make a zone including all flags, that is as big as the world size...
I can move flag generation completely out of the conf file, and into the bzw.
Also gives me the ability to simulate some flags that can spawn on buildings, while others cannot.

Will the plugin handle that many flags? I think it will, i know one way to find out.
Also, how will it react to Zoned tanks?
Having a zone that size of the world using this plug-in would be no different from including -sl in the options block of a bzw. This plug-in is intended to be used as it is now on Apocalypse, a tiny zone with flags that have limited shots.

Edit: Unless you'd like different shot limits for the same flag
Post Reply