Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Special Infected Burn Duration (1.4) [11-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6802
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Control flame duration for the Tank, Witch and Special Infected.
    Old 11-11-2019 , 10:49   [L4D & L4D2] Special Infected Burn Duration (1.4) [11-Dec-2022]
    Reply With Quote #1

    About:
    • For years I thought it was strange a Tank or infected could catch fire and indefinitely burn to death.
    • This plugin changes that by extinguishing players after a specified amount of time.


    Cvars:

    Saved to l4d_burning_duration.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // Which Special Infected to affect: 1=Smoker, 2=Boomer, 4=Hunter, 8=Spitter, 16=Jockey, 32=Charger, 63=All. Add numbers together
    l4d_burn_duration_infected "63"

    // 0.0=Game default. How long Special Infected stay ignited.
    l4d_burn_duration_special "1.0"

    // 0.0=Game default. How long the Tank stays ignited.
    l4d_burn_duration_tank "3.0"

    // 0.0=Game default. How long the Witch stays ignited.
    l4d_burn_duration_witch "4.0"

    // 0=Plugin off, 1=Plugin on.
    l4d_burn_duration_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_burn_duration_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_burn_duration_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_burn_duration_modes_tog "0"

    // Burn Duration plugin version.
    l4d_burn_duration_version 


    Changes:
    Code:
    1.4 (11-Dec-2022)
        - Changes to fix compile warnings on SourceMod 1.11.
    
    1.3 (04-Jun-2020)
        - Fixed the plugin not always working 100% of the time.
        - Fixed multiple hooks over multiple spawns and not unhooking when dead or plugin turned off.
    
    1.2 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.1 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.0 (11-Nov-2019)
        - Initial release.


    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_burning_duration.sp - 284 views - 12.6 KB)
    __________________

    Last edited by Silvers; 12-10-2022 at 19:39.
    Silvers is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 11-12-2019 , 02:39   Re: [L4D & L4D2] Special Infected Burn Duration (1.0) [11-Nov-2019]
    Reply With Quote #2

    It would be great to make dealed damage control function while infected fired.
    __________________
    Sorry for my pure English...
    ReCreator is offline
    strikeraot
    Senior Member
    Join Date: Dec 2018
    Location: Viet Nam
    Old 01-11-2020 , 22:08   Re: [L4D & L4D2] Special Infected Burn Duration (1.0) [11-Nov-2019]
    Reply With Quote #3

    l4d_burn_duration_tank "3.0" means tank burn duration 3seconds? I don't understand what value means o_o
    strikeraot is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 01-12-2020 , 03:52   Re: [L4D & L4D2] Special Infected Burn Duration (1.0) [11-Nov-2019]
    Reply With Quote #4

    Quote:
    Originally Posted by strikeraot View Post
    l4d_burn_duration_tank "3.0" means tank burn duration 3seconds? I don't understand what value means o_o
    Yes
    __________________

    Last edited by Silvers; 01-12-2020 at 05:58.
    Silvers is offline
    timonenluca
    Member
    Join Date: Apr 2020
    Location: Europe
    Old 06-01-2020 , 02:48   Re: [L4D & L4D2] Special Infected Burn Duration (1.2) [10-May-2020]
    Reply With Quote #5

    The web compiler does not seem to compile the plugin. Could you maybe attach a .smx compiled version to the post?

    Best regards , timonenluca
    timonenluca is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 06-01-2020 , 03:57   Re: [L4D & L4D2] Special Infected Burn Duration (1.2) [10-May-2020]
    Reply With Quote #6

    Quote:
    Originally Posted by timonenluca View Post
    The web compiler does not seem to compile the plugin. Could you maybe attach a .smx compiled version to the post?

    Best regards , timonenluca
    The compiler is set to SM 1.1 version. Silvers just needs to set it to 1.10. No need to attach a pre-compiled version.
    __________________
    Psyk0tik is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-01-2020 , 10:11   Re: [L4D & L4D2] Special Infected Burn Duration (1.2) [10-May-2020]
    Reply With Quote #7

    Thanks, fixed. I should check my other threads for this issue since last mass update.-Done, only 1 other had to be fixed.
    __________________

    Last edited by Silvers; 06-02-2020 at 07:20.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-04-2020 , 10:14   Re: [L4D & L4D2] Special Infected Burn Duration (1.3) [04-Jun-2020]
    Reply With Quote #8

    Code:
    1.3 (04-Jun-2020)
        - Fixed the plugin not always working 100% of the time.
        - Fixed multiple hooks over multiple spawns and not unhooking when dead or plugin turned off.
    __________________
    Silvers 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 03:27.


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