Raised This Month: $23 Target: $400
 5% 

[L4D & L4D2] Tank Pass v2.2 [01 Aug 2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
disawar1
AlliedModders Donor
Join Date: Aug 2011
Location: Russian
Plugin ID:
7228
Plugin Version:
2.2
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows the Tank to pass control to another player.
    Old 07-28-2020 , 20:19   [L4D & L4D2] Tank Pass v2.2 [01 Aug 2020]
    Reply With Quote #1

    About:
    Allows the Tank to pass control to another player.

    Features:
    • Pass the Tank (player to player).
    • Confirmation menu for new Tank owner.
    • Flexible configs.
    • Admin menu: Pass the Tank (without confirmation)
    • Admin menu: Takeover the Tank (AI to player)
    • Supports both left 4 dead games.
    • Don't break game behavior.
    • Supports multi-languages.

    Credits:
    Сonsole Variables:

    PHP Code:
    // "Tank Pass plugin version."
    l4d_tank_pass_version
    // "Execute command according convar value on old_tank and new_tank to close 3d party HUD."
    l4d_tank_pass_command "sm_tankhud"
    // "0=Kill the alive player before the Tank pass, 1=Replace the alive player with an infected bot before the Tank pass."
    l4d_tank_pass_replace "1"
    // "0=Allow to pass the Tank when taking any damage, 1=Prevent to pass the Tank when taking any damage."
    l4d_tank_pass_damage "0"
    // "0=Allow to pass the Tank when on fire, 1=Prevent to pass the Tank when on fire."
    l4d_tank_pass_fire "1"
    // "If l4d_tank_pass_fire convar set to 0: 0=Ignite the new Tank when passed, 1=Extinguish the new Tank when passed."
    l4d_tank_pass_extinguish "0"
    // "Sets the Tank passed count according convar value when taking control of the Tank AI. If >1 the tank will be replaced with a bot when the his frustration reaches 0."
    l4d_tank_pass_takeover "1"
    // "0=Off, 1=Display pass command info to the Tank through chat messages."
    l4d_tank_pass_notify "1" 
    Сonsole Commands:
    HTML Code:
    // Player Commands:
    sm_pass/sm_tankpass // Pass the Tank control to another player.
    
    // Admin Commands (ADMFLAG_KICK):
    sm_forcepass <#userid|name> // Force to pass the Tank to target player.
    sm_taketank <#userid|name> // Take control of the Tank AI.
    Plugin Forwards:
    PHP Code:
    /**
     * Called whenever plugin replaces a players tank control with another player
     *
     * @param old_tank    the player who was a tank
     * @param new_tank    a player who will become a new tank
     * @noreturn
     */
    forward void TP_OnTankPass(int old_tankint new_tank); 
    Notes:
    • Multiply Tanks plugins is not supported!
    • sm_pass command is blocked on final stages due issue.

    Plugin Requirements:
    Left 4 DHooks Direct


    Source Code:
    l4d_tank_pass
    l4d_lib.inc
    Grab latest l4d_tank_pass.phrases.txt
    click Save as...

    Changelog:
    06 Aug 2020
    - Updated translation.

    v 2.2 (01 Aug 2020)
    - Blocked sm_pass command on final stages.
    - Updated translations.

    31 July 2020 ~20 views
    - Added hungary translation.

    29 July 2020 ~52 views
    - Released on alliedmods.net.

    v 2.1 (24 July 2020)
    - Added the tank pass/takeover cmds to admin menu.
    - Added more convars.
    - Bug fixes.
    - Phrases grammar fixes.

    v 2.0 (23 July 2020)
    - Updated SourcePawn syntax.
    - left4dhooks migration.
    - Added l4d2 support.
    - Added confirm menu.
    - Added sm_tankpass, sm_tankfpass commands.
    - Removes tank_pass_button convar.

    v 1.1 (14 February 2014)
    - Added TP_OnTankPass forward.
    - Added tank_pass_button convar.

    v 1.0 (somewhere in 2013)
    - Released privately for some l4d1 servers.
    Attached Files
    File Type: smx l4d_tank_pass.smx (13.0 KB, 2 views)
    __________________
    > Contact me in Steam for private works.
    Sourcemod, GitHub, Bitbucket, DeviantArt

    Last edited by disawar1; 08-06-2020 at 13:31. Reason: Removed .zip, added l4d_tank_pass.phrases.txt url
    disawar1 is offline
    KasperH
    Member
    Join Date: Apr 2016
    Location: Hungary
    Old 07-29-2020 , 12:49   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #2

    - Added Hungarian.
    - Fix'd a misspell in phrase6. "did't"
    Attached Files
    File Type: txt l4d_tank_pass.phrases.txt (2.2 KB, 12 views)
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 07-30-2020 , 05:11   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #3

    Quote:
    Originally Posted by KasperH View Post
    - Added Hungarian.
    - Fix'd a misspell in phrase6. "did't"
    Can you create a pull request?
    __________________
    > Contact me in Steam for private works.
    Sourcemod, GitHub, Bitbucket, DeviantArt
    disawar1 is offline
    KasperH
    Member
    Join Date: Apr 2016
    Location: Hungary
    Old 07-30-2020 , 14:35   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #4

    Quote:
    Originally Posted by disawar1 View Post
    Can you create a pull request?
    I tried, hopefully I did it right.
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 07-30-2020 , 20:00   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #5

    Quote:
    Originally Posted by KasperH View Post
    I tried, hopefully I did it right.
    Thanks!
    ------
    Translations were updated!
    __________________
    > Contact me in Steam for private works.
    Sourcemod, GitHub, Bitbucket, DeviantArt

    Last edited by disawar1; 07-30-2020 at 20:01.
    disawar1 is offline
    KasperH
    Member
    Join Date: Apr 2016
    Location: Hungary
    Old 07-31-2020 , 12:18   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #6

    Quote:
    Originally Posted by disawar1 View Post
    Thanks!
    ------
    Translations were updated!
    My thanks!
    __________________

    "I've Got You In My Sights!"
    KasperH is offline
    SkiPlix
    Member
    Join Date: Dec 2016
    Location: Argentina
    Old 07-31-2020 , 15:28   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #7

    Rephrased some stuff in the plugin's translation.txt file.
    &
    Added Spanish translation.

    @disawar1
    Also maybe this is only on my server, but every time a tank spawns, 2 Tanks are created (Total 2 Tanks at the same time).

    Last edited by SkiPlix; 07-31-2020 at 15:29.
    SkiPlix is offline
    Pelee
    Junior Member
    Join Date: May 2020
    Old 08-01-2020 , 08:09   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #8

    Plugin bug:

    In finale, if you pass the tank to a teammate, this counts as a progress for survivor teams and shortly after another tank spawns. Finale such as dark carnival progresses upon tank pass. Game breaking, please look into it

    Request:

    Can you add optional feature which allows us to vote who gets the next tank?

    Such as if there is a tank spawn on the map, a menu should pop up when survivors leaves the saferoom to vote the tank player.

    Last edited by Pelee; 08-01-2020 at 09:17.
    Pelee is offline
    disawar1
    AlliedModders Donor
    Join Date: Aug 2011
    Location: Russian
    Old 08-01-2020 , 12:41   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #9

    Quote:
    Originally Posted by Pelee View Post
    Plugin bug:

    In finale, if you pass the tank to a teammate, this counts as a progress for survivor teams and shortly after another tank spawns. Finale such as dark carnival progresses upon tank pass. Game breaking, please look into it

    Request:

    Can you add optional feature which allows us to vote who gets the next tank?

    Such as if there is a tank spawn on the map, a menu should pop up when survivors leaves the saferoom to vote the tank player.
    Bug were fixed in v2.2. Read notes.
    I'm going to release the Tank vote plugin next week. I need to update the syntax and do other work.

    Quote:
    Originally Posted by SkiPlix View Post
    Rephrased some stuff in the plugin's translation.txt file.
    &
    Added Spanish translation.

    @disawar1
    Also maybe this is only on my server, but every time a tank spawns, 2 Tanks are created (Total 2 Tanks at the same time).
    I use SDK Calls only when you confirm pass menu. Look for the problem elsewhere.
    __________________
    > Contact me in Steam for private works.
    Sourcemod, GitHub, Bitbucket, DeviantArt

    Last edited by disawar1; 08-01-2020 at 13:08.
    disawar1 is offline
    Pelee
    Junior Member
    Join Date: May 2020
    Old 08-01-2020 , 16:32   Re: [L4D & L4D2] Tank Pass
    Reply With Quote #10

    Quote:
    Originally Posted by disawar1 View Post
    Bug were fixed in v2.2. Read notes.
    That only blocks the command, doesn't fix the bug. It would be nice to be able to pass the tank in finale as well, without that bug. However, another solution to this could be the vote tank plugin. Some ideas: Make the vote menu show up in finale once survivor leaves the saferoom or once the finale stage begins and another time menu showing up when the first tank dies so the team can vote the 2nd finale tank and so on.
    Pelee 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 16:30.


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