Questions & Answers

[ Q & A Index ]

[ Map Reviews - TF Map Pack Project ]

You can download EXAMPLE2.ZIP which contains an example .map and the following text.

*************BEGIN Message Quote from [ccw] Chomp************

I am building a map and I have put a goal_activation field to 8 on a func_button to allow only eng's to activate it. My problem is that even though i set the health to 500 or so, it only takes one swipe of the hammer to operate. Does anyone know why this is?

Also, what is the deal with the limits on ents? Is it a total number of entities allowed or what? If so, what is the limit?? Thanks, [ccw] Chomp

Oh and also, is there a way to limit an info_tfgoal activation so it requires the AP to have a certain amount of ammo?? (eg 150 cells) Thanks

*************END Message Quote from [ccw] Chomp**************

A: You will find in this map, a button and TF Entity combination that achieves the effect you mentioned in your question.

The problem is that if you are using a regular Quake entity such as a func_button. You cannot filter out TF player classes. TF has it's own set of entities and the only way I could think of to make it work was to use a combination of entities.

one func_button one info_tfgoal

which control one func_door

Here is the logic behind what I did and I will also mention a drawback or limitation in this solution.

You shoot the button (100 health) and when activated, it triggers the next entity, in this case an info_tfgoal

The info_tfgoal then checks to see if the AP (activating player) is an ENGINEER. I didn't make it team specific in this example. IF the player is an engineer, it then triggers the door, which will open. If the player is NOT an engineer, the door will NOT open.

func_button -- info_tfgoal -- func_door

PROBLEM: A soldier can pass by, hit the button but stop before it activates, then an engineer only has to hit it once to activate. This is not a problem if you just want it to open the door after ONE hit, cause then you put damage to something like 10, so 1 shot from ANY weapon will activate. So you wouldn't have to worry about 'how much health does the button have now?'.

As for your other questions:

Q. Also, what is the deal with the limits on ents? Is it a total number of entities allowed or what? If so, what is the limit??

A. If I remember right, it's somewhere around 200 entities max. I wish I could find my archived messages from the TF Map Making List. In which Robin Walker of TF Software had answered this question.

But you have to know that static lights (ones that don't blink or strobe or such) do not take up entity space once your map has been compiled and lit. So you just have to count everything else.

Q. Oh and also, is there a way to limit an info_tfgoal activation so it requires the AP to have a certain amount of ammo?? (eg 150 cells)?

A. uhmm, I don't think so. But I could be wrong.

************************************************************************

If you have any questions or would like to help out answering questions I may have botched, come to the TF Map Factory's message forum.

http://www.planetfortress.com/factory

***********************************************************************

COPYRIGHT:

This text, along with accompanying .MAP and .BSP files are copyright F.C.O. enr 1998. You can distribute the .ZIP file as long as it it contains these three files unmodified and NOTHING else.

example2.txt
example2.map
example2.bsp

You CANNOT use this text file, nor any of the above files on your web site without my authorisation.

***********************************************************************

This site and it's content is copyright F.C.O. enr. 1998.
All original art and graphics are watermarked for authentication purposes. The content submitted by contributors is copyright by the respectful owner.