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

[L4D2] Tank-on-fire Speed Booster


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarkNoghri
Member
Join Date: Mar 2009
Plugin ID:
1416
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    371 
    Plugin Description:
    Speeds up tank when on fire.
    Old 01-18-2010 , 21:36   [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #1

    This plugin is to help buff the tank in versus gameplay. In campaign mode (at least in L4D), the tank always got a speed buff when he was set on fire. It gave you a choice when playing against a tank. Do we light the tank on fire? He burns out in 30 seconds or so, but now he can catch us. This plugin is so that hopefully, this situation is no longer strictly win-win for the survivors in versus.

    This is as requested over here.

    Thanks to Downtown1 and AtomicStryker, who's code I heavily used for reference (and may have borrowed). Thanks also to Dirka_Dirka.

    Cvars:
    l4d2_tankfire_boost_enable: 1 by default, enables plugin.
    l4d2_tankfire_boost_amount: 1.15 by default. This is a multiplier used on the default tank speed. So at 1.15, he should move 15% faster. Valid range is .5-2.0.
    l4d2_tankfire_warning_enable- Defaults to 0. Setting this to 1 displays a warning message when the first tank per map/round gets set on fire.
    l4d2_tankfire_damage_amount- Defaults to 0. Setting this to 1-15 sets the amount of extra damage the tank does while on fire. Setting it to 0 turns off the extra damage.

    Changelog:
    v1- Initial Release
    v1.01- Tentative multi-tank support. Also, complete rewrite.
    v1.02- Fixed round-end debug error (I think). Also, made disabling by cvar take effect immediately.
    v1.02a- It works again?
    v1.02b- Fixed minor error.
    v1.03- Complete rewrite (with layout liberally borrowed from AtomicStryker's water brake), and hopefully performance increases.
    v1.04a- Added coop enable, warnings, and extra fire damage. Lowered default speed boost to 15%.
    v1.1- Thanks to Dirka_Dirka, code has gone through a thorough revamp, and (hopefully) should behave better if enabled/disabled. The plugin is now enabled in all gamemodes. If you want it disabled in some modes, see here.

    Notes:
    This should work in L4D, as all events exist there as well.
    I'm rehooking player_hurt for the extra fire damage on tank punches. Please let me know if there are performance hits.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_tankonfire.sp - 9182 views - 9.7 KB)

    Last edited by DarkNoghri; 05-22-2010 at 23:18.
    DarkNoghri is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 01-18-2010 , 22:36   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #2

    Does zombie_ignited get fired every second?
    Downtown1 is offline
    DarkNoghri
    Member
    Join Date: Mar 2009
    Old 01-18-2010 , 23:40   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #3

    Multiple times per second, as far as I can tell.
    DarkNoghri is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 01-19-2010 , 03:29   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #4

    Has this support for multi tanks? If 2 tanks would spawn at the same time, would both run faster on fire?
    Visual77 is offline
    DarkNoghri
    Member
    Join Date: Mar 2009
    Old 01-19-2010 , 04:03   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #5

    The way this is currently set up, if one tank was set on fire, all tanks should run faster. All I'm doing is changing the z_tank_speed_vs cvar, or whatever it's called. But if you throw multiple tanks in there, it's quite possible things could get awkward, with tanks getting ignited and extinguished at different times.

    There may be some way to do this on a per-tank basis, but I'm not sure how.
    DarkNoghri is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 01-19-2010 , 04:08   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #6

    I see. Guess I'll have to wait for something more "per-tank basis" as you said.
    Nice work on the plugin though.
    Visual77 is offline
    DarkNoghri
    Member
    Join Date: Mar 2009
    Old 01-19-2010 , 04:32   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #7

    I'll see what I can do.
    DarkNoghri is offline
    DarkNoghri
    Member
    Join Date: Mar 2009
    Old 01-19-2010 , 21:22   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #8

    I have tentatively implemented multi-tank support. Please let me know if there are issues, especially after teamswaps, disconnects, and tank frustration. Also, if people are getting slowed down properly after extinguishing themselves in water, that would be useful to know as well.

    It appeared to be working with what limited testing I was able to do.
    DarkNoghri is offline
    Big Myke
    Senior Member
    Join Date: Jan 2009
    Location: Grain Belt, USA
    Old 01-19-2010 , 21:57   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #9

    I will load this plugin into my server. Thanks.
    __________________
    Successful Pluggins that I've Requested.
    [L4D2]Blind Luck | [L4D2]Laser Sight Crosshair Removal
    Big Myke is offline
    Visual77
    Veteran Member
    Join Date: Jan 2009
    Old 01-20-2010 , 16:51   Re: [L4D2] Tank-on-fire Speed Booster
    Reply With Quote #10

    Quote:
    Originally Posted by DarkNoghri View Post
    I have tentatively implemented multi-tank support. Please let me know if there are issues, especially after teamswaps, disconnects, and tank frustration. Also, if people are getting slowed down properly after extinguishing themselves in water, that would be useful to know as well.

    It appeared to be working with what limited testing I was able to do.
    Thanks, I'll test it first and report back
    Visual77 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 11:27.


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