Left 4 Dead 2

Left 4 Dead 2

2,372 ratings
Contextual Ping System
13
3
10
8
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, UI
File Size
Posted
Updated
746.469 KB
27 Oct, 2021 @ 12:45pm
23 Jun @ 11:00am
33 Change Notes ( view )

Subscribe to download
Contextual Ping System

Description
Communication in Left 4 Dead has never been this easy!

This addon features 3 ways of pinging:

- Automatic voice: when survivors spot items and enemies, and verbally call them out. (bots use this!)
- Manual voice: when chat wheel commands are issued
- Manual button: when users press their chosen key (bound to "+alt2") to ping anywhere anytime ( bind T +alt2 )


Both the server host and the players need to install for players to see and hear the pings.

It does not work on official Valve servers.

Settings
To change settings in-game, the server host can type !ping_system in the chat. Then use !ping_system savecfg to save the changes, or !ping_system loadcfg to load settings from a previously saved configuration.

Available commands:
autoping : PingSystem.DisableAutoPing( option ) maxcount : PingSystem.SetMaxPingCount( count ) duration : PingSystem.SetPingDuration( pingtype, duration ) colour : PingSystem.SetPingColour( pingtype, r, g, b ) scale : PingSystem.SetScaleMultiplier( value ) // scales all icons for all players savecfg loadcfg

DisableAutoPing options:
0: enable all auto pings
1: disable all auto pings
2: only disable special infected warning pings
3: only disable item pings

Example:

No auto-pings for special infected
!ping_system autoping 2

Only 2 pings per player
!ping_system maxcount 2

Set every ping duration to 3.5 seconds
!ping_system duration -1 3.5

Set enemy warning ping duration to 1.5 seconds
!ping_system duration warning 1.5

Set first aid kit ping duration to 30 seconds
!ping_system duration medkit 30

These commands are partially matched. For instance, all commands below are identical.
!ping_system d medkit 30 !ping_system dur medkit 30 !ping_system durat medkit 30 !ping_system duration medkit 30

Inside the settings file:

PingSystem.DisableAutoPing(2) PingSystem.SetMaxPingCount(2) PingSystem.SetPingDuration(-1, 3.5) PingSystem.SetPingDuration(PingType.WARNING, 1.5) PingSystem.SetPingDuration(PingType.MEDKIT, 30)

List of all available ping types: https://gist.github.com/samisalreadytaken/01d77d0299456dcfc155f0125a082f1f

Developer
Custom ping icons can be made by replacing the corresponding "ping_system/icon_item.vtf" file(s) (required VTF flags: Clamp S, Clamp T, No mipmap). All edge pixels on these images need to be fully transparent.

Pings can be listened for with the script event "player_ping{ CBasePlayer player, Vector origin, CBaseEntity target }".



github.com/samisalreadytaken
Popular Discussions View All (2)
65
9 Jul @ 4:16pm
PINNED: Feedback & Suggestions
Sam
15
1 Oct, 2023 @ 10:08am
Suggestion
Supreme Leader
211 Comments
Colkillervin 20 Sep @ 5:11am 
doesnt seem to have fixed the issue it only shows the icon when a special infected is actively pinning another survivor not when someone spots a special infected how to fix?
Sam  [author] 19 Sep @ 9:43am 
@Colkillervin, you might have auto ping disabled locally, delete "left4dead2/ems/ping_system.txt" file if it exists in your game files.
Colkillervin 19 Sep @ 5:53am 
For some reason i cant see the icons for the auto ping when a survivor spots a special infected and whenever i play on my friends local server it shows up normally not when im the server host is there a way to fix this?
Correct 6 Sep @ 8:38pm 
Amazing work:steamthumbsup:. I wonder if it is possible to use the warning icon manually wherever the player is looking. I think sometimes it is better to warn before seeing and aiming at an SI.
Sam  [author] 4 Sep @ 9:55am 
@SquidNipples, settings file is at left4dead2/ems directory.

Voice lines are independent from the ping system; automatic pings only respond to events from the game telling which survivor reacted to what. These survivor reactions play voice lines depending on circumstances (such as whether characters have played other voice lines shortly before or not).
SquidNipples 4 Sep @ 1:37am 
Also, is there a setting that enables/disables voice in auto ping? Mine just stopped using voice lines for everything, even after restarting the game. Icons still appear.
SquidNipples 4 Sep @ 1:36am 
Under what path would I find the settings file?
Sam  [author] 19 Aug @ 11:34am 
@血色梅卡瓦 I tested every map in that campaign, it works for me, your issue must be something else
Sam  [author] 17 Aug @ 2:33pm 
@血色梅卡瓦 Can you share the map link?