Raised This Month: $ Target: $400
 0% 

[L4D2] Voice Viewer 1.6[Jan-24-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Iciaria
Member
Join Date: Aug 2022
Plugin ID:
8551
Plugin Version:
1.6
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    See who is speaking on server(4+ players), limit maximum time for a single voice.
    Old 09-27-2023 , 05:32   [L4D2] Voice Viewer 1.6[Jan-24-2024]
    Reply With Quote #1

    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
    Attached Files
    File Type: txt l4d2_voiceviewer.txt (35 Bytes, 186 views)
    File Type: sp Get Plugin or Get Source (l4d2_voiceviewer.sp - 338 views - 13.8 KB)
    File Type: txt l4d2_voiceviewer.phrases.txt (1.5 KB, 150 views)
    __________________
    Sorry,my english not good

    Last edited by Iciaria; 02-01-2024 at 06:46. Reason: New Russian translation((provided by "JustMadMan")
    Iciaria is offline
    Peter Brev
    Member
    Join Date: Aug 2023
    Old 09-27-2023 , 06:21   Re: [L4D2] Voice Viewer
    Reply With Quote #2

    Added French translations and fixed English based on what I think you tried to say.
    Attached Files
    File Type: txt l4d2_voiceviewer.phrases.txt (902 Bytes, 267 views)
    Peter Brev is offline
    Iciaria
    Member
    Join Date: Aug 2022
    Old 09-28-2023 , 07:04   Re: [L4D2] Voice Viewer
    Reply With Quote #3

    Quote:
    Originally Posted by Peter Brev View Post
    Added French translations and fixed English based on what I think you tried to say.
    Thank you, added
    __________________
    Sorry,my english not good
    Iciaria is offline
    Iciaria
    Member
    Join Date: Aug 2022
    Old 09-28-2023 , 10:20   Re: [L4D2] Voice Viewer
    Reply With Quote #4

    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).
    __________________
    Sorry,my english not good

    Last edited by Iciaria; 09-28-2023 at 10:20.
    Iciaria is offline
    apples1949
    Member
    Join Date: Apr 2021
    Location: Asia
    Old 09-28-2023 , 10:29   Re: [L4D2] Voice Viewer
    Reply With Quote #5

    harrypoter: https://github.com/fbef0102/L4D2-Plu...aster/show_mic
    Dragokas: https://forums.alliedmods.net/showthread.php?t=339934
    apples1949 is offline
    Iciaria
    Member
    Join Date: Aug 2022
    Old 10-01-2023 , 08:33   Re: [L4D2] Voice Viewer
    Reply With Quote #6

    Code:
    2023-10-01 (1.3)
    - Fixed: Client is not in game.
    __________________
    Sorry,my english not good
    Iciaria is offline
    S.A.S
    Member
    Join Date: Jul 2023
    Old 12-06-2023 , 00:50   Re: [L4D2] Voice Viewer
    Reply With Quote #7

    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 ?
    S.A.S is offline
    101
    Senior Member
    Join Date: Nov 2023
    Old 12-08-2023 , 10:21   Re: [L4D2] Voice Viewer
    Reply With Quote #8

    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

    Last edited by 101; 12-11-2023 at 01:31.
    101 is offline
    Iciaria
    Member
    Join Date: Aug 2022
    Old 12-10-2023 , 12:55   Re: [L4D2] Voice Viewer
    Reply With Quote #9

    I need to auto mute the client in specific situations.

    Quote:
    Originally Posted by 101 View Post
    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.
    __________________
    Sorry,my english not good

    Last edited by Iciaria; 12-10-2023 at 13:03.
    Iciaria is offline
    101
    Senior Member
    Join Date: Nov 2023
    Old 12-10-2023 , 23:40   Re: [L4D2] Voice Viewer
    Reply With Quote #10

    Quote:
    Originally Posted by Iciaria View Post
    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 





    Last edited by 101; 12-11-2023 at 00:13.
    101 is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:28.


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