Raised This Month: $32 Target: $400
 8% 

[L4D1 & L4D2] Tank Rock Nice Shot [v1.0.2 | 19-December-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7885
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    13 
    Plugin Description:
    Survivors emit a nice shot voice line when a teammate destroys a Tank rock
    Old 12-18-2021 , 11:34   [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.2 | 19-December-2021]
    Reply With Quote #1

    Description

    Survivors emit a nice shot voice line when a teammate destroys a Tank rock.

    Features
    • Allow setting a chance to teammates emit the voice line.
    • Allow setting a chance to the attacker laugh.

    Cvars

    A configuration file named "l4d_tank_rock_nice_shot.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Chance (%) to a teammate emit a nice shot voice line.
    // 0 = OFF.
    // -
    // Default: "100"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_tank_rock_nice_shot_chance "100"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_tank_rock_nice_shot_enable "1"

    // Chance (%) to the attacker laugh when the rock is destroyed.
    // 0 = OFF.
    // -
    // Default: "100"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d_tank_rock_nice_shot_laugh_chance "100" 
    Admin Commands
    • sm_print_cvars_l4d_tank_rock_nice_shot => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • The voice lines are emitted from the client position, if a client is far you may not hear it.

    Thank you!
    • ZBzibing - for requesting.
    • KadabraZz - for requesting laugh to the attacker.
    • finishlast - for reporting a missing check for dead players.

    Conflicting Plugins

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d_tank_rock_nice_shot.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_tank_rock_nice_shot.sp - 319 views - 36.6 KB)
    __________________

    Last edited by Marttt; 01-25-2023 at 21:31.
    Marttt is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 12-18-2021 , 12:49   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.0 | 18-December-2021]
    Reply With Quote #2

    Thanks to the author for making this plugin.

    I tested it in L4D1, and when the tank burst, there was no sound. I tested all the characters

    I did not install this plugin.[L4D & L4D2] Tank Rock Lag Compensation
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:

    Last edited by ZBzibing; 12-18-2021 at 12:50.
    ZBzibing is offline
    finishlast
    Senior Member
    Join Date: Nov 2018
    Location: In Reno with the vitamin
    Old 12-18-2021 , 14:25   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.0 | 18-December-2021]
    Reply With Quote #3

    It is working for me.

    Only thing I would change if the cheer from dead people.
    Or play the sound accorindly who shot, that way no need to check for dead players.

    The volume is low, mb you just didnt hear the sound ZBzibing.
    __________________
    finishlast is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 12-18-2021 , 21:21   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.1 | 19-December-2021]
    Reply With Quote #4

    @ZBzibing

    Notes
    • The voice lines are emitted from the client position, if a client is far you may not hear it.
    __________________

    Last edited by Marttt; 12-19-2021 at 19:16.
    Marttt is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 12-19-2021 , 03:44   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.1 | 19-December-2021]
    Reply With Quote #5

    test version 1.0.1

    In the L4D1 test, there is indeed no sound.
    Test Methods:
    1. Fixed the tank only throwing stones
    2. Kill the bots, leaving me alone
    3. Look for a quiet environment without background music
    4. Adjust the maximum volume
    5. Blast the stone 10 times for each character
    6. Change weapons and try to blast the stones
    I don’t know how to test it.
    Code:
    SV_StartSound: player/survivor/voice/namvet/laughter02.wav not precached (0)
    SV_StartSound: player/survivor/voice/namvet/laughter01.wav not precached (0)
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 12-19-2021 , 07:11   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.1 | 19-December-2021]
    Reply With Quote #6

    Code:
    2. Kill the bots, leaving me alone
    If you are playing alone probably you won't hear the other clients saying "Nice Shot"
    Try removing all other plugins and running this one as stand-alone just to test.
    Btw I'm testing with English audio files, may be a problem with other languages missing the audio (or empty).

    I added a precache sound and increased the sound level in the new version, check if it works now.
    __________________

    Last edited by Marttt; 12-19-2021 at 09:35.
    Marttt is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 12-20-2021 , 01:40   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.1 | 19-December-2021]
    Reply With Quote #7

    Quote:
    Originally Posted by Marttt View Post
    Code:
    2. Kill the bots, leaving me alone
    If you are playing alone probably you won't hear the other clients saying "Nice Shot"
    Try removing all other plugins and running this one as stand-alone just to test.
    Btw I'm testing with English audio files, may be a problem with other languages missing the audio (or empty).

    I added a precache sound and increased the sound level in the new version, check if it works now.
    Did I understand it wrong?
    His function is, when I destroy the stone, other people will make a sound?

    My understanding is:
    If my character is Zoey, destroy the stone, Zoey will make a sound.
    If I were Bill, and I destroyed the stone, Bill would make a sound.
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 12-20-2021 , 05:39   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.2 | 19-December-2021]
    Reply With Quote #8

    Quote:
    Did I understand it wrong?
    Maybe I understand it wrong, I don't see a point in yourself saying "Nice shot".

    You can just remove this part below for the plugin and will work as you want. (I won't change it)

    PHP Code:
            if (client == attacker)
                continue; 
    Anyway, this is supposed to be a simple plugin, try reading the main post again to understand what it does.
    __________________

    Last edited by Marttt; 12-20-2021 at 05:40.
    Marttt is offline
    ZBzibing
    Senior Member
    Join Date: Dec 2012
    Old 12-21-2021 , 12:06   Re: [L4D1 & L4D2] Tank Rock Nice Shot [v1.0.2 | 19-December-2021]
    Reply With Quote #9

    Quote:
    Originally Posted by Marttt View Post
    Maybe I understand it wrong, I don't see a point in yourself saying "Nice shot".

    You can just remove this part below for the plugin and will work as you want. (I won't change it)

    PHP Code:
            if (client == attacker)
                continue; 
    Anyway, this is supposed to be a simple plugin, try reading the main post again to understand what it does.

    It's not your problem. My language must be machine-translated, and he may not be able to accurately express it. I have tested it and it is great! Thank you for your update.
    __________________
    Please forgive, If I'm not describing it accurately. I use google translate
    Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
    ZBzibing 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 19:17.


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