Template:Tfc kv criteria: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(created based off of Team Fortress Classic.fgd.)
 
No edit summary
 
Line 5: Line 5:
* 2: Red
* 2: Red
* 3: Yellow
* 3: Yellow
* 4: Green}}
* 4: Green
}}
{{KV|Targetname of teamcheck goal|intn=teamcheck|string|only={{tfc}}}}
{{KV|Targetname of teamcheck goal|intn=teamcheck|string|only={{tfc}}}}
{{kV|Player class allowed to use goal|intn=playerclass|only={{tfc}}|choices|
{{kV|Player class allowed to use goal|intn=playerclass|only={{tfc}}|choices|
Line 19: Line 20:
* 9: Engineer
* 9: Engineer
}}
}}
{{KV|Has item #|intn=items_allowed|integer|only={{TFC}}|Won't affect players holding more than this many items?{{confirm}}}}
{{KV|Has item #|intn=items_allowed|integer|only={{TFC}}|The player must be carrying this item to use this entity.}}
{{KV|Has item from group #|intn=h_i_g|integer|only={{TFC}}}}
{{KV|Has item from group #|intn=h_i_g|integer|only={{TFC}}|To use this entity, the player must be carrying any item from this group.}}
{{KV|Hasn't item from group #|intn=hasnt_item_from_group|integer|only={{TFC}}|Won't affect players holding an item from this group?{{confirm}}}}
{{KV|Hasn't item from group #|intn=hasnt_item_from_group|integer|only={{TFC}}|To use this entity, the player must not be carrying any item from this group.}}
{{KV|intn=if_item_has_moved|If item # has moved|integer|only={{TFC}}|Will only be active if this item has moved?{{confirm}}}}
{{KV|If item # has moved|intn=if_item_has_moved|integer|only={{TFC}}|A player can only use the entity if this item is not in its original spawn location.}}
{{KV|intn=if_item_hasnt_moved|If item # hasn't moved|integer|only={{TFC}}|Won't be active if this item has moved?{{confirm}}}}
{{KV|If item # hasn't moved|intn=if_item_hasnt_moved|integer|only={{TFC}}|A player can only use the entity if this item is in its original spawn location.}}
{{KV|intn=if_goal_is_active|If goal # active|integer|only={{TFC}}}}
{{KV|If goal # active|intn=if_goal_is_active|integer|only={{TFC}}|Players can only use the entity if this goal is in the active state.}}
{{KV|intn=if_goal_is_inactive|If goal # inactive|integer|only={{TFC}}}}
{{KV|If goal # inactive|intn=if_goal_is_inactive|integer|only={{TFC}}|Players can only use the entity if this goal is in the inactive state.}}
{{KV|intn=if_goal_is_removed|If goal # removed|integer|only={{TFC}}}}
{{KV|If goal # removed|intn=if_goal_is_removed|integer|only={{TFC}}|Players can only use the entity if this goal is in the removed state.}}
{{KV|intn=if_group_is_active|If group # active|integer|only={{TFC}}}}
{{KV|If group # active|intn=if_group_is_active|integer|only={{TFC}}|A player can only use the entity if all the goals in this group are in the active state.}}
{{KV|intn=if_group_is_inactive|If group # inactive|integer|only={{TFC}}}}
{{KV|If group # inactive|intn=if_group_is_inactive|integer|only={{TFC}}|A player can only use the entity if all the goals in this group are in the inactive state.}}
{{KV|intn=if_group_is_removed|If group # removed|integer|only={{TFC}}}}
{{KV|If group # removed|intn=if_group_is_removed|integer|only={{TFC}}|A player can only use the entity if all the goals in this group are in the removed state.}}
}}
}}
<noinclude>
<noinclude>
[[Category:Keyvalue Templates|criteria]]
[[Category:Keyvalue Templates|criteria]]
</noinclude>
</noinclude>

Latest revision as of 11:06, 1 March 2024

TFCriteria:
Team allowed to use goal (team_no) <choices> (only in Team Fortress Classic)
  • 0: Any
  • 1: Blue
  • 2: Red
  • 3: Yellow
  • 4: Green
Targetname of teamcheck goal (teamcheck) <string> (only in Team Fortress Classic)
Player class allowed to use goal (playerclass) <choices> (only in Team Fortress Classic)
  • 0: Any
  • 1: Scout
  • 2: Sniper
  • 3: Soldier
  • 4: Demolitions man
  • 5: Medic
  • 6: Heavy Weapons Guy
  • 7: Pyro
  • 8: Spy
  • 9: Engineer
Has item # (items_allowed) <integer> (only in Team Fortress Classic)
The player must be carrying this item to use this entity.
Has item from group # (h_i_g) <integer> (only in Team Fortress Classic)
To use this entity, the player must be carrying any item from this group.
Hasn't item from group # (hasnt_item_from_group) <integer> (only in Team Fortress Classic)
To use this entity, the player must not be carrying any item from this group.
If item # has moved (if_item_has_moved) <integer> (only in Team Fortress Classic)
A player can only use the entity if this item is not in its original spawn location.
If item # hasn't moved (if_item_hasnt_moved) <integer> (only in Team Fortress Classic)
A player can only use the entity if this item is in its original spawn location.
If goal # active (if_goal_is_active) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the active state.
If goal # inactive (if_goal_is_inactive) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the inactive state.
If goal # removed (if_goal_is_removed) <integer> (only in Team Fortress Classic)
Players can only use the entity if this goal is in the removed state.
If group # active (if_group_is_active) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the active state.
If group # inactive (if_group_is_inactive) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the inactive state.
If group # removed (if_group_is_removed) <integer> (only in Team Fortress Classic)
A player can only use the entity if all the goals in this group are in the removed state.