Holiday gift: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Langsp}} This entity exsists since 2011.<br> It got added together with the achievement "Valve Gift Grab 2011 - L4D2"<br> It's description is following:<br> "Collect three g...")
 
mNo edit summary
Line 1: Line 1:
{{Langsp}}
{{Langsp}}
This entity exsists since 2011.<br>
== Overview ==
It got added together with the achievement "Valve Gift Grab 2011 - L4D2"<br>
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.
It's description is following:<br>
"Collect three gifts dropped by Special Infected in Versus Mode"<br>
This is actually not quite right. The gifts will actually spawn for killed special infected and killed tanks.<br>
They do not spawn for any common/uncommon infected or the witch.<br>


== Who can collect the gifts? ==
== Features ==
The gifts are only collectable by players in the survivor team.
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 {{ent|trigger_hurt}} or drowning), it can still trigger a gift drop.


== Who has to kill the infected to obtain a gift drop? ==
== Factors affecting gift spawning ==
A survivor and an SI/Tank can be the killer.
Several factors determine whether a gift will spawn:
Even when the SI/Tank gets killed by the world (e.g. Any trigger_hurt or drowning) it can trigger a gift drop.
# 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.


== When do gifts spawn? ==
== Gift lifespan ==
If a gift will spawn or not depends on some factors.
When a gift is not collected by any player, it will automatically despawn after 30 seconds.
# The Convar: z_holiday_gift_drop_chance 0.3 // That basicly means a chance of 30% ( def. "0.3" ) min. 0.000000 max. 1.000000
# The date: 1st of december untill 2nd of January (inclusive)
# How much time passed between last last gift has been dropped? (It seems to be around 16 seconds)
 
== How long do they last? ==
When they are not collected by any player, (basicly just walking over it) they despawn after 30 seconds.

Revision as of 23:39, 21 December 2023

English (en)Translate (Translate)

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:

  1. 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
  2. The date: Gifts spawn between December 1st and January 2nd (inclusive).
  3. 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.