Greetings, fellow TeamFortress editors!

Ever since I started making TF maps with Worldcraft (which is, BTW, the best damn Quake Editor on the planet - bar none), I have been cutting and pasting the TeamFortress entities in each map I made.

With the release of version 1.0 of Worldcraft, Ben Morris (creator of Worldcraft) added entity support for CTF maps, but, alas, none for TF :(

One night, I happened to catch him on IRC and asked him how this could be done and he said all I had to do was edit the quake.fgd file (the game definition file) that came with Worldcraft.

Well, I finally got off my lazy butt and did it.

This code is a patch that can be cut and pasted onto the end of the quake.fgd file. If you are using EntEd to edit your TF entities (and if you're not, WHY?!), then this patch will make your life a lot easier.

All EntEd wants to see is the entity and a 'netname' description of the entity. This is more for your your convienience than anything else. The netname field lets you know what each entity is for. Let's say you have 5 or 6 info_tfgoal entities in your map. What are they? Is #3 supposed to be a backpack or a flag? What does info_tfgoal_timer #7 do?

By having a netname, you know at once that info_tfgoal #3 is the Team 1 dropoff point for the flag (which happens to be item_tfgoal #2).

EntEd fully accepts the entities that Worldcraft creates with this patch.

Another thing: I gave the TF entities and the TF player start their own special colours. The player starts appear as bright yellow in Worldcraft and the other entities appear as bright orange. This will make them easier to find when you're editing a map.

First, make a copy of quake.fgd and rename it to something like oldquake.fgd. Then, load quake.fgd and wctfptch.txt into a text editor such as UltraEdit-32 or Notepad.

Mark all the text in wctfptch.txt and press CTRL-C (or click Edit/Copy on the menu). Switch to quake.fgd and press CTRL-End. This will take you to the end of the file. The last 4 lines in quake.fgd are:

@SolidClass base(Trigger) = trigger_hurt : "Trigger player hurt" 
[
	dmg(integer) : "Damage" : 10
]
put your cursor right here and press Shift-Insert (or Edit/Paste)


Now it should look like this:

@SolidClass base(Trigger) = trigger_hurt : "Trigger player hurt" 
[
	dmg(integer) : "Damage" : 10
]

//
// TeamFortress Entities
//

@baseclass base (Appearflags) size(0 0 0, 24 24 24) color(255 145 32) = TfClass
[
  netname(string) : "netname"
]

@PointClass base(TfClass) = info_tfdetect : "TF Detection Entity" []
@PointClass base(TfClass) = info_tfgoal : "TF Goal Entity" []
@PointClass base(TfClass) = info_tfgoal_timer : "TF Timer Goal" []
@PointClass base(TfClass) = item_tfgoal : "TF Goal Item" []
@PointClass size(-16 -16 -24, 16 15 24) color(255 255 0) 
base(Appearflags) = info_player_teamspawn : "TF Player Start"
[
netname(string) : "netname"
]

Note the blank line between the last ] character (in quake.fgd) and the first // line in the patch. Make sure its there!

Now, save the quake.fgd file (in the Worldcraft directory, of course ;), and load up Worldcraft.

Now, take an existing map or make a new one and insert some TeamFortress entities into it. Use the Entity Tool to do this (the one that looks like a tomahawk - don't ask me why). Edit each entity and give it a netname description. Now Export the file as a quake map and close the file. Don't exit Worldcraft, just close the file.

Now, start EntEd and  load the map file you just created. Edit the entities, adding the properties you want each to have and save the map in EntEd. Close EntEd and go back into Worldcraft. Click File and you'll see the map file listed in the list at the bottom of the File menu. Click on the filename and the map will load.

Using the Selection Tool, select one of your TF entities. To see the things that EntEd added, click the SmartEdit button. Sure enough, they're all there.

Now where can I get these succulent programs? you ask. Wellllllll...

The lastest (and sure to be the greatest) version of Worldcraft can be found at: www.acdsystems.com/worldcraft

TeamFortress patches and the TeamFortress Entity Editor (EntEd) can be found at: www.telefragged.com/teamfortress

Worldcraft is copyright 1996 by Ben Morris. It is not freeware, guys. The shareware version will allow you to do some astounding things, but some of the really juicy stuff (like prefabs) are crippled in it. Hey, it's only $30 - buy it - you'll be glad you did. Imagine having your VERY OWN Worldcraft CD!!! Be the first one on your block to get it!

EntEd is copyright 1996 by Robin Walker (walker@netspace.net.au)
Hope this helps in some small way.

Imaginos called Destinova the Magna of Illusion
www.tyler.net/imaginos/index.htm
imaginos@tyler.net