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

tf_logic_holiday

From Valve Developer Community
Revision as of 16:37, 10 May 2025 by SirYodaJedi (talk | contribs)
Jump to navigation Jump to search
English (en)Translate (Translate)

Stub

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

C++ Class hierarchy
CTFHolidayEntity
CPointEntity
CBaseEntity
C++ tf_gamerules.cpp

tf_logic_holiday is a point entity available in Team Fortress 2 Team Fortress 2.

Entity description

Holiday Entity. This is used to force a specific holiday on a map, usually Halloween.

This entity is also used to enable the Spell UI via its HalloweenSetUsingSpells input.

Keyvalues

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

Holiday (holiday_type) <integer choices>
Controls the special events.
Todo: See if there are other effects associated with the events.
Taunt in Hell (tauntInHell) <integer choices>
Should players taunt when teleported to Hell.
Haunting (allowHaunting) <integer choices>
Allow Wheel of Doom haunting.
Note.pngNote:tauntInHell and allowHaunting are defined in game code as integers, but are treated as booleans; any value greater than 0 is treated as true.

Inputs

HalloweenSetUsingSpells <integerRedirectInput/integer>
Disable/Enable spells for this map. Only works on Halloween maps.
Note.pngNote:This affects whether or not players drop spells on death and whether or not spells appear on the HUD. Spells placed in the map via. Hammer will work regardless.
Note.pngNote:This input is defined in game code as taking an integer, but treats it like a boolean; 0 is false (disable spells), and any other value is true (enable spells).
Halloween2013TeleportToHell <stringRedirectInput/string>
Teleport all players to hell.
Clarify: What parameter is used for.