L4D2 ONLY
Description
This plugin allows starting finale events with survivors everywhere.
There are two types of ways to unlock finales in vanilla maps:
- Unlocked by a trigger (when all the survivors are touching a specific area).
- Unlocked when all survivors are in a NAV area with the "FINALE" attribute.
I made this mainly because I hate people that stay in saferoom at Parish Bridge map, preventing the rescue event to start.
May be useful for some speedrunner servers.
Changes to finales:- Dead Center / c1m4_atrium - allow calling the elevator button and the finale without all survivors in the elevator, the upper elevator doors will open after the elevator reaches the bottom.
- Dark Carnival / c2m5_concert - allow starting the finale even without all survivors crossing the concert stage entrance door, also keeps it open after starting the finale.
- Swamp Fever / c3m4_plantation - allow starting the finale even without all survivors reaching the finale house, also removes an invisible player block (added by TLS update) after starting the finale.
- Hard Rain / c4m5_milltown_escape - allow starting the finale even with survivors near the saferoom area, also removes an invisible player block (added by TLS update) after starting the finale.
- Parish / c5m5_bridge - allow starting the radio while survivors are in the saferoom.
- Passing / c6m3_port - allow calling the elevator button and the finale without all survivors in the elevator.
- Sacrifice / c7m3_port - allow starting the finale even with survivors near the saferoom area, keeps the first door open after starting the finale.
- No Mercy / c8m5_rooftop - allow starting the finale even without survivors getting down from the rooftop, also removes an invisible player block after starting the finale.
- Crash Course / c9m2_lots - allow starting the finale even without survivors crossing the other side of the finale fence, also removes an invisible player block (added by TLS update) after starting the finale.
- Death Tool / c10m5_houseboat - allow starting the finale even without all survivors reaching the finale house, also removes the TLS rocks spawned in the path to the finale house (near the barrel with fire).
- Dead Air / c11m5_runway - allow starting the finale even with survivors near the safe room area.
- Blood Harvest / c12m5_cornfield - allow starting the finale even without all survivors reaching the cornfield, also removes an invisible player block (added by TLS update) after starting the finale.
- Cold Stream / c13m4_cutthroatcreek - allow starting the finale even with survivors near the safe room area.
- Last Stand / c14m2_lighthouse - allow starting the finale even with survivors near the safe room area, also removes an invisible func brush that enables after starting the finale.
Adding a map to the blacklist prevents the behaviors above.
Features
- Allow adding maps to a blacklist.
- Allow adding maps to a whitelist.
- Allow setting it only on vanilla maps.
Cvars
A configuration file named "
l4d2_unlock_finales.sp.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Prevent the plugin running on these maps.
// Separate by commas (no spaces).
// Empty = none.
// Example: "c1m4_atrium,c2m5_concert", plugin won't run on both maps.
// -
// Default: ""
l4d2_unlock_finales_blacklist_maps ""
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_unlock_finales_enable "1"
// Players with these flags can trigger the finale with players anywhere (doesn't work on all maps).
// Empty = everyone.
// Known values at "\addons\sourcemod\configs\admin_levels.cfg".
// Example: "az", will enable to players with "a" (reservation) or "z" (root) fla
// -
// Default: ""
l4d2_unlock_finales_flags ""
// Allow the plugin only on official (not custom) maps.
// 0 = OFF, 1 = ON.
// Note: Automatically adds official finale maps to the whitelist when ON.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_unlock_finales_official_maps_only "0"
// Allow the plugin run on these maps.
// Separate by commas (no spaces).
// Empty = none.
// Example: "c1m4_atrium,c2m5_concert", plugin will run on both maps.
// -
// Default: ""
l4d2_unlock_finales_whitelist_maps ""
Admin Commands
- sm_print_cvars_l4d2_unlock_finales.sp => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- This plugin may glitch some maps depending on how it was designed. Use the blacklist cvar to prevent the plugin from running on these maps. (also report here if possible)
- Some custom maps may need specific extra coding to work properly. (gonna check on demand)
Known Issues
- There are some reports about this plugin crashing servers using z_scrimmage_sphere 0 cvar. (reported by HarryPotter)
- There are some reports about Tank/Witches not spawning on c10m5_houseboat, [L4D2]Zombie Spawn Fix by sorallll was recommended to fix it by some users.
- Can mess with flow calculation on vs matches. (2nd team) [UNCONFIRMED]
To Do
- Better client activator check on finales that are triggered later with ForceFinaleStart.
Thank you!
- Nescius - for the NAV VScript snippet.
- Derpduck and Orin - for helping me with the Dark Carnival finale map.
- Silvers - for [L4D & L4D2] Left 4 DHooks Direct plugin, his map checker code snippet, all the NavArea natives added and for the idea of activating it only during finale use.
- noto3 - for reporting a bug while playing vs on 2nd team.
- Maur0 - for reporting the TLS rocks blocking the way on Death Tool finale and requesting a client flag cvar.
- SDArt - for requesting a cvar to apply it only on official maps.
- VYRNACH_GAMING - for reporting plugin not removing invisible walls in some maps.
- HarryPotter - for reporting plugin conflict with the z_scrimmage_sphere cvar.
- AsphyxiaJLSA / bullet28 / HarryPotter - for reporting an issue with SI failing to spawn in several tries.
- bullet28 and HarryPotter - for Tank/Witches not spawning on c10m5_houseboat and recommended [L4D2]Zombie Spawn Fix by sorallll to fix it.
- Iizuka07 - for reporting finale not starting on Crash Course.
Related Plugins
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Requirements
Installation
- Put the "l4d2_unlock_finales.sp.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.