Left 4 Dead 2

Left 4 Dead 2

Specials drop Christmas Gifts
 This topic has been pinned, so it's probably important
Interneted  [developer] 28 Dec, 2024 @ 3:58am
settings.cfg
If you have loaded a map at least once with this add-on installed, a settings.cfg file will be created into Left 4 Dead 2/left4dead2/ems/interneted_specialsdropgifts

Here is the default code:
{ dropCooldown = 16 dropChance = 30 glowType = 0 glowR = 60 glowG = 0 glowB = 255 glowFlashing = 0 glowMinRange = 0 glowMaxRange = 0 }
Key
Type
Description
dropCooldown
integer, float or decimal
the cooldown after the last drop, in seconds.
dropChance
integer
chance to drop a gift.

Ranges from 0 to 100.
glowType
integer
0 -> disables glow.
3 -> always glow.

Other values that don't work on gifts for some reason:
1 -> glow upon being used, useless.
2 -> glow upon looked at, similar to realism mode.
glowR
integer
RGB's red value for the glow.

Ranges from 0 to 255.
glowG
integer
RGB's green value for the glow.

Ranges from 0 to 255.
glowB
integer
RGB's blue value for the glow.

Ranges from 0 to 255.
glowFlashing
integer
Set it to 1 if you want blinking glows.
glowMinRange
integer
How far away from the gift in order to glow?
glowMaxRange
integer
How close does it need to be to the gift in order to glow?

Set it to 0 for infinite range.

Just a reminder that you don't want to spawn too many gifts without opening them, or your server will crash because of entity limit and stringtable overflow.

In case of other errors, you would have to load a map with the add-on again to gain the default code or just copy the code above.

Using it in PvP gamemodes
The addon has functionality on all gamemodes and maps, but for PvP gamemodes like Versus it is automatically disabled by Valve.

To make it work in Versus on your local server, right-click on Left 4 Dead 2 in your steam library, select Properties, click on the Installed Files tab, then click on the Browse... button.
Go to left4dead2/cfg/ and open addonconfig.cfg with a text editor or Notepad.

Finally, edit this line:
"versus" "1"
to
"versus" "0"
Last edited by Interneted; 8 Feb @ 7:57am