View Single Post
Author Message
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
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, 2152 views)
File Type: sp Get Plugin or Get Source (l4d2_tankswap.sp - 2350 views - 18.4 KB)
File Type: txt l4d2addresses.txt (23.2 KB, 1738 views)

Last edited by AtomicStryker; 01-28-2017 at 10:21.
AtomicStryker is offline