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
m (updated template usage.)
m (Classifying as model entity)
 
(6 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{lang|Tf ammo pack}}
<!-- 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}}
{{Tf2 point|tf_ammo_pack}} It is a medium ammo pack, Halloween {{tfwiki|Halloween_pumpkin|"crumpkin"}}, or Smissmas present dropped by player on death.
{{lang}}
[[Image:Mediumammo.png|thumb|right|200px|A dropped ammo box.]]
{{Ent not in fgd}}
[[Image:TF2_Crumpkin.png|thumb|right|180px|A dropped crumpkin.]]
{{CD|CTFAmmoPack|file1=tf_ammo_pack.cpp}}
{{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.
[[File:Mediumammo.png|thumb|right|200px|A dropped ammo box.]]
[[File:TF2_Crumpkin.png|thumb|right|180px|A dropped crumpkin.]]


==Keyvalues==
==FGD Code==
{{KV BaseEntity|base=1}}
@PointClass base(Targetname, EnableDisable, Toggle, Angles, RenderFields, Studiomodel, FadeDistance)
{{KV BaseAnimating|base=1|noscroll=0}}
    studio("models/items/ammopack_medium.mdl")
 
    sphere(fademindist)
==Inputs==
    sphere(fademaxdist)
{{I BaseEntity|base=1|noscroll=0}}
    = tf_ammo_pack : "Dropped Ammo Pack" []
{{I BaseAnimating|noscroll=0}}
 
==Outputs==
{{O BaseEntity}}

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" []