Raised This Month: $9 Target: $400
 2% 

[L4D & L4D2] Special Infected Burn Duration (1.3) [04-Jun-2020]


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.3
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Control flame duration for the Tank, Witch and Special Infected.
    Old 11-11-2019 , 11:49   [L4D & L4D2] Special Infected Burn Duration (1.3) [04-Jun-2020]
    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.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 - 491 views - 11.8 KB)
    __________________

    Last edited by Silvers; 06-04-2020 at 11:14.
    Silvers is offline
    ReCreator
    Member
    Join Date: Nov 2017
    Location: Ukraine,Kyiv
    Old 11-12-2019 , 03: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 , 23: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 , 04: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 06:58.
    Silvers is offline
    timonenluca
    Member
    Join Date: Apr 2020
    Location: Europe
    Old 06-01-2020 , 03: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
    AlliedModders Donor
    Join Date: May 2012
    Location: Homeless
    Old 06-01-2020 , 04: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.
    __________________
    AFK like JFK
    --
    Donate to Motivate
    --
    Get latest L4D/L4D2 gamedata signatures here.
    --
    PM me if you need help with finding signatures and/or offsets in the following games: L4D1&2/CSGO/TF2/NMRIH/INS/DODS/CSS/HL2DM
    Psyk0tik is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-01-2020 , 11: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 08:20.
    Silvers is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 06-04-2020 , 11: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 19:01.


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