Left 4 Dead 2

Left 4 Dead 2

2,276 ratings
Contextual Ping System
13
3
9
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)
60
29 Dec, 2023 @ 7:19pm
PINNED: Feedback & Suggestions
Sam
15
1 Oct, 2023 @ 10:08am
Suggestion
Supreme Leader
198 Comments
雪风保护大家 8 Jun @ 3:01am 
简洁,好用
Aleksander Drako 31 May @ 3:38pm 
I was confused as I made a file, loaded a map and saw no effect. So I started digging if there is some error on my part. At some point, loaded another map and... Wait it works now. I can't really tell the logic of it, but it does work.
And I so far love the mod.:luv:
I was giving colours for weapons trying to divide them into Tier 1, 2, 3 + None (pitchfork), a premade set could be useful if you ever feel like it is worth your time.
A command to reload the setting file could be especially useful when making colours changes(in my case I found that a lot of colours were a bit to bright or showed no difference)
Sam  [author] 31 May @ 2:59pm 
@Aleksander Drako ,The files are loaded only on map load, they can't be changed while a map is already loaded. !ping_system in game chat temporarily changes settings. I can add another command to this to reload the settings file when I find time.
Aleksander Drako 31 May @ 2:33pm 
Nevermind, it did loaded after next loading new game again. A bit confused how it works
Aleksander Drako 31 May @ 2:25pm 
I can't get ping_system_settings.txt to work yet. Any hopes that there is a command that would allow me to manually load it from the map and give me error if something is wrong?
Xeno :] 27 May @ 2:12pm 
Yes the size, I haven't seen the notes in awhile but can that be disabled on death pov only? If not I just have to deal with it haha
Sam  [author] 27 May @ 1:54pm 
@Xeno What is the inspector view and what is the bug? If it's about size and orientation, it's not something I can change. This is mentioned in "Known issues"
Xeno :] 27 May @ 7:48am 
It's buggy for inspector view is there a way to fix it?
Sam  [author] 1 Apr @ 4:22pm 
@Iggy , elaborate further in the Feedback post with all of the addons you have enabled
Sam  [author] 1 Apr @ 4:21pm 
@TheDoctor , type in the console "bind T +alt2", T being the key you want to bind. This setting should be automatically saved, you could also type "host_writeconfig" to ensure it is saved.