Holiday gift: Difference between revisions
SirYodaJedi (talk | contribs) (Actually, no reason it shouldn't work with point_template or env_entity_maker) |
SirYodaJedi (talk | contribs) |
||
Line 20: | Line 20: | ||
== FGD Code == | == FGD Code == | ||
{{todo}} | {{todo}} | ||
Since this entity automatically disappears after 30 seconds if not picked up, it's best used in conjunction with {{ent|point_template}}. |
Revision as of 04:55, 9 May 2025


![]() |
---|
CHolidayGift |

holiday_gift
is a point entity available in Left 4 Dead 2,
Day of Defeat: Source, and
Counter-Strike: Source.
Overview
The mentioned entity has been in existence since 2011 and was introduced in conjunction with the achievement Valve Gift Grab 2011 - L4D2. Its purpose is to collect three gifts dropped by Special Infected in Versus Mode.
Features
The gifts spawn for killed special infected and tanks, not for common/uncommon infected or the witch. Only players on the survivor team are able to collect the gifts. Both survivors and Special Infected/Tank can be the killer to obtain a gift drop. Even if the Special Infected/Tank is killed by the world (e.g. Any trigger_hurt or drowning), it can still trigger a gift drop.
Factors affecting gift spawning
Several factors determine whether a gift will spawn:
- The Convar: z_holiday_gift_drop_chance (default value: 0.3), indicating a 30% chance, with a minimum value of 0 and a maximum value of 1
- The date: Gifts spawn between December 1st and January 2nd (inclusive).
- Time interval: A new gift will only spawn after approximately 16 seconds have passed since the last one was dropped.
Gift lifespan
When a gift is not collected by any player, it will automatically despawn after 30 seconds.
FGD Code
[Todo] Since this entity automatically disappears after 30 seconds if not picked up, it's best used in conjunction with point_template.