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

item_currencypack_medium

From Valve Developer Community
Jump to: navigation, search

English (en)
... Icon-Important.png

Stub

This article or section is a stub. You can help by adding to it.

Info.png
This entity is not in the FGD by default .
It should not be put directly in a map because it doesn't remove itself when picked up.
Mediumcredits.png

item_currencypack_medium is a point entity available in Team Fortress 2 Team Fortress 2. A medium pile of money for the Mann vs. Machine gamemode. When collected, it awards $10 to the defending players.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

EnableDisable:

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs


Base:
AddContext <string>
Adds to the entity's list of response contexts. See Context.
AddOutput <string>
Assigns a new keyvalue/output on this entity. For keyvalues, some rely on extra necessary code to be ran and won't work if its simply just changed through this input. There is a strict format that must be followed:
// Format of changing KeyValues: "AddOutput [key] [value]"
//// Raw text:
"OnUser1" "!self,AddOutput,targetname new_name"

// Format of adding an Output: "AddOutput {targetname}:{inputname}:{parameter}:{delay}:{max times to fire, -1 means infinite}"
//// Raw text:
"OnUser1" "!self,AddOutput,OnUser1:SetParent:!activator:0.0:-1"
// Arguments can be left blank, but the empty blank should still be contained.
//// Raw text:
"OnUser1" "!self,AddOutput,OnUser1:ClearParent::0.0:-1"
ClearContext
Removes all contexts from this entity's list.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
FireUser1 to FireUser4
Fires the respectiveOnUseroutputs; see User Inputs and Outputs.
Kill
Removes this entity and any entities parented to it from the world.
KillHierarchy
Functions the same as Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster thanKillinput.
RemoveContext <string>
Remove a context from this entity's list. The name should match the key of an existing context.
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
Use  !FGD
Same as a player invoking +use; no effect in most cases.
DispatchResponse <string> !FGD
Dispatches a response to the entity. See Response and Concept.
DispatchEffect <string> (removed since Left 4 Dead) !FGD
Dispatches a special effect from the entity's origin; See also List of Client Effects. Replaced by the particle system since Left 4 Dead.

EnableDisable:

Enable
Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

Base:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.

FGD Code

//MvM cash piles
@include "base.fgd"
@PointClass base(Targetname, EnableDisable) studio("models/items/currencypack_small.mdl") = item_currencypack_small : "MvM Money (Small)" [ ]
@PointClass base(Targetname, EnableDisable) studio("models/items/currencypack_medium.mdl") = item_currencypack_medium : "MvM Money (Medium)" [ ]
@PointClass base(Targetname, EnableDisable) studio("models/items/currencypack_large.mdl") = item_currencypack_large : "MvM Money (Large)" [ ]

See also