AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Tank Swap (https://forums.alliedmods.net/showthread.php?t=120807)

AtomicStryker 03-08-2010 06:32

[L4D2] Tank Swap
 
22 Attachment(s)
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

Mr. Zero 03-09-2010 10:47

Re: [L4D2] Tank Swap
 
Just awesome :o

thresh0ld 03-10-2010 01:06

Re: [L4D2] Tank Swap
 
Nice! Good job! I'm gonna test this when I get home :)

AtomicStryker 03-10-2010 14:55

Re: [L4D2] Tank Swap
 
I may have accidentaly mixed up Vote and Select Menu Callbacks, resulting in excitingly random buttonpress results.

Cuthbert 03-10-2010 17:44

Re: [L4D2] Tank Swap
 
Nice plugin, thanks.

ku5h 03-11-2010 22:49

Re: [L4D2] Tank Swap
 
cool i should be able to take control of those tanks now that spawn on events and always go ai

GanjaStar 03-12-2010 12:37

Re: [L4D2] Tank Swap
 
Me being tank every map=dream come true :twisted:

birno 03-13-2010 13:27

Re: [L4D2] Tank Swap
 
Thanks for the plugin, but doesn't work for me:
Code:

[SM] Unable to load plugin "l4d2_tankswap.smx": Native "GameConfGetAddress" was not found

Hotdog Storm 03-13-2010 16:07

Re: [L4D2] Tank Swap
 
Perhaps if you follow the instructions:

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

AtomicStryker 03-13-2010 16:23

Re: [L4D2] Tank Swap
 
Quote:

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


All times are GMT -4. The time now is 01:24.

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