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
(Created page with "{{Tf2 point|tf_ammo_pack}} {{TOC|left}} thumb|right|200px|A dropped ammo box.{{clr}} thumb|right|180px|A dropped crumpkin....")
 
m (Classifying as model entity)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Tf2 point|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}}
{{TOC|left}}
{{lang}}
[[Image:Mediumammo.png|thumb|right|200px|A dropped ammo box.]]{{clr}}
{{Ent not in fgd}}
[[Image:TF2_Crumpkin.png|thumb|right|180px|A dropped crumpkin.]]
{{CD|CTFAmmoPack|file1=tf_ammo_pack.cpp}}
==Entity description==
{{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.
Medium sized ammunition pack, Halloween [https://wiki.teamfortress.com/wiki/Halloween_pumpkin Crumpkin's] 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==
{{ScrollBox|
@PointClass base(Targetname, EnableDisable, Toggle, Angles, RenderFields, Studiomodel, FadeDistance)
{{KV Studiomodel}}
    studio("models/items/ammopack_medium.mdl")
{{KV RenderFields}}
    sphere(fademindist)
{{KV Origin}}
    sphere(fademaxdist)
{{KV Angles}}
    = tf_ammo_pack : "Dropped Ammo Pack" []
{{KV Targetname}}
}}
 
==Inputs==
{{ScrollBox|
{{I Studiomodel}}
{{I RenderFields}}
{{I Targetname}}
}}
 
==Outputs==
{{O Targetname}}

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