Left 4 Dead 2
2,280 оценки
Contextual Ping System
13
3
9
8
2
2
2
2
   
Награда
Добавяне към любими
В любими
Премахване от любими
Game Content: Scripts, UI
Размер на файла
Публикуван на
Обновен на
746.469 KB
27 окт. 2021 в 12:45
23 юни в 11:00
33 бележки за промени ( преглед )

Абониране, за да се свали
Contextual Ping System

Описание
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
Популярни дискусии Всички (2)
60
29 дек. 2023 в 19:19
ЗАКАЧЕНА: Feedback & Suggestions
Sam
15
1 окт. 2023 в 10:08
Suggestion
Supreme Leader
198 коментара
雪风保护大家 8 юни в 3:01 
简洁,好用
Aleksander Drako 31 май в 15:38 
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  [автор] 31 май в 14:59 
@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 май в 14:33 
Nevermind, it did loaded after next loading new game again. A bit confused how it works
Aleksander Drako 31 май в 14:25 
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 май в 14:12 
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  [автор] 27 май в 13:54 
@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 май в 7:48 
It's buggy for inspector view is there a way to fix it?
Sam  [автор] 1 апр. в 16:22 
@Iggy , elaborate further in the Feedback post with all of the addons you have enabled
Sam  [автор] 1 апр. в 16:21 
@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.