View Single Post
Plugin Info:     Modification:          Category:         
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 01-02-2024 , 10:07   CS/ CZ: Conditioned Grenade Radio v1.1
Reply With Quote #1

CS/ CZ: Conditioned Grenade Radio v1.1

Get more control over the default CS/ CZ Player (RADIO): Fire in the hole!
or Player @ CTSpawn (RADIO): Fire in the hole! audio and text phrases.

It supports custom user chat tags as well, as an optional feature,
see the example script below.


GameTracker/ servers using CGR v1.1

PHP Code:
cgr_enabled 1 /// Sets whether or not this plugin is enabled.
cgr_spaces 0 /// A value of 0 means the default '(RADIO): Fire' and a value of 1 means '(RADIO) :  Fire'.
cgr_dead 1 /// Sets whether or not the grenade radio phrases will be displayed to the dead players as well.
cgr_reliable 0 /// Sets whether or not the replacement grenade radio phrases will be delivered as reliable.
cgr_random 1 /// Sets whether or not to use random grenade radio phrases when the players are throwing grenades.
cgr_custom 0 /// Sets whether or not only the grenade name in the entire grenade radio phrase should be colored.
cgr_alive 32 /// Only display grenade radio phrases to the team if at most this number of players are alive in it.
cgr_append 0 /// Sets whether or not to only append a colored GRENADE, FLASH or SMOKE string after the original game grenade radio phrase.
cgr_name 1 /// Sets the color of the player name in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_radio 1 /// Sets the color of the RADIO string in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_dots 1 /// Sets the color of the dots symbol (':' symbol) in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_parentheses 1 /// Sets the color of the parentheses in grenade radio phrases. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_at 1 /// Sets the color of the at symbol ('@' symbol) in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_location 4 /// Sets the color of the actual map location in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.

cgr_dots_enabled 1 /// Sets whether or not to enable the default dots in grenade radio phrases (':' symbol).
cgr_name_location 4 /// Sets the color of the player name in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_radio_location 1 /// Sets the color of the RADIO string in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_dots_location 1 /// Sets the color of the dots symbol (':' symbol) in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.
cgr_parentheses_location 1 /// Sets the color of the parentheses in grenade radio phrases which contain map locations. 1 for normal color, 3 for grenade color (thrower's team color if smoke) and 4 for green.

cgr_dead_audio 1 /// Sets whether or not the grenade radio voices will be played to the dead players as well.
cgr_alive_audio 32 /// Only play grenade radio voices to the team if at most this number of players are alive in it. 
Code:
------------
cgr_append 0
------------

    ------------
    cgr_random 1
    cgr_custom 1
    ------------

        ------
        CS/ CZ
        ------

        Caramel (RADIO): Throwing grenade!
        Caramel (RADIO): Flashbang out!
        Caramel (RADIO): Deploying smoke!

        ------------------
        CZ w/ Map Location
        ------------------

        Caramel @ CTSpawn (RADIO): Throwing grenade!
        Caramel @ CTSpawn (RADIO): Flashbang out!
        Caramel @ CTSpawn (RADIO): Deploying smoke!

    ------------
    cgr_random 1
    cgr_custom 0
    ------------

        ------
        CS/ CZ
        ------

        Caramel (RADIO): Throwing grenade!
        Caramel (RADIO): Flashbang out!
        Caramel (RADIO): Deploying smoke!

        ------------------
        CZ w/ Map Location
        ------------------

        Caramel @ CTSpawn (RADIO): Throwing grenade!
        Caramel @ CTSpawn (RADIO): Flashbang out!
        Caramel @ CTSpawn (RADIO): Deploying smoke!

    ------------
    cgr_random 0
    cgr_custom 1
    ------------

        ------
        CS/ CZ
        ------

        Caramel (RADIO): Fire in the hole!
        Caramel (RADIO): Fire in the hole!
        Caramel (RADIO): Fire in the hole!

        ------------------
        CZ w/ Map Location
        ------------------

        Caramel @ CTSpawn (RADIO): Fire in the hole!
        Caramel @ CTSpawn (RADIO): Fire in the hole!
        Caramel @ CTSpawn (RADIO): Fire in the hole!

    ------------
    cgr_random 0
    cgr_custom 0
    ------------

        ------
        CS/ CZ
        ------

        Caramel (RADIO): Fire in the hole!
        Caramel (RADIO): Fire in the hole!
        Caramel (RADIO): Fire in the hole!

        ------------------
        CZ w/ Map Location
        ------------------

        Caramel @ CTSpawn (RADIO): Fire in the hole!
        Caramel @ CTSpawn (RADIO): Fire in the hole!
        Caramel @ CTSpawn (RADIO): Fire in the hole!

------------
cgr_append 1
------------

    ------
    CS/ CZ
    ------

    Caramel (RADIO): Fire in the hole! GRENADE
    Caramel (RADIO): Fire in the hole! FLASH
    Caramel (RADIO): Fire in the hole! SMOKE

    ------------------
    CZ w/ Map Location
    ------------------

    Caramel @ CTSpawn (RADIO): Fire in the hole! GRENADE
    Caramel @ CTSpawn (RADIO): Fire in the hole! FLASH
    Caramel @ CTSpawn (RADIO): Fire in the hole! SMOKE

------------
cgr_append 2
------------

    ------
    CS/ CZ
    ------

    Caramel (RADIO): GRENADE
    Caramel (RADIO): FLASH
    Caramel (RADIO): SMOKE

    ------------------
    CZ w/ Map Location
    ------------------

    Caramel @ CTSpawn (RADIO): GRENADE
    Caramel @ CTSpawn (RADIO): FLASH
    Caramel @ CTSpawn (RADIO): SMOKE
See The 'conditioned_grenade_radio.inc' File

Example Of Setting A Player Tag/ See The 'cgr_player_tags.sma' File

PHP Code:
v1.0
Released
v1.1
Added CVAR `cgr_dots_location
conditioned_grenade_radio.inc goes to /addons/amxmodx/scripting/include/

Attached Files
File Type: inc conditioned_grenade_radio.inc (3.5 KB, 58 views)
File Type: sma Get Plugin or Get Source (cs_conditioned_grenade_radio.sma - 90 views - 165.5 KB)
__________________

Last edited by claudiuhks; 01-09-2024 at 05:49. Reason: v1.0 -> v1.1
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks