Item ammopack medium: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added in another picture)
m (Classifying as model entity)
 
(14 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{wrongtitle|title=item_ammopack_medium}}
{{LanguageBar}}
[[Image:Item ammopack medium tf.JPG|thumb|right|200px|A medium sized ammo box.]]
{{CD|CAmmoPackMedium|file1=entity_ammopack.cpp}}
[[File:Mediumammo.png|thumb|right|200px|A medium sized ammo box.]]
{{this is a|model entity|game=Team Fortress 2|name=item_ammopack_medium}}
Medium sized ammunition pack (contains 50% ammo).


{{tfitem}}


 
== See Also ==
 
* {{ent|item_ammopack_small}}
==Entity Description==
* {{ent|item_ammopack_full}}
Medium sized ammunition pack (contains 100 ammo).
 
==Availability==
This point [[entity]] is exclusive to Team Fortress 2.
 
==Keywords==
* {{kv targetname}}
* {{kv angles}}
* {{kv tfteam}}
* '''StartDisabled'''
: <[[boolean]]>
 
==Flags==
This entity doesn't have any flags.
 
==Inputs==
* {{i targetname}}
* '''Enable'''
: Enable this entity.
* '''Disable'''
: Disable this entity.
* '''Toggle'''
: Toggles the enabled/disabled status of the entity.
 
==Outputs==
* {{o targetname}}
* '''OnPlayerTouch'''
: Sent when the entity is picked up by a player.
 
[[Category:Team Fortress 2 Entities]]

Latest revision as of 04:31, 19 May 2025

English (en)Translate (Translate)
C++ Class hierarchy
CAmmoPackMedium
CAmmoPack
CTFPowerup
CItem
CBaseAnimating
CBaseEntity
C++ entity_ammopack.cpp
A medium sized ammo box.

item_ammopack_medium is a model entity available in Team Fortress 2 Team Fortress 2. Medium sized ammunition pack (contains 50% ammo).

Keywords

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Auto-Materialize (automaterialize) <boolean>
Whether the pickup will automatically re-materialize after 10 seconds.
Model (powerup_model) <string>
Changes the model to something other than the default.
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2
  • 3: BLU/Robots Team Fortress 2
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD
Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
Toggle
Toggles the enabled/disabled status of the entity.

Outputs

OnPlayerTouch  !FGD
Sent when the entity is picked up by a player.

See Also