Raised This Month: $51 Target: $400
 12% 

[L4D2] CAI Concept Vocalize API


Post New Thread Reply   
 
Thread Tools Display Modes
Author
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Plugin ID:
7142
Plugin Version:
0.1
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Provide native for vocalize
    Old 05-31-2020 , 22:12   [L4D2] CAI Concept Vocalize API
    Reply With Quote #1

    Description
    Provides a single native for easier use vocalize

    How to use
    PHP Code:
    #include <sourcemod>
    #include <sdktools>

    #pragma semicolon 1
    #pragma newdecls required

    native void CAI_Concept(int client, const char[] szConcept);

    public 
    void OnPluginStart()
    {
        
    RegConsoleCmd("sm_concept"concept);
    }

    public 
    Action concept (int clientint args)
    {
        static const 
    char szConcept[] = "PlayerLaugh";
        
        for (
    int i 1<= MaxClientsi++)
        {
            if (
    IsClientInGame(i) && GetClientTeam(i) == 2)
                
    CAI_Concept(iszConcept);
        }

    Attached Files
    File Type: txt CAI_Concept.txt (691 Bytes, 237 views)
    File Type: sp Get Plugin or Get Source (CAI_Concept.sp - 471 views - 2.1 KB)
    __________________
    cry

    Last edited by BHaType; 05-31-2020 at 22:12.
    BHaType is offline
    Send a message via AIM to BHaType
    smxclj123
    Junior Member
    Join Date: Aug 2017
    Old 12-14-2021 , 21:27   Re: [L4D2] CAI Concept Vocalize API
    Reply With Quote #2

    What is the effect of the plugin?

    Does it mean that when multiple players use vocalize at the same time, only one players' will take effect?

    Or does everyone keep the voice state (without having to hold down the c key)?
    smxclj123 is offline
    Zynda
    Member
    Join Date: Jul 2011
    Old 12-14-2021 , 21:40   Re: [L4D2] CAI Concept Vocalize API
    Reply With Quote #3

    The plugin does nothing in and of itself, it's intended to be used by other plugins.
    Zynda is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 12-16-2021 , 01:20   Re: [L4D2] CAI Concept Vocalize API
    Reply With Quote #4

    I think it is similar to
    PHP Code:
    FakeClientCommandEx("vocalize PlayerLaugh"); 
    which is not producing additional network traffic according to documentation.

    BHaType version is more shorter "shortcut", perhaps may skip some safe checks.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    smxclj123
    Junior Member
    Join Date: Aug 2017
    Old 12-16-2021 , 18:59   Re: [L4D2] CAI Concept Vocalize API
    Reply With Quote #5

    Quote:
    Originally Posted by Dragokas View Post
    I think it is similar to
    PHP Code:
    FakeClientCommandEx("vocalize PlayerLaugh"); 
    which is not producing additional network traffic according to documentation.

    BHaType version is more shorter "shortcut", perhaps may skip some safe checks.
    Quote:
    Originally Posted by Zynda View Post
    The plugin does nothing in and of itself, it's intended to be used by other plugins.
    thanks a lot!
    smxclj123 is offline
    Reply



    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 17:12.


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