Page 1 of 1

Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 12:54 pm
by optic delusion
How do you get a team flag to spawn at a location other than on the base? after a capture, of course.

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 1:28 pm
by tainn
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.

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 2:15 pm
by Zehra
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

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 4:28 pm
by tainn
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.

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 4:46 pm
by optic delusion
will it fly back to that zone after every drop? not just drops over pyramids?

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 6:38 pm
by Zehra
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

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 8:56 pm
by tainn
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?

Re: Team Flag spawn away from base?

Posted: Sun Dec 16, 2018 11:08 pm
by Zehra
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

Re: Team Flag spawn away from base?

Posted: Mon Dec 17, 2018 4:54 pm
by Zehra
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