Team Flag spawn away from base?

Questions and answers about the how and why of making maps.
Post Reply
User avatar
optic delusion
Special Forces
Special Forces
Posts: 987
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Team Flag spawn away from base?

Post by optic delusion » Sun Dec 16, 2018 12:54 pm

How do you get a team flag to spawn at a location other than on the base? after a capture, of course.
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
tainn
Private First Class
Private First Class
Posts: 164
Joined: Sun Nov 18, 2018 7:25 pm
Location: zone of the phantoms

Re: Team Flag spawn away from base?

Post by tainn » Sun Dec 16, 2018 1:28 pm

Interesting question, I doubt it is even possible without intrusive plugins.

As you're probably well aware, there are already default parameters present at the zone object where one can specify the nearest zone where a team flag will fly to, but not upon capture.

Unless I'm wrong and there is some sort of a simplistic way to achieve team flags spawning off-base upon capping, it seems to me that some intrusive method would be required.

User avatar
Zehra
Private First Class
Private First Class
Posts: 613
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Team Flag spawn away from base?

Post by Zehra » Sun Dec 16, 2018 2:15 pm

optic delusion wrote:
Sun Dec 16, 2018 12:54 pm
How do you get a team flag to spawn at a location other than on the base? after a capture, of course.
I've seen the 'Capture the Base' mode, in where team flags spawn on enemy bases, and it is possible to spawn flags on enemy bases with safety zones from what is mentioned there.
So it should be possible with 'safety zones', except I'm not sure that flags would not spawn on their own base after capture.

If safety zones aren't able to do it, the following two plug-in concepts should be able to.
(The first one, I'm not 100% sure as the 'reset' part might just send it back to its own base.)

1. Team flag safety zones and resetting flag on capture:
Basically whenever a flag is captured, the plug-in would 'reset' that specific flag.
(I'm not certain this would work though, as it is very likely that resetting the flag would cause it to spawn on it's own base again.)

2. Flag move on capture:
Similar to the first concept, but the flag is 'moved' on capture, so basically it would 'simulate' the spawning.
Since we're moving it, nothing is left to chance, so everything should work out really well.
tainn wrote:
Sun Dec 16, 2018 1:28 pm
Interesting question, I doubt it is even possible without intrusive plugins.

As you're probably well aware, there are already default parameters present at the zone object where one can specify the nearest zone where a team flag will fly to, but not upon capture.

Unless I'm wrong and there is some sort of a simplistic way to achieve team flags spawning off-base upon capping, it seems to me that some intrusive method would be required.
Personally, I wouldn't consider plug-ins aren't intrusive by any means, as modifying the BZFS server executable has been done over the years.
The reason we have an API and plug-ins, is so that various concepts, ideas or game modes could be implemented, so that we wouldn't have to intrude on the BZFS executable and modify it, in order to implement them, if I'm not mistaken.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
tainn
Private First Class
Private First Class
Posts: 164
Joined: Sun Nov 18, 2018 7:25 pm
Location: zone of the phantoms

Re: Team Flag spawn away from base?

Post by tainn » Sun Dec 16, 2018 4:28 pm

Safety zones, which is what I was referring to in my initial message, only apply to flags that are dropped, not capped, as far as I know. I had also just tested it out, and unless I missed some essential factor, the safety zone setting does not apply to caps.

Perhaps intrusive wasn't the best word for it, I meant everything that is not offered by default already.

Update
Wow, super simple solution to all of this, unless I am missing something.

Use the zone object, but not the safety argument, but rather the zoneflag argument.

Example

Code: Select all

zone
position 200 280 0
size 1 1 1
rotation 0
zoneflag R* 1
end
This will, in fact, replace the red team flag that is present on default by this zone flag. Initially I thought it would just create another red team flag, but unless specifically stated otherwise, there will only be one team flag per team, including zone flags.

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

Re: Team Flag spawn away from base?

Post by optic delusion » Sun Dec 16, 2018 4:46 pm

will it fly back to that zone after every drop? not just drops over pyramids?
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
Zehra
Private First Class
Private First Class
Posts: 613
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Team Flag spawn away from base?

Post by Zehra » Sun Dec 16, 2018 6:38 pm

Zoneflag shouldn't send flags anywhere, unless they are captured or the flag which has spawned surpasses the limits by '_maxFlagGrabs'.
If I'm not mistaken, _maxFlagGrabs option does not effect team flags, so it probably won't effect them on flag drops.
So only if dropped on an 'unsafe' object, should a team flag happen to fly, but without safety zones, they'll fly towards the center.(If I'm not mistaken.)

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
tainn
Private First Class
Private First Class
Posts: 164
Joined: Sun Nov 18, 2018 7:25 pm
Location: zone of the phantoms

Re: Team Flag spawn away from base?

Post by tainn » Sun Dec 16, 2018 8:56 pm

optic delusion wrote:
Sun Dec 16, 2018 4:46 pm
will it fly back to that zone after every drop? not just drops over pyramids?
I assumed the question was for caps only.

Setting zoneflag will make the flag fly back to that zone upon cap, setting safety will make it fly to the zone upon a drop above a disallowed area, such as above a pyramid. Do you want to also send it to a specific zone upon a normal drop?

User avatar
Zehra
Private First Class
Private First Class
Posts: 613
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Team Flag spawn away from base?

Post by Zehra » Sun Dec 16, 2018 11:08 pm

I'm almost certain that an option or server setting for resetting/moving/respawning team flags on a normal drop exists.
If not, resetting team flags on drop can be done with a rather simple plug-in.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
Zehra
Private First Class
Private First Class
Posts: 613
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: Team Flag spawn away from base?

Post by Zehra » Mon Dec 17, 2018 4:54 pm

I'm sorry, I meant to write: "I'm almost certain that an option or server setting for resetting/moving/respawning team flags on a normal drop does not exist."
Please forgive me for any confusion this might have caused.

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests