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

CS/ CZ: Conditioned Grenade Radio v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
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, 46 views)
File Type: sma Get Plugin or Get Source (cs_conditioned_grenade_radio.sma - 76 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
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-03-2024 , 23:20   Re: CS/ CZ: Conditioned Grenade Radio v1.1
Reply With Quote #2

Interesting busy work. There still needs to be a brief description on top before diving in. Otherwise it will lose attention there. Hover mouse over the thread to see if that is how it should present itself. State this is native api whatever and host may need to hire somebody to write their own scripts to utilize. That would put the work back on you to finish the example script with a file instead of hard-coding. Server was crash testing on lower dynamic?
__________________
DJEarthQuake is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 01-07-2024 , 08:41   Re: CS/ CZ: Conditioned Grenade Radio v1.1
Reply With Quote #3

Quote:
Originally Posted by DJEarthQuake View Post
There still needs to be a brief description on top before diving in. Otherwise it will lose attention there.
I'll add now.

Quote:
Originally Posted by DJEarthQuake View Post
Server was crash testing on lower dynamic?
I've encountered issues with the AMXX scripts multiple times on multiple AMXX versions, finding out some custom user declared forwards or functions won't ever get fired because they "can't be found" without any descriptive reason. Using some dynamic fixes that. Never happened with SM, surprisingly.
I'll test the script soon without custom dynamic at all.

Quote:
Originally Posted by DJEarthQuake View Post
That would put the work back on you to finish the example script with a file instead of hard-coding.
I'll later try adding a configuration file containing the phrases and perhaps decrease the code size, however I don't see how would that improve the execution time in any way.
__________________

Last edited by claudiuhks; 01-07-2024 at 08:58.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 01-08-2024 , 04:32   Re: CS/ CZ: Conditioned Grenade Radio v1.1
Reply With Quote #4

As far as description goes, one still has to read entire thread and scripts to see how it does; what it does. The plugin needs another plugin to utilize this, right? If that is correct please include that expectation in the description. Somebody, all new readers, who are unfamiliar with the work do not know that and should from the start. Installing it will do nothing until another script is added?? If so, that's what I meant with the example script and previous comment. For you it would be easy. Average, who does not want to learn to code, admin impossible to immediately use. It won't improve execution times it is simply being user friendly. Explain on top there is a lot under the hood to get this going and maintained. Compiling a new script each time is a bit pushy and unprofessional. I've only had to use dynamic once and it was 1/10 the amount with like 100x the effects. Starting to explore the benefits again. Suppose it won't hurt anything being a precautionary as you already have had history of trouble from your users unable to find functions when testing with "can't be found".
__________________
DJEarthQuake 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 14:49.


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