Author Topic: Colored Spawns and Flags?  (Read 1706 times)

Spook

  • Autococker
  • Posts: 2542
Colored Spawns and Flags?
« on: September 17, 2006, 08:07:30 PM »
I'm using the BSp map editor, and ive been having trouble with getting my map ready to be playable. since i know there are quite a few experienced map makers here i would like to know what i have to do to get spawn points setup and flags. the Key/value boxes are whats giving me the problem since nothing i look at gives me what goes where. and if you help me with those is there anything else i need to do to make this map playable considering the only entities i know how to do are the weapons co2 and light. thanks

Cobo

  • Autococker
  • Posts: 1362
Re: Colored Spawns and Flags?
« Reply #1 on: September 17, 2006, 08:21:46 PM »
The entity for spawn points is "info_player_deathmatch" choose it and then click on the "?" button, it will give you a lot of usefull information about the selected entity.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Colored Spawns and Flags?
« Reply #2 on: September 18, 2006, 01:10:38 PM »
Key/value pairs are usually described as 2 values with quotes, for example:
"teamnumber" "1"
The first value, "teamnumber" is the key, and "1" is the value.  When you enter it in the box, don't use the quotes.  Once you've added the key/value pair, it should show up as two quoted values in the entity box.

To set up your flags and team spawns, you need to first set your worldspawn keys.  Deselect everything and hit "e".  Then make sure the following key pairs are there:
"classname" "worldspawn" -- should always be there.
"maxteams" "2" -- number of teams in the map.
"gamemode" "4" -- Team CTF
"team1" "red" -- first team is the color red.
"team2" "yellow" -- second team is the color yellow.
"sky" "pbsky3" -- set the sky you want (for outdoor maps).
"message" "My First Map\nBy Spook" -- name of the map displayed in the console.

Next you need to create spawn points.  Select info_player_deathmatch and hit "make entity":
"classname" "info_player_deathmatch" -- selected from dropdown.
"teamnumber" "1" -- red players will spawn here (as designated by worldspawn).

For flags:
"classname" "flag"
"teamnumber" "1" -- red flag.
"gamemode" "4" -- only appears in CTF mode.

For bases, you need to make a brush entity.  That is, make a brush (it must be rectangular -- you can't have anything angled), and with it selected, bring up the entity window and select "base" and hit "make entity."  It should look like this:
"classname" "base"
"teamnumber" "1"
"gamemode" "4"

If you want to support multiple game modes, just add the game mode values together.  For example, if you want to support CTF (4) and 1-flag CTF (2), put "gamemode" "6" in the worldspawn.  For a white flag, use "teamnumber" "0" and "gamemode" "2".  You'll need to put "gamemode" "6" on the bases, too, so they will be present in both 1-flag and CTF mode.

Spook

  • Autococker
  • Posts: 2542
Re: Colored Spawns and Flags?
« Reply #3 on: September 18, 2006, 03:17:32 PM »
now with that. one more question and i should be good for awhile. for the flag for example would i add 2 seperate enties to the same brush?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Colored Spawns and Flags?
« Reply #4 on: September 18, 2006, 03:24:42 PM »
For flag entities, you don't use a brush.  Only for base entities.

Spook

  • Autococker
  • Posts: 2542
Re: Colored Spawns and Flags?
« Reply #5 on: September 18, 2006, 03:31:35 PM »
i thought i needed to make a brush to make the entity on... so then how would i go about making the flag with no brush?

SmackWaters

  • VM-68
  • Posts: 242
Re: Colored Spawns and Flags?
« Reply #6 on: September 18, 2006, 03:33:20 PM »
bring up entity menu ('e') and select "flag" and press make entity


here, download this and open it in bsp, it may help you with figuring out entities and stuff

(my construction map. P.S. go check out the construction thread!  ;))

Spook

  • Autococker
  • Posts: 2542
Re: Colored Spawns and Flags?
« Reply #7 on: September 18, 2006, 03:42:40 PM »
ugh also with the worldspawn: i deselect everything and then fill out my ordered pairs, when i click make entity it says i cant make another world entity. any advice?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Colored Spawns and Flags?
« Reply #8 on: September 18, 2006, 06:24:58 PM »
You don't have to click "make entity" for the worldspawn.  The worldspawn entity is the whole map.

Spook

  • Autococker
  • Posts: 2542
Re: Colored Spawns and Flags?
« Reply #9 on: September 18, 2006, 07:26:42 PM »
so its naturally put in place when i make all the pairs?

SmackWaters

  • VM-68
  • Posts: 242
Re: Colored Spawns and Flags?
« Reply #10 on: September 18, 2006, 07:53:59 PM »
its naturally put there when you open up bsp...