How to make an Ammo pack

 

PREREQUISITES

- Basic level construction and entity knowledge
- WorldCraft 2.1 knowledge
- Basic TFC level creation knowledge

INTRODUCTION

**NOTE** This tutorial was written using version 1.0i of the TFC Game Data file

This small tutorial explains how to make an ammo pack for a TFC map.   It's basically an excerpt from my Respawn room tutorial.

Creating an ammo pack

The first step is to decide where you want to place the ammo pack.  They are found mainly in respawn/re-supply rooms, but you may place them anywhere in your map.

- After you decided where you want your ammo pack, click the 'Entity Tool' and select info_tfgoal from the list of entities.

- Physically place your entity and then bring up the properties of the info_tfgoal:

respawn7.gif (6365 bytes)

- Change the values of the following Attributes to the values I have listed: (drop the quotation marks)

   "Sound Path/name.wav" - 'weapons/scock1.wav' (sound it makes when picked up)
   "Model Path/name.mdl" - 'models/backpack.mdl' (what the ammo pack will look like)
   "Add/Subtract shells" - '50'
   "Add/Subtract nails" - '50'
   "Add/Subtract rockets" - '20'
   "Add/Subtract cells" - '50'
   "Add/Subtract health" - '20'
   "Wait" - '5'
   "Goal Activation bitfields" - '1'
   "Goal Effects bitfields" - '1'

In the above list, the 'Add/Subtract' attributes designate how much ammo of that type is in each ammo pack.  The 'Wait' attribute controls the respawn delay after the ammo pack is picked up.

- Adjust the 'Angle' so that your ammo pack will be facing the direction you want.

Now you need to make a decision.  If you want to allow any team to use the ammo pack you made, you are done.  If on the other hand you want only a certain team to use the ammo pack you just made, we need to change one more value in the info_tfgoal's properties.

- In the Attributes list, click on 'Team' and select the appropriate team color from the drop-box.  The ammo pack can now only be picked up by members of that team.  If for some reason you want to switch it back to being available to anyone, you would choose 'Any' from the team drop-box.

Simple huh?

The example map below is the same map used for my Respawn room tutorial, so feel free to ignore anything that doesn't pertain to you. :)

EXAMPLE MAP

- evilchild