This article relates to the game "Team Fortress 2". Click here for more information.

Tf ammo pack: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Classifying as model entity)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{TF2 topicon}}
<!-- When this page is updated to {{langsp}} or {{language subpage}} instead of {{lang}}, please move {{this is a}} to the base page, as it is automatically translated. -->{{TF2 topicon}}
{{lang|title=tf_ammo_pack}}
{{lang}}
{{Ent not in fgd}}
{{Ent not in fgd}}
{{entity|tf_ammo_pack|type=e0|game=Team Fortress 2}} It is a medium ammo pack, Halloween {{tfwiki|Halloween_pumpkin|"crumpkin"}}, or Smissmas present dropped by player on death.
{{CD|CTFAmmoPack|file1=tf_ammo_pack.cpp}}
[[Image:Mediumammo.png|thumb|right|200px|A dropped ammo box.]]
{{this is a|model entity|name=tf_ammo_pack|game=Team Fortress 2}} It is a medium ammo pack, Halloween {{tfwiki|Halloween_pumpkin|"crumpkin"}}, or Smissmas present dropped by player on death.
[[Image:TF2_Crumpkin.png|thumb|right|180px|A dropped crumpkin.]]
[[File:Mediumammo.png|thumb|right|200px|A dropped ammo box.]]
 
[[File:TF2_Crumpkin.png|thumb|right|180px|A dropped crumpkin.]]
==Keyvalues==
{{KV BaseEntity|base=1}}
{{KV BaseAnimating|base=1|noscroll=0}}
 
==Inputs==
{{I BaseEntity|base=1|noscroll=0}}
{{I BaseAnimating|noscroll=0}}
 
==Outputs==
{{O BaseEntity}}


==FGD Code==
==FGD Code==

Latest revision as of 04:34, 19 May 2025

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.
C++ Class hierarchy
CTFAmmoPack
CItem
CBaseAnimating
CBaseEntity
C++ tf_ammo_pack.cpp

tf_ammo_pack is a model entity available in Team Fortress 2 Team Fortress 2. It is a medium ammo pack, Halloween Tfwiki favicon.png "crumpkin", or Smissmas present dropped by player on death.

A dropped ammo box.
A dropped crumpkin.

FGD Code

@PointClass base(Targetname, EnableDisable, Toggle, Angles, RenderFields, Studiomodel, FadeDistance)
    studio("models/items/ammopack_medium.mdl")
    sphere(fademindist)
    sphere(fademaxdist)
    = tf_ammo_pack : "Dropped Ammo Pack" []