Automatic flags..

Questions and answers about the how and why of making maps.
Post Reply
applecake
Private First Class
Private First Class
Posts: 38
Joined: Sat Aug 23, 2008 4:08 pm
Location: somewhere in the woodlands of Sweden

Automatic flags..

Post by applecake »

Hey! Is there a way to automatically give tanks a certain flag, on spawn and when they have no other flag?
And how do I code so that the tanks can't shoot "normal shots"?

I'm planning to make and test a "thief war" map, a CTF where your only weapon is thief... And then you probably understand what the TH is for.. :)
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Automatic flags..

Post by Bambino »

Yes, use the "FlagOnSpawn plugin", I also thinl there's a "Thief Kills" plugin.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
applecake
Private First Class
Private First Class
Posts: 38
Joined: Sat Aug 23, 2008 4:08 pm
Location: somewhere in the woodlands of Sweden

Re: Automatic flags..

Post by applecake »

Tanks!
But is it possible to automatically give flag if the tank hasn't got any other flag? The plugin you mention only gives on spawn.. Or can I modify the code in it??
-Ehm.. Mr president, you got applecake in ur eye!
-Well..I see that..
=====================================
And now some advertising:
http://type-your-name-here.deviantart.com/gallery/ My Deviantart!
http://action.cubers.net/ Another fun and free game
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Automatic flags..

Post by Bambino »

Sure, you can mod the code in it, or make a whole new plugin.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
applecake
Private First Class
Private First Class
Posts: 38
Joined: Sat Aug 23, 2008 4:08 pm
Location: somewhere in the woodlands of Sweden

Re: Automatic flags..

Post by applecake »

Well..How do I use plugins..? Maybe I will not need to know, since I wont be hosting myself.. :)

But how do I set the plugins for only TH flags, and to all people?
And how can I set it to give as fast as one tanks hasnt got a flag??
-Ehm.. Mr president, you got applecake in ur eye!
-Well..I see that..
=====================================
And now some advertising:
http://type-your-name-here.deviantart.com/gallery/ My Deviantart!
http://action.cubers.net/ Another fun and free game
User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Automatic flags..

Post by Bambino »

Well, I don't really know much about them, but, you do /loadplugin path/to/plugin or -loadplugin path/to/plugin in the config.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague
User avatar
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Automatic flags..

Post by blast »

Maybe I'm not understanding this, but you're wanting to give the player a certain flag if they don't have any other flag? If so, then how would they get a different flag? If they drop their flag, it automatically gives them that one kind of flag, so they can't grab a different flag.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Automatic flags..

Post by optic delusion »

Theme97 made the progressive flags plugin, it's not pretty.
Never did figure out how to compensate for lag properly, but it sort of works.
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.
applecake
Private First Class
Private First Class
Posts: 38
Joined: Sat Aug 23, 2008 4:08 pm
Location: somewhere in the woodlands of Sweden

Re: Automatic flags..

Post by applecake »

blast wrote:Maybe I'm not understanding this, but you're wanting to give the player a certain flag if they don't have any other flag? If so, then how would they get a different flag? If they drop their flag, it automatically gives them that one kind of flag, so they can't grab a different flag.
Yep.. Heh, didnt think so long.. But like I wrote in my first post:

I'm planning to make and test a "thief war" map, a CTF where your only weapon is thief... And then you probably understand what the TH is for.. :)

The gameplay of the map would be normal CTF, with only teamflags and TH flags.. The aim would be to grab a teamflag, let a teammate thief you (or the guy who holds the teamflag), and in that way you'd be able to "pass" it, maybe all the way to your base.. And then you'd may stay in strategic places to be able to thief another guy..The problem is if you drop you TH flag..Then you wouldn't be able to do anything (almost).

But I dont know if it would work.. If you dont know how the map works, it may just be boring..
Im just trying to make my first map.. :) Maybe I should solve my problem with logging in with callsign first.. :(
-Ehm.. Mr president, you got applecake in ur eye!
-Well..I see that..
=====================================
And now some advertising:
http://type-your-name-here.deviantart.com/gallery/ My Deviantart!
http://action.cubers.net/ Another fun and free game
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Automatic flags..

Post by optic delusion »

If you had thief, and dropped it, you'd be able to shoot and kill.
If everybody had theif all the time, there would be no killing.
Even if you made a plugin that gave players a flag when they dropped a flag, there would still be a short period of lag time where they had no flag, and were able to shoot. I can't think of any current way to dis-allow the dropping of flags, or lock flags onto tanks, which is really what you need here.

I do think that this is an interesting idea as a thought experiment, kind of fun to think of a way to make it work, but players don't want to think. Maybe having lots of thief flagstay zones strategically placed around the map could be used to advantage.
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
blast
General
General
Posts: 4931
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Automatic flags..

Post by blast »

The problem with both ideas is that you can't grab a flag when you already have one.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image
User avatar
optic delusion
Special Forces
Special Forces
Posts: 1052
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Automatic flags..

Post by optic delusion »

Applecake, looks like this will definitely be possible in 3.0. Trepan tells me this will forbid flag drops in version 3.0. (also requires -luaworldReq on the bzfs command line)
in LuaWorld: script.SetCallIn('ForbidFlagDrop', function() return true end)
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.
applecake
Private First Class
Private First Class
Posts: 38
Joined: Sat Aug 23, 2008 4:08 pm
Location: somewhere in the woodlands of Sweden

Re: Automatic flags..

Post by applecake »

blast wrote:The problem with both ideas is that you can't grab a flag when you already have one.
I didnt think of that you wont be able to grab teamflags.. I dont think the "Theifkills" plugin would work, as there would be too much killing, or too easy to kill another tank? Maybe there could be slow reload. Should I test and make such an map, or would it just add crap to the huge universe of maps? :?
Optic Delusion wrote: Applecake, looks like this will definitely be possible in 3.0. Trepan tells me this will forbid flag drops in version 3.0. (also requires -luaworldReq on the bzfs command line)
in LuaWorld: script.SetCallIn('ForbidFlagDrop', function() return true end)
I've been on maps where you dont have a normal weapon, so you cant kill without a flag.
-Ehm.. Mr president, you got applecake in ur eye!
-Well..I see that..
=====================================
And now some advertising:
http://type-your-name-here.deviantart.com/gallery/ My Deviantart!
http://action.cubers.net/ Another fun and free game
User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Re: Automatic flags..

Post by Agent West »

done made a similar map. it's at http://my.bzflag.org/bb/viewtopic.php?f=64&t=13789 on forums. it's kinda like what apple is talking about, same idea, anyway. just without any fancy plug-ins :)

edit: even though the test server was discussed, i don't think it was ever put up, or at least i haven't seen it.
Rest in peace, AliceD (AKA Happy Alice)! miss ya!
applecake
Private First Class
Private First Class
Posts: 38
Joined: Sat Aug 23, 2008 4:08 pm
Location: somewhere in the woodlands of Sweden

Re: Automatic flags..

Post by applecake »

That map is somewhat like how my map would look like.. Now I wont have to make a map. :D
I could play that map.. Can't we ask for hosting at e.g. bzexcess.com (blast?) to test it? There is like 316 maps, why not put up a map that's a little bit different? Nice map anyways!
-Ehm.. Mr president, you got applecake in ur eye!
-Well..I see that..
=====================================
And now some advertising:
http://type-your-name-here.deviantart.com/gallery/ My Deviantart!
http://action.cubers.net/ Another fun and free game
User avatar
Agent West
Private First Class
Private First Class
Posts: 318
Joined: Thu Jan 31, 2008 1:32 pm

Re: Automatic flags..

Post by Agent West »

thanks :)
do feel free to modify it if you want!
Rest in peace, AliceD (AKA Happy Alice)! miss ya!
Post Reply