
Added cvar "l4d2_fireworks_convert_gas" to convert a percentage of gascans into firework crates. Added cvar "l4d2_fireworks_convert_propane" to convert a percentage of propane tanks into firework crates. Added cvar "l4d2_fireworks_convert_oxygen" to convert a percentage of oxygen tanks into firework crates. Added cvar "l4d2_fireworks_allow_propane" to display fireworks on propane tank explosions. Added cvar "l4d2_fireworks_allow_oxygen" to display fireworks on oxygen tank explosions. Added cvar "l4d2_fireworks_allow_gas" to display fireworks on gascan explosions. Added admin command "sm_fw" or "sm_fireworks" to spawn fireworks on crosshair position. Added cvar "l4d2_fireworks_chase" - which controls how long zombies are attracted to firework explosions. Changed cvar default for "l4d2_fireworks_allow_gas" from 1 to 0.

Changed cvar default for "l4d2_fireworks_chase" from 10 to 15. Changed cvar defaults for "l4d2_fireworks_convert_propane", "l4d2_fireworks_convert_oxygen", "l4d2_fireworks_convert_gas" to "50". Added 6 second delay after the first player spawns or round_start to convert items to firework crates. Added check to not spawn fireworks when GetEntit圜ount reaches MAX_ENTITIES. Added check for scavenge items to disable converting of gascans. Removed max entity check and related error logging. Fixed a bug which could cause a server to lock up. Optimized the plugin by hooking cvar changes. Added cvar "l4d2_fireworks_modes_tog" same as above. Added cvar "l4d2_fireworks_modes_off" same as above. Added cvar "l4d2_fireworks_modes" to control which game modes the plugin works in. Fixed "l4d2_fireworks_modes_tog" was never activated. Converted plugin source to the latest syntax utilizing methodmaps. Changed PrecacheParticle function method. *ĝescrp :Ědds fireworks to the firework crate explosions. If you would like to share your own revisions of this plugin, please rename the files so that there is no confusion for users./*= Unload Late Model Precacher by typing "sm plugins unload l4d_late_model_precacher" in the server console. Move "l4d_late_model_precacher.smx" to the "plugins/disabled" folder.Ģ. (Only for upgrading to newer versions.)ġ. Delete "l4d_late_model_precacher.txt" from the "addons/sourcemod/gamedata" folder.Ĥ. Delete "l4d_late_model_precacher.smx" from the "addons/sourcemod/plugins" folder.ģ. Delete "l4d_late_model_precacher.sp" from the "addons/sourcemod/scripting" folder.Ģ. Place "l4d_late_model_precacher.sp" in the "addons/sourcemod/scripting" folder.ġ. Place "l4d_late_model_precacher.smx" in the "addons/sourcemod/plugins" folder.Ĥ. Place "l4d_late_model_precacher.txt" in the "addons/sourcemod/gamedata" folder.ģ. Delete files from old versions of the plugin.Ģ.

Blocks the game from setting an entity's model if the model failed to be precached.ġ. Precaches any model that is not precached prior to being used.Ģ. MAKE SURE YOU MEET ALL THE REQUIREMENTS AND FOLLOW THE INSTALLATION GUIDE PROPERLY.ġ. If you get errors from SourceMod itself, that is your problem, not mine.Ĥ. I will not help you with installing or troubleshooting problems on your part.ģ. I do not provide support for listen/local servers but the plugin should still work properly on them.Ģ. Knowledge of installing SourceMod plugins.ġ.


SourceMod Team - For continually updating/improving SourceMod.ģ. Įpz/epzminion - For the idea and solution. L 04 / 11 / 2022 - 13 : 15 : 48 : UTIL_SetModel : Model models / props_unique / spawn_apartment / coffeeammo. When a model is late-precached, players will experience a stutter (more obvious on low-end computers), so it's best to make sure that plugins utilizing models properly precache them inside OnMapStart(). If this plugin is detecting a lot of unprecached models on your server on a regular basis, there may be severe underlying issues with your server that need to be addressed.ĭo not use this plugin as a "global precacher" for models. If a model cannot be precached, this plugin will block UTIL_SetModel and the entity will (probably) just be invisible or be a giant ERROR sign.ĭisclaimer: This plugin only helps prevent crashes related to unprecached models ( UTIL_SetModel crashes). The crash can occur even on completely vanilla servers, but can occur more frequently on modded servers that run plugins utilizing models. This plugin addresses the rare occurrence of a well-known UTIL_SetModel crash that has existed for as long as both L4D games have been around. Uninstalling/Upgrading to Newer VersionsĬatches unprecached models and tries to precache them to prevent crashes.
