This article was converted from a previous version of TWHL and may need to be reviewed
- The formatting may be incorrect due to differences in the WikiCode processing engine, it needs to be revised and reformatted
- Some information may be out of date
- After the article is re-formatted and updated, remove this notice and the Review Required category.
- Some older articles are no longer useful, or they duplicate information from other pages. In this case, delete the page after merging any relevant information into other pages. Contact an admin to delete a page.
Point Entity
Think of info_tfgoal_timer as an info_tfgoal on a schedule. This entity acts almost exactly like an info_tfgoal, except that it activates at set intervals. As long as the goal is in the Inactive state, it will wait a given amount of time, move to Active and perform whatever actions it was meant to do, and then move back to the Inactive state again. Over and over, literally like clockwork. To stop an info_tfgoal_timer from activating in this manner, simply Remove it from the game using another goal. This is how scoring is accomplished in maps such as CZ2 and Avanti, where gaining points is based on the amount of time some objective is held or defended.
Info_tfgoal_timer has a few other dramatic differences from info_tfgoal entities # It cannot be activated by player touch, only by other goals and its own internal clock. Also, fields which before specified criteria about what player could Activate the goal now refer to criteria the player must meet to receive the goal's Effects. For instance, if I want to create a goal that gives 10 rockets to all Blue Soldiers every 30 seconds, I would create an info_tfgoal_timer, set the appropriate delay and ammo properties, and then set Team Allowed to Use Goal to Blue and Player Class Allowed to Use Goal to Soldier. This is a key difference between info_tfgoal and info_tfgoal_timer, and I would ask the reader to fully understand this point before continuing. Note that for this to work, the Check APA Criteria Individually flag must be set in Goal Effects, and Effect Radius must be set to a very high value (50000).
- If you are an abbreviation nut, this entity's classname can be abbreviated to i_t_t.
Attributes
- Goal initial state (goal_state) - Under Goal initial state' SmartEdit name, it is the initial state of the goal, with these options:
- 1 = Active - If you set this value to Active, the goal will perform its action as soon as the map loads (even before players have joined), and then move to the Inactive state unless it is set to stay active.
- 2 = Inactive
- 3 = Removed
- Model path/name.mdl (mdl) - If you wish this goal to be displayed as a model in the game (as is the case with goals used to create ammo packs), give the model's path and filename here. e.g. 'models/backpack.mdl'.
- Targetname of teamcheck goal (teamcheck) - Using this in conjunction with an info_tf_teamcheck allows you to switch the entity's team allegiance when the info_tf_teamcheck changes its team setting. The team_no property must be set to Any (0) if you use this value.
- Has item # (items_allowed) - The player must be carrying this item to use this entity. Set 0 to ignore this criterion.
- Has item from group # (h_i_g) - The player must be carrying any item from this group to use this entity. Set 0 to ignore this criterion.
- Hasn't item from group # (hasnt_item_from_group) - To use this entity, the player must not be carrying any item from this group. Set 0 to ignore this criterion.
- If item # has moved (if_item_has_moved) - A player can only use the entity if this item is not in its original spawn location. Set 0 to ignore this criterion.
- If item # hasn't moved (if_item_hasnt_moved) - A player can only use the entity if this item is in its original spawn location. Set 0 to ignore this criterion.
- If goal # active (if_goal_is_active) - Players can only use the entity if this goal is in the active state. Set 0 to ignore this criterion.
- If goal # inactive (if_goal_is_inactive) - Players can only use the entity if this goal is in the inactive state. Set 0 to ignore this criterion.
- If goal # removed (if_goal_is_removed) - Players can only use the entity if this goal is in the removed state. Set 0 to ignore this criterion.
- If group # active (if_group_is_active) - A player can only use the entity if all the goals in this group are in the active state. Set 0 to ignore this criterion.
- If group # inactive (if_group_is_inactive) - A player can only use the entity if all the goals in this group are in the inactive state. Set 0 to ignore this criterion.
- If group # removed (if_group_is_removed) - A player can only use the entity if all the goals in this group are in the removed state. Set 0 to ignore this criterion.
- Affect all on Team (maxammo_shells) - This allows an entity's effects (giving ammo, taking health, etc.) to be performed on an entire team rather than just the Activating Player. Options are:
- 0 = Disabled
- 1 = Blue
- 2 = Red
- 3 = Yellow
- 4 = Green
- Affect all not on Team (maxammo_nails) - This allows an entity's effects (giving ammo, taking health, etc.) to be performed on all players in teams other than the one selected, ignoring the Activating Player. Options are:
- 0 = Disabled
- 1 = Blue
- 2 = Red
- 3 = Yellow
- 4 = Green
- If all goals in group # active... (all_active) - When activated, the entity will check to see if all goals in a given group are active. If so, it will activate another goal, which is specified by last_impulse.
- Remove goal # (rv_g) - When the entity is activated, it will remove the goal specified here.
- Restore goal # (rs_g) - When the entity is activated, it will restore the goal specified here.
- Inactivate goals in group # (inactivate_group_no) - When the entity is activated, it will deactivate all the goals in the group specified here.
- Remove goals in group # (rv_gr) - When the entity is activated, it will remove all the goals in the group specified here.
- Restore goals in group # (rs_gr) - When the entity is activated, it will restore all the goals in the group specified here.
- Remove Spawn point # (remove_spawnpoint) - On activation, the entity will remove the info_player_teamspawn entity with the Goal # entered here. While the spawnpoint is removed, no one can spawn there.
- Restore Spawn point # (restore_spawnpoint) - On activation, the entity will restore a removed info_player_teamspawn entity with the Goal # entered here. After being restored, players can once again spawn at the spawnpoint.
- Remove spawn group # (rv_s_h) - On activation, the entity will remove the group of info_player_teamspawn entities with the Goal Group # entered here. While the spawnpoints are removed, players cannot spawn at them.
- Restore spawn group # (rs_s_h) - On activation, the entity will restore the group of removed info_player_teamspawn entities with the Goal Group # entered here. After being restored, players can once again spawn at the spawnpoints.
- Item to give (items) - Note: There are exceptions (check SmartEdit names). The Item # of an item_tfgoal entity. When the entity is activated, the Activating Player will be given this item. If the item is already being carried by a player, it will be taken from the carrier and given to the Activating Player.
- Remove item from APA (axhitme) - The Item # of an item_tfgoal entity. When the entity is activated, if the Activating Player is carrying the specified item, it will be removed from him. What happens to it then is determined by the Goal Activation property of the item.
- Pitch Yaw Roll (angles) - Sets the pitch (up / down), yaw (left / right) and roll (bank) respectively. The compass in WorldCraft / Hammer corresponds to Yaw. The settings are not always (or not all) used.
- Goal initial state (goal_state) - Under Goal initial state' SmartEdit name, it is the initial state of the goal, with these options:
- 1 = Active - If you set this value to Active, the goal will perform its action as soon as the map loads (even before players have joined), and then move to the Inactive state unless it is set to stay active.
- 2 = Inactive
- 3 = Removed
- Entity reference name (for logging) (netname)
- Goal # (goal_no)
- Goal group # (group_no)
- Name (targetname) (targetname)
- Model skin-varies per model (skin)
- Team allowed to use goal (team_no)
- Player class allowed to use goal (playerclass)
- Stay active(sec), -1 stays (wait)
- Delay before activate(sec) (delay_time)
- Effect radius, 0=infinite (t_length)
- If criteria fails activate Goal# (else_goal)
- ...activate goal# (last_impulse)
- Activate goal# (activate_goal_no)
- Inactivate goal# (inactivate_goal_no)
- Activate goals in group# (activate_group_no)
- Return item # (return_item_no)
- Remove items in group # (r_i_g)
- Target entity with this targetname (target)
- Remove entity with this targetname (killtarget)
- Play Sound Path/name.wav (noise)
- Add/Subtract frags (frags)
- Add/Subtract lives (lives)
- Add/Subtract health (health)
- Armor Value % (armorvalue)
- Armor Class (armorclass)
- Add/Subtract shells (a_s)
- Add/Subtract nails (a_n)
- Add/Subtract rockets (a_r)
- Add/Subtract cells (a_c)
- Add/Subtract detpack (ammo_detpack)
- Add/subtract grenades #1 (no_grenades_1)
- Add/subtract grenades #2 (no_grenades_2)
- Invincibility duration (invincible_finished)
- Invisibility duration (invisible_finished)
- Quad duration (super_damage_finished)
- Rad Suit duration (radsuit_finished)
- Score to AP team (count)
- Teamcheck team point gain (increase_team)
- Blue point gain (increase_team1)
- Red point gain (increase_team2)
- Yellow point gain (increase_team3)
- Green point gain (increase_team4)
- Length of endround (endround_time)
- Owners endround message (endround_owned_by)
- Non-owners endround message (endround_non_owned_by)
- Endround message for team 1 (endround_team1)
- Endround message for team 2 (endround_team2)
- Endround message for team 3 (endround_team3)
- Endround message for team 4 (endround_team4)
- Owned by-for msg & item glow (owned_by)
- Owned by teamcheck (owned_by_teamcheck)
- Death type (deathtype)
- Message to all (b_b)
- Message to AP (message)
- Message to AP team (b_t)
- Message to non-AP team (b_n)
- Message to owner team (b_o)
- Message to non-owner team(s) (non_owners_team_broadcast)
- Console msg. to all, %s = AP name (n_b)
- Console msg to AP team (n_t)
- Console msg. to non-AP team (n_n)
- Console msg. to owner team (n_o)
- Speak (global) (speak)
- Speak (AP) (AP_speak)
- Speak (AP team) (team_speak)
- Speak (non-AP team) (non_team_speak)
- Speak (owner team) (owners_team_speak)
- Speak (non-owner teams) (non_owners_team_speak)
- Goal Activation bitfields (g_a)
- Goal Effects bitfields (g_e)
- Goal Result bitfields (goal_result)
- Time between activations (search_time)
- Goal Effects bitfields (g_e)
- Goal Result bitfields (goal_result)
Flags
Notes