flag spawn

Questions and answers about the how and why of making maps.
Post Reply
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

flag spawn

Post by Sir_Pants »

how does one make it so a team flag doesnt spawn on a certain object?
MONKEYPANTS.COM
Image
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post 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?
Sir_Pants
Private First Class
Private First Class
Posts: 194
Joined: Mon Mar 28, 2005 2:41 am
Location: SOMEwhere in WA

Post 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
MONKEYPANTS.COM
Image
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post 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...
User avatar
ducatiwannabe
Private First Class
Private First Class
Posts: 3249
Joined: Tue Aug 10, 2004 3:55 pm
Location: Planet Earth
Contact:

Post by ducatiwannabe »

I see now. Nope, no clue.
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post 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).
User avatar
LouMan
Chief Sgt. of Cartography
Chief Sgt. of Cartography
Posts: 338
Joined: Mon Jan 31, 2005 3:05 am
Location: Michigan, USA

Post by LouMan »

Ah - missed that one! I will be looking at this technique for the next version of Babylon IV. Thanks trepan! :)
User avatar
BinarySpike
Corporal
Corporal
Posts: 735
Joined: Mon Mar 28, 2005 11:58 pm
Contact:

Post 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?
trepan
Dev Wizard
Dev Wizard
Posts: 704
Joined: Fri Feb 21, 2003 7:50 pm

Post 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?
Post Reply