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

[L4D & L4D2] Tank Takeover (1.4)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
mi123645
Veteran Member
Join Date: Feb 2009
Plugin ID:
1173
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows an admin to take over the tank, or a player to donate the tank to another player
    Unapprover:
    Reason for Unapproving:
    Plugin does not work without a second tank appearing
    Old 09-21-2009 , 16:56   [L4D & L4D2] Tank Takeover (1.4)
    Reply With Quote #1

    A lot of people requested this so I decided to give it a go. Admins can take over a tank on the field with !tt or a player can donate the tank with !dt.

    A menu will pop up, listing all tanks that can be taken over if !tt was used, or will list all eligible players if !dt was used.

    Cvars:

    l4d_tanktakeover_message - If 1, the plugin will display a message to the player tanks that spawn

    Changelog:

    Version 1.4
    * - Added a timer to the Gamemode ConVarHook to ensure compatitbilty with other gamemode changing plugins
    * - Changed message giving the wrong command info
    * - Changed the way clients were selected for the tank

    Version 1.3
    * - Redone tank kicking code
    * - Redone tank health fix
    * - Fixed bug allowing players to donate to or takeover themselves
    * - Few optimizations here and there
    * - L4D2 version added

    Version 1.2
    * - Fixed spelling errors and added additional comments in the code
    * - Added detection for admincheats
    * - Added a menu to select who to take over or donate the tank to
    * - Added flashlight to spawning tank if the gamemode is coop/survival
    * - Changed model detections into class detections

    Version 1.1
    * - Fixed Message not showing to players
    * - Fixed a bug where the tank could be taken over or donated when it had died

    Version 1.0
    * - Initial release.
    Attached Files
    File Type: zip l4dtanktakeover.zip (15.6 KB, 662 views)
    File Type: zip l4d2tanktakeover.zip (15.9 KB, 1091 views)

    Last edited by mi123645; 12-01-2009 at 17:34. Reason: Uploaded 1.4
    mi123645 is offline
    savagekid
    Senior Member
    Join Date: Apr 2009
    Location: Canada
    Old 09-21-2009 , 17:07   Re: [L4D] Tank Takeover
    Reply With Quote #2

    Would this reset the rage meter? I can just forsee a team consantly giving up their tank before their rage meter runs out and totally refill it when the next person gets it. This would cause one team to be in control of the tank for theoretically forever. My suggestion is to add a limit to the number of times you're able to transfer it.
    __________________

    Use Coupon Code "GLOBAL50" To Get 50% Off Every Month.
    savagekid is offline
    Send a message via MSN to savagekid
    mi123645
    Veteran Member
    Join Date: Feb 2009
    Old 09-21-2009 , 17:20   Re: [L4D] Tank Takeover
    Reply With Quote #3

    Quote:
    Originally Posted by savagekid View Post
    Would this reset the rage meter? I can just forsee a team consantly giving up their tank before their rage meter runs out and totally refill it when the next person gets it. This would cause one team to be in control of the tank for theoretically forever. My suggestion is to add a limit to the number of times you're able to transfer it.
    There is a limit to how many times it can be transferred.
    mi123645 is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 09-21-2009 , 18:35   Re: [L4D] Tank Takeover
    Reply With Quote #4

    Very nice. Just redo the Announcement like i wrote you in Steamchat ^^
    AtomicStryker is offline
    egor1908
    Veteran Member
    Join Date: Sep 2009
    Old 09-22-2009 , 01:55   Re: [L4D] Tank Takeover
    Reply With Quote #5

    the rage meter fills up every time, you change, right?
    egor1908 is offline
    mi123645
    Veteran Member
    Join Date: Feb 2009
    Old 09-22-2009 , 02:28   Re: [L4D] Tank Takeover
    Reply With Quote #6

    Quote:
    Originally Posted by egor1908 View Post
    the rage meter fills up every time, you change, right?
    Yes, it would royally suck if someone donated when the rage meter was almost gone and it didn't fill up.
    mi123645 is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 09-22-2009 , 03:47   Re: [L4D] Tank Takeover
    Reply With Quote #7

    You're still printing the announcement to the initial Tank BOT
    AtomicStryker is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 09-22-2009 , 04:25   Re: [L4D] Tank Takeover
    Reply With Quote #8

    Omg, finally....i cant wait to peek into the code
    __________________
    olj is offline
    olj
    Veteran Member
    Join Date: Jun 2009
    Old 09-22-2009 , 04:58   Re: [L4D] Tank Takeover
    Reply With Quote #9

    I looked in code, its really nice workaround, actually what i was thinking about (creating new tank with same hp and position, and somehow forcing client to take control of it).

    The problem I was thinking about is how to force certain client to get the tank.

    But it seems I cant figure it out from your code , maybe I'm just dumb. How you actually making someone to get the tank once it spawned?

    And another question - using this in finale will screw tank spawning system and possible cause finale vehicle to appear faster. Am i right??
    __________________
    olj is offline
    Frus
    Senior Member
    Join Date: Aug 2009
    Old 09-22-2009 , 06:00   Re: [L4D] Tank Takeover
    Reply With Quote #10

    Quote:
    Originally Posted by olj View Post
    But it seems I cant figure it out from your code , maybe I'm just dumb. How you actually making someone to get the tank once it spawned?
    I just scimmed over it, but I think he is falsifying all the other infected to make it seem like they are spawned to the z_spawn algorithm, so z_spawn thinks the only dead player is the person you want to have control of the tank.
    Frus 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 10:42.


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