Raised This Month: $12 Target: $400
 3% 

[L4D2] Unlock Finales [v1.0.7 | 23-February-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7706
Plugin Version:
1.0.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
32 
Plugin Description:
Allow starting finale events with survivors everywhere
Old 06-28-2021 , 21:52   [L4D2] Unlock Finales [v1.0.7 | 23-February-2024]
Reply With Quote #1

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

Spoiler


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.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_unlock_finales.sp - 88 views - 36.4 KB)
__________________

Last edited by Marttt; 02-23-2024 at 13:31.
Marttt is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 06-28-2021 , 23:48   Re: [L4D2] Unlock Finales [v1.0.0 | 28-June-2021]
Reply With Quote #2

h4x <3
foxhound27 is offline
noto3
Member
Join Date: Jan 2021
Old 06-29-2021 , 13:29   Re: [L4D2] Unlock Finales [v1.0.0 | 28-June-2021]
Reply With Quote #3

A bug where the infected team is not able to spawn. Happens on team switch in the finale. First infected team can spawn normally when survivors leave the safe room, the second team has to wait for the finale to start
noto3 is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 06-29-2021 , 15:58   Re: [L4D2] Unlock Finales [v1.0.0 | 28-June-2021]
Reply With Quote #4

Marttt Great plugin! This is just like the original l4d1 where you could start the final event on the roof of No Mercy when there is a player on the roof without having gone down to the final event area.

I have tested and it works perfect, even in Dark Carnival without any errors. Obviously the same error as noto3 said. And I also saw that in the Death Toll campaign, the TLS team have put a rock that prevents us from returning to the saferoom. This can be a problem when someone is too far behind and if you start the final event they will be trapped and will not be able to go to the rescue vehicle.

And one last. Is it possible to add in this plugin or perhaps it can be created that allows activating the final event or creating only the Admin or with the largest flag? Because this can be useful when the Admin or whoever has access can activate the event and not a random people who want to rush without us all being prepared. If possible? And thanks for the plugin!

Last edited by Maur0; 06-29-2021 at 16:00.
Maur0 is offline
Tank Rush
Senior Member
Join Date: May 2019
Location: Argentina
Old 06-29-2021 , 19:27   Re: [L4D2] Unlock Finales [v1.0.0 | 28-June-2021]
Reply With Quote #5

This is great! i will use it on my server
__________________
Sorry i don't speak english very well

--->My name is Source and I'm on Steam<---
Discord: Source#9382
Tank Rush is offline
SDArt
Member
Join Date: Aug 2019
Old 06-30-2021 , 01:21   Re: [L4D2] Unlock Finales [v1.0.0 | 28-June-2021]
Reply With Quote #6

This plugin is great but i'm not sure if it's the best to left it enable on custom maps it could bug/crash the server it happened to me with other plugins before, can it be disabled for all custom maps at once?
SDArt is offline
Maur0
Senior Member
Join Date: Aug 2020
Old 06-30-2021 , 13:48   Re: [L4D2] Unlock Finales [v1.0.0 | 28-June-2021]
Reply With Quote #7

Quote:
Originally Posted by Marttt View Post
Thanks for reporting noto3 and Maur0. There is an issue with versus (2nd team) like you guys said.
I already found a fix but still need some days to release it cause I don't have much free time nowadays, just wait.
About the rocks on Death Tool I already removed it either so I will include it in the next release.
About the flag I don't think it's possible to do because the way of the game works (ALL or NONE).
Perfect. Thank you very much Marttt, obviously we wait when you have time available, take your time.

And good with the Admin flag, it just occurred to me to give as only access to start the Admin. But yes, I knew that it is complicated and it is very limited to do something like that. But hey, thanks anyway.
Maur0 is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 07-01-2021 , 22:19   Re: [L4D2] Unlock Finales [v1.0.1 | 01-July-2021]
Reply With Quote #8

Plugin updated (1.0.1)

I hope it works on vs properly now.

Code:
1.0.1 (01-July-2021)
    - Now requires left4dhooks.
    - Fixed a bug where SI couldn't spawn before finale starts on vs (2nd team). (thanks "noto3" for reporting)
    - Removed TLS rocks blocking the way on Death Tool finale. (thanks "Maur0" for reporting).
    - Added cvar to only apply on vanilla (not custom) maps. (thanks "SDArt" for requesting)
__________________

Last edited by Marttt; 07-01-2021 at 22:24.
Marttt is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 07-06-2021 , 11:58   Re: [L4D2] Unlock Finales [v1.0.1 | 01-July-2021]
Reply With Quote #9

but how to understand when it starts to operate the radius timer?
Voevoda is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 07-06-2021 , 12:40   Re: [L4D2] Unlock Finales [v1.0.1 | 01-July-2021]
Reply With Quote #10

I don't understand how the plugin works
when the final unlock starts?
Voevoda 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 08:30.


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