Left 4 Dead 2

Left 4 Dead 2

2,791 ratings
Contextual Ping System
13
3
11
9
2
2
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, UI
File Size
Posted
Updated
755.824 KB
Oct 27, 2021 @ 12:45pm
Nov 16, 2024 @ 1:00pm
34 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 "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. Do not copy or modify the VMT files for icon replacements.

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



github.com/samisalreadytaken
Popular Discussions View All (3)
70
Nov 16, 2024 @ 1:09pm
PINNED: Feedback & Suggestions
Sam
2
Jun 13 @ 3:46pm
anyone know how to make this compatible with the chimichaco talker addons?
SP-Calamitas
15
Oct 1, 2023 @ 10:08am
Suggestion
Supreme Leader
231 Comments
CaptPatrick01 Aug 28 @ 12:07am 
@FBI Some of them overwrite internal names of the survivors and this mod is case-sensitive. (The ping system checks for TeenGirl but beacuse the talker changes it to Teengirl it doesn't work)
FBI Aug 26 @ 10:43pm 
What are the conflicts with talker addons?
Player Aug 22 @ 12:22pm 
this is an amazing mod! would it be possible to make an add-on for danger indicators and such? for example how in some games it shows a direction of a grenade. you could do this for any active fire or explosions etc
from my perspective Aug 11 @ 6:04pm 
Your mod works perfectly and I see a streamer using it too 10/10🌟
R.A Jul 19 @ 1:59pm 
If possible, add an option to disable sound effect for the ping
Sam  [author] Jul 18 @ 4:43am 
@soafervinie Every player needs to install and enable the addon
superbnuy Jul 18 @ 3:47am 
my teammate doesn't see or hear anything from ping system all they hear was "right." and floating error, i can't see what they see.
Sam  [author] Apr 12 @ 9:15am 
@Chatalang You are missing the VTF (clamp) flags mentioned in the description
Chatalang Apr 12 @ 6:22am 
- Dec 27, 2024 @ 6:14pm 
:steamhappy: