AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Voice Viewer 1.6[Jan-24-2024] (https://forums.alliedmods.net/showthread.php?t=344047)

Iciaria 09-27-2023 04:32

[L4D2] Voice Viewer 1.6[Jan-24-2024]
 
6 Attachment(s)
About
L4D2 Voice Viewer for 10+ Servers


Features
1.Show who is talking (EMS HUD, Center text, Hint text).
2.Limit voice time.
3.(Optional)When a player starts speaking or stops speaking, print a message in the chat that is instant.

Simple plugin but I can't find it anywhere:(

I've noticed many servers with something similar, but it appears they don't restrict "open mic" players.

developed for 8+ players coop server.

ConVars:
Spoiler


Changes Log
Spoiler


Translations:
Version 1.5 needs new translations, if anyone is willing to provide them I would be very grateful!

English (provided by "Peter Brev")
Simplified Chinese (provided by "Iciaria")
French (provided by "Peter Brev")
Russian (provided by "JustMadMan")


Install:
1.Download the .smx file and put into your servers addons/sourcemod/plugins folder.
2.Put the "l4d2_voiceviewer.phrases.txt" file into addons/sourcemod/translations folder.
3.Put the "l4d2_voiceviewer.txt file into addons/sourcemod/data folder"

Version 1.4 adds a new Convar. Please delete the "l4d2_voiceviewer.cfg" file and let the plugin regenerate it.


If you want to enable EMS HUD, Make sure a file exists like this:

left4dead2/scripts/vscripts/coop.nut
Code:

g_ModeScript
If the game mode is realism:
left4dead2/scripts/vscripts/realism.nut
Code:

g_ModeScript
Modify the file name appropriately to support other game modes, these files can exist at the same time.
left4dead2/scripts/vscripts/gamemode.nut

Note:
EMS HUD does not support translation.
modify it: addons/sourcemod/data/l4d2_voiceviewer.txt

Peter Brev 09-27-2023 05:21

Re: [L4D2] Voice Viewer
 
1 Attachment(s)
Added French translations and fixed English based on what I think you tried to say.

Iciaria 09-28-2023 06:04

Re: [L4D2] Voice Viewer
 
Quote:

Originally Posted by Peter Brev (Post 2810616)
Added French translations and fixed English based on what I think you tried to say.

Thank you, added:up:

Iciaria 09-28-2023 09:20

Re: [L4D2] Voice Viewer
 
Code:

2023-09-28 (1.2)
        - Limits are no longer reset during chapter transitions.
        - Fixed: multiple identical timers accidentally created.
        - Fixed: after the plugin is disable, it will have no effect when it is enabled again.
        - Changed wrong comment: l4d2_voiceviewer_reset(Time(s) = l4d2_voiceviewer_interval * l4d2_voiceviewer_reset).


apples1949 09-28-2023 09:29

Re: [L4D2] Voice Viewer
 
harrypoter: https://github.com/fbef0102/L4D2-Plu...aster/show_mic
Dragokas: https://forums.alliedmods.net/showthread.php?t=339934

Iciaria 10-01-2023 07:33

Re: [L4D2] Voice Viewer
 
Code:

2023-10-01 (1.3)
- Fixed: Client is not in game.


S.A.S 12-05-2023 23:50

Re: [L4D2] Voice Viewer
 
Works great, great job.
But the central text is too small on the HD screen extension, and the hud text does not work well with other plugins that use hud text, such as autorespawn.
Can you add ems hud ?

101 12-08-2023 09:21

Re: [L4D2] Voice Viewer
 
Great , but too much of scripting . u don't need to do that
i send a file (Not-Tested) , if u want to test and edit , its up to u : [ANY]SpeakersList.sp

Iciaria 12-10-2023 11:55

Re: [L4D2] Voice Viewer
 
I need to auto mute the client in specific situations.

Quote:

Originally Posted by 101 (Post 2814173)
Updated .
Multiple choices of displayment (author can edit script)
*Centermsg life time is about 2 secends and it need timer to be revived .
*panel and Consolemsg can handle the msg 4 long time and don't need timers .
* Msg is instantly refreshed and doesn't wait for timer , TIMER's main mission is: reviving Centermsg

have tested before(when write an earlier version of this plugin):
when the client is muted while speaking, the 'OnClientSpeakingEnd' is not trigger.

I will update this plugin after some time.

101 12-10-2023 22:40

Re: [L4D2] Voice Viewer
 
Quote:

Originally Posted by Iciaria (Post 2814279)
I need to auto mute the client in specific situations.


have tested before(when write an earlier version of this plugin):
when the client is muted while speaking, the 'OnClientSpeakingEnd' is not trigger.

I will update this plugin after some time.

I have uploaded a new version that deals with incidentally cut while speaking : OnClientDisconnected() .

in ur case :
(muted while speaking) is equal to (disconnected while speaking)
so if u know what is the forward of mute event/cmd , you can just do this :
PHP Code:

public void BaseComm_OnClientMute(int clientbool muteState)
{
    if(
muteState)
    {
        if (
Is_Spk[client])OnClientSpeakingEnd(client);
    }


But, I have never checked if OnClientSpeaking() excludes muted client or not ,but if it doesn't exclude them, do this instead:
PHP Code:

public void BaseComm_OnClientMute(int clientbool muteState)
{
    if(
muteState)
    {
        
IsMuted[client]=true ;
        if (
Is_Spk[client])OnClientSpeakingEnd(client);
    }
    else    
IsMuted[client]=false;
}

on OnClientSpeaking(P)
{
   if (
IsMuted[P]) return; // this sould be the first line 







All times are GMT -4. The time now is 04:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.