Left 4 Dead 2

Left 4 Dead 2

2,743 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
27 Oct, 2021 @ 12:45pm
16 Nov, 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
16 Nov, 2024 @ 1:09pm
PINNED: Feedback & Suggestions
Sam
2
13 Jun @ 3:46pm
anyone know how to make this compatible with the chimichaco talker addons?
SP-Calamitas
15
1 Oct, 2023 @ 10:08am
Suggestion
Supreme Leader
227 Comments
R.A 19 Jul @ 1:59pm 
If possible, add an option to disable sound effect for the ping
Sam  [author] 18 Jul @ 4:43am 
@soafervinie Every player needs to install and enable the addon
superbnuy 18 Jul @ 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] 12 Apr @ 9:15am 
@Chatalang You are missing the VTF (clamp) flags mentioned in the description
- 27 Dec, 2024 @ 6:14pm 
:steamhappy:
Keylevc 17 Dec, 2024 @ 3:48pm 
nice
T626 22 Nov, 2024 @ 6:43pm 
@Sam For the most part, the pings are just not appearing in-game for me only when one of my survivor bot teammates spots a witch/tank (or any other special infected) from afar, or when they've found new weapons or items on their own. They work perfectly fine whenever I'm the one doing the calls out on them. That's all.
Mundfish 16 Nov, 2024 @ 1:42pm 
Image this mechanic gets added in an community update.
Colkillervin 13 Oct, 2024 @ 5:18am 
I found out that when the ai try to ping a special infected this error comes up in the console


AN ERROR HAS OCCURED [the index 'specialtype' does not exist]

CALLSTACK
*FUNCTION [rr_Ping()] scripts/vscripts/ping_system.nut line [1229]

LOCALS
[m_ValidConcepts] TABLE
[rr_GetResponseTargets] NATIVECLOSURE
[m_Players] ARRAY
[GetNetPropInt] NATIVECLOSURE
[Msg] CLOSURE
[s_AutoBlock] TABLE
[s_bPlaySound] true
[m_WeaponClassForName] TABLE
[IsPlayerABot] NATIVECLOSURE
[FindEntityByClassWithin] NATIVECLOSURE
[GetNetPropEntity] NATIVECLOSURE
[m_ModelForWeaponName] TABLE
[m_ZombieTypeForSI] TABLE
[GetHeadOrigin] CLOSURE
[resp] 2
[bAuto] true
[targets] TABLE
[who] INSTANCE
[concept] "PlayerAlsoWarnSpecial"
[Q] TABLE
[this] TABLE