View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
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 - 293 views - 12.6 KB)
__________________

Last edited by Silvers; 12-10-2022 at 19:39.
Silvers is offline