Page 1 of 1

flag spawn

Posted: Sun May 08, 2005 9:07 pm
by Sir_Pants
how does one make it so a team flag doesnt spawn on a certain object?

Posted: Sun May 08, 2005 9:54 pm
by ducatiwannabe
Well, you aren't being very clear. I think what you mean is how do you make a team flag spawn on something other than the base?

Posted: Sun May 08, 2005 11:42 pm
by Sir_Pants
i think im being clear, i dont want the flag to go to stay on a certain building if it is dropped there by a player

Posted: Mon May 09, 2005 12:27 am
by LouMan
Without going into semantics regarding "spawning" and "dropping", I too would like the ability to prevent flags from being placed in certain areas. The existing methods I am aware of to do this are:

1) Make the surface you don't want the flags on uneven, or sloped.
2) Make the surface a death zone.

Unfortunately, neither of these methods address my particular needs. If anyone has played my Babylon IV map, you will understand that the flags on the slippery caution areas are very difficult to retrieve. I would love to prevent team flags from being placed there, but there is no method at this time to do so (that I know of). I had some conversation with a dev regarding this and there 'may' be changes in the next version release to allow physics areas to be defined in such a way as to prevent flags from being placed on them. We will see...

Posted: Mon May 09, 2005 1:52 am
by ducatiwannabe
I see now. Nope, no clue.

Posted: Mon May 09, 2005 2:14 am
by trepan
There is another way... flags will never be placed on
drivethrough buildings. Use an invisible drivethrough
meshbox or an invisible custom mesh (a face region
extraction should do nicely).

Code: Select all

options
  +f good{2}
  -ms 10 -j +r
  -c
  -mp 0,2,2,0,0,0
end
box
  size 300 300 10
end
meshbox
  color 0 0 0 0
  drivethrough
  pos 0 0 10
  size 300 300 0.01
end
base
  pos -350 -350 0
  size 25 25 10
  color 1
end
base
  pos +350 +350 0
  color 2
  size 25 25 10
end
I would advise only using drivethrough and
not drivethrough and shootthorugh (passable).

Posted: Mon May 09, 2005 9:38 am
by LouMan
Ah - missed that one! I will be looking at this technique for the next version of Babylon IV. Thanks trepan! :)

Posted: Mon May 09, 2005 4:58 pm
by BinarySpike
I would advise only using drivethrough and
not drivethrough and shootthorugh (passable).
Why?

So you can be driving along and just shoot and have it bounce off an invisable object and kill you?

Posted: Mon May 09, 2005 5:09 pm
by trepan
BinarySpike: You'll notice that that will not happen in the code snippet
that I provided as an example. There may come a time when objects
that are both drivethrough and shootthrough are simply discarded from
the physics model, and then this trick will no longer work for your maps.
That clear enough for you?