Left 4 Dead 2

Left 4 Dead 2

2,841 个评价
Contextual Ping System
13
3
11
9
2
2
3
2
2
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts, UI
文件大小
发表于
更新日期
1.225 MB
2021 年 10 月 27 日 下午 12:45
9 月 29 日 上午 10:00
44 项改动说明 ( 查看 )

订阅以下载
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 used
- Manual button: when players press their chosen key (bound to "+alt2") to ping anywhere anytime. Hold this button to open the ping wheel ( bind T +alt2 )


Both the server host and the players need to install for everyone 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[0, 3] ) maxcount : PingSystem.SetMaxPingCount( count[1, 64] ) duration : PingSystem.SetPingDuration( pingtype, duration ) colour : PingSystem.SetPingColour( pingtype, r, g, b ) scale : PingSystem.SetScaleMultiplier( value[0.25, 2.0] ) sound : PingSystem.DisableSound( 0|1 ) button : PingSystem.DisableButton( 0|1 ) wheel : PingSystem.DisableWheel( 0|1 ) offscreen : PingSystem.DisableOffscreenIndicators( 0|1 ) offscreenstyle : PingSystem.SetOffscreenIndicatorStyle( 0|1 ) offscreenscale : PingSystem.SetOffscreenIndicatorScale( value[0.25, 2.0] ) savecfg loadcfg --- PingSystem.SetPingSound( pingtype, soundDefault, soundAlert ) PingSystem.SetWheelItem( index[1,4], pingtype )

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

Disable manual ping button
!ping_system button 0

Disable sound
!ping_system sound 0

Set every ping duration to 3.5 seconds
!ping_system duration all 3.5

Set ammo ping duration to 15 seconds
!ping_system duration weapon_ammo 15

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

Inside the settings file:
PingSystem.DisableAutoPing(2) PingSystem.DisableButton(1) PingSystem.DisableSound(1) PingSystem.SetMaxPingCount(2) PingSystem.SetPingDuration(PingType.ALL, 3.5) PingSystem.SetPingDuration(PingType.WEAPON_AMMO, 15) PingSystem.SetPingSound(PingType.ALL, "HudChat.Message", null) PingSystem.SetPingSound(PingType.MEDKIT, "Menu.Timer", "Christmas.GiftPickup")

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, modify or redistribute the VMT and script files! You only need to supply VTF files to overwrite the default icons. You may also provide "ems/ping_system_settings.txt" for default settings and overwrite the ping sounds.

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

Exposed script functions:
// Remove all pings of the player PingSystem.RemovePings( int entindex ) // Ping the entity by the player PingSystem.PingEntity( CBasePlayer player, CBaseEntity entity, Vector pingPosition ) // Force a trace ping by the player PingSystem.PingTrace( CBasePlayer player )



github.com/samisalreadytaken
热门讨论 查看全部(3)
73
6 月 13 日 下午 3:46
置顶: Feedback & Suggestions
Sam
15
2023 年 10 月 1 日 上午 10:08
Suggestion
Supreme Leader
0
9 月 12 日 上午 10:13
置顶: Streams, videos, servers using this addon
Sam
239 条留言
Keith 9 月 24 日 上午 9:23 
Okay
Sam  [作者] 9 月 24 日 上午 9:00 
@Keith, no
Keith 9 月 23 日 上午 6:44 
can other player see the ping if they didnt subcribes this mod?
zuaL 9 月 18 日 下午 8:17 
Really nice update 10/10
Sam  [作者] 9 月 16 日 上午 11:38 
@Dusk Holloway , Putting the fact that the source code is available on github aside, you could've made that suggestion to me so that everyone could have that option. You wouldn't want to use old versions.

I added the option to set ping sounds, check it out.
Dusk Holloway 9 月 14 日 下午 5:04 
You encrypted it.
Well that sucks I had it set so the sound for the pings were different.
At least I've got a backup.
Sam  [作者] 9 月 7 日 下午 1:17 
@Player , Possible, sure, but that doesn't sound useful. It's hard to miss the distinct visual and audio effects of fire, spit and explosions
Sam  [作者] 9 月 7 日 下午 1:14 
@FBI , This addon does not override any default files, so if the game tells you that an addon conflicts with this one, it means they are overriding ping system files, most likely the icons.

For any artificial functional conflicts, you'll need to ask the creators of other addons.
CaptPatrick01 8 月 28 日 上午 12:07 
@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 8 月 26 日 下午 10:43 
What are the conflicts with talker addons?