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

[L4D2] Tank Swap


Post New Thread Reply   
 
Thread Tools Display Modes
Author
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Plugin ID:
1512
Plugin Version:
1.0.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Old 03-08-2010 , 06:32   [L4D2] Tank Swap
    Reply With Quote #1

    Description:

    Allows primary Tanks (the ones the game chooses in first instance) to
    surrender control to their teammates, or admins to take it anytime.


    You can configure it both to work with a button trigger in a timeframe after getting control (default RELOAD, 10 seconds after becoming tank),
    or for the Control Menu to appear for all tanks.



    Unlike any previous Plugin this does not use any workarounds,
    but SDK Calls native L4D2 functions to do the job.
    No more double or disappearing tanks.


    Frustration remains functional - note the primary tank who surrendered control might get it back
    if he is chosen as frustration replacement.


    Commands:


    sm_taketank - allows an admin with the CHEATS flag to grab Tank Control from a human player, at any moment.
    Note doing so will reset frustration. (if tank control was passed once, already, it can now be passed again)



    Convars:


    l4d2_tankswap_version - version number

    l4d2_tankswap_choicetype - 0 - Disabled; 1 - press Button to call Menu; 2 - Menu appears for every Tank

    l4d2_tankswap_timelimit - how long does a primary tank have to press the button after getting the notification.
    If choicetype is 2, he has double this setting seconds to choose in the menu.


    Requirements:


    Left4Downtown Extension

    A Sourcemod build recent enough to support Raw Address Calling(!!)


    Installation:

    Put the .smx in your sourcemod/plugins folder
    Put the .txt in your sourcemod/gamedata folder



    Changelog:

    1.0.0 - public release
    1.0.1 - menu screwup fixing
    1.0.2 - fixed odd stuff happening when admin override command and client control clashed
    1.0.3 - added finale exception (no swapping)
    1.0.4 - fixed undead tank swap, fixed menu memory leak
    1.0.5 - fixed clone handle errors (thanks thresh0ld)
    1.0.6 - fixed recurring Tank Menu attempts failing
    1.0.7 - fixed infinite Tank retries, added Plugin_Stop to one timer
    Attached Files
    File Type: smx l4d2_tankswap.smx (10.1 KB, 2113 views)
    File Type: sp Get Plugin or Get Source (l4d2_tankswap.sp - 2307 views - 18.4 KB)
    File Type: txt l4d2addresses.txt (23.2 KB, 1722 views)

    Last edited by AtomicStryker; 01-28-2017 at 10:21.
    AtomicStryker is offline
    Mr. Zero
    Veteran Member
    Join Date: Jun 2009
    Location: Denmark
    Old 03-09-2010 , 10:47   Re: [L4D2] Tank Swap
    Reply With Quote #2

    Just awesome :o
    Mr. Zero is offline
    thresh0ld
    Senior Member
    Join Date: Sep 2009
    Location: Hell
    Old 03-10-2010 , 01:06   Re: [L4D2] Tank Swap
    Reply With Quote #3

    Nice! Good job! I'm gonna test this when I get home
    thresh0ld is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 03-10-2010 , 14:55   Re: [L4D2] Tank Swap
    Reply With Quote #4

    I may have accidentaly mixed up Vote and Select Menu Callbacks, resulting in excitingly random buttonpress results.
    AtomicStryker is offline
    Cuthbert
    Senior Member
    Join Date: Nov 2009
    Old 03-10-2010 , 17:44   Re: [L4D2] Tank Swap
    Reply With Quote #5

    Nice plugin, thanks.
    Cuthbert is offline
    ku5h
    Member
    Join Date: Feb 2009
    Old 03-11-2010 , 22:49   Re: [L4D2] Tank Swap
    Reply With Quote #6

    cool i should be able to take control of those tanks now that spawn on events and always go ai
    __________________
    ku5h is offline
    GanjaStar
    Senior Member
    Join Date: Jun 2009
    Old 03-12-2010 , 12:37   Re: [L4D2] Tank Swap
    Reply With Quote #7

    Me being tank every map=dream come true
    GanjaStar is offline
    birno
    Senior Member
    Join Date: Mar 2010
    Old 03-13-2010 , 13:27   Re: [L4D2] Tank Swap
    Reply With Quote #8

    Thanks for the plugin, but doesn't work for me:
    Code:
    [SM] Unable to load plugin "l4d2_tankswap.smx": Native "GameConfGetAddress" was not found
    birno is offline
    Hotdog Storm
    Junior Member
    Join Date: Feb 2010
    Old 03-13-2010 , 16:07   Re: [L4D2] Tank Swap
    Reply With Quote #9

    Perhaps if you follow the instructions:

    Put the .smx in your sourcemod/plugins folder
    Put the .txt in your sourcemod/gamedata folder
    Hotdog Storm is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 03-13-2010 , 16:23   Re: [L4D2] Tank Swap
    Reply With Quote #10

    Quote:
    Requirement: A Sourcemod build recent enough to support Raw Address Calling(!!)
    AtomicStryker 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 04:42.


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