Raised This Month: $32 Target: $400
 8% 

[L4D2] Boss Spawn (1.3.0)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Plugin ID:
7049
Plugin Version:
1.3.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Spawn bosses(Tank/Witch) depending on the progress of the map
Old 04-18-2020 , 17:56   [L4D2] Boss Spawn (1.3.0)
Reply With Quote #1

Spawns a certain amount of Tanks and Witches depending on the progress of the survivors on the map. But the limit of these simultaneously is restricted by the Director Variables.

Plugin inspired by [L4D2] Tank By Threat

Recommendations


Cvars:
PHP Code:
// 0:Disable, 1:Enable Plugin
// -
// Default: "1"
boss_spawn "1"

// Set interval time check to spawn
// -
// Default: "0.5"
// Minimum: "0.100000"
boss_spawn_interval "0.5"

// 0:Set distribute spawning points evenly between each, 1:Set random range between spawning points
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
boss_spawn_range_random "1"

// Setting chance (0-100)% to spawn Tanks
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_tanks_chance "100"

// Setting chance (0-100)% to spawn Witches
// -
// Default: "50"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_witches_chance "100"

// Set Tanks to spawn simultaneously
// -
// Default: "1"
boss_spawn_tanks "1"

// Set max random Tanks to spawn simultaneously, 0:Disable Random value
// -
// Default: "3"
boss_spawn_tanks_rng "3"

// Set Witches to spawn simultaneously
// -
// Default: "1"
boss_spawn_witches "1"

// Set max random Witches to spawn simultaneously, 0:Disable Random value
// -
// Default: "3"
boss_spawn_witches_rng "3"

// Set total Tanks to spawn on map
// -
// Default: "1"
boss_spawn_total_tanks "1"

// Set max random value total Tanks on map, 0:Disable Random value
// -
// Default: "3"
boss_spawn_total_tanks_rng "3"

// Set total Witches to spawn on map
// -
// Default: "1"
boss_spawn_total_witches "1"

// Set max random value total Witches on map, 0:Disable Random value
// -
// Default: "3"
boss_spawn_total_witches_rng "3"

// 0:Check any Tanks spawned on map, 1:Check only boss spawn Tanks
// -
// Default: "0"
boss_spawn_check_tanks "0"

// 0:Check any Witches spawned on map, 1:Check only boss spawn Witches
// -
// Default: "0"
boss_spawn_check_witches "0"

// 0:Disable Tanks in first map, 1:Allow Tanks in first map
// -
// Default: "1"
boss_spawn_start_tanks "1"

// 0:Disable Witches in first map, 1:Allow Witches in first map
// -
// Default: "1"
boss_spawn_start_witches "1"

// 0:Disable tanks in finale map, 1:Allow before finale starts, 2:Allow after finale starts, 3:Allow all finale map
// -
// Default: "0"
boss_spawn_finale_tanks "0"

// 0:Disable witches in finale map, 1:Allow before finale starts, 2: Allow after finale starts, 3:Allow all finale map
// -
// Default: "0"
boss_spawn_finale_witches "0"

// Set progress (0-100)% min of the distance map to can spawn Tank
// -
// Default: "0.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_range_min_tank "0.0"

// Set progress (0-100)% max of the distance map to can spawn Tank
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_range_max_tank "100.0"

// Set progress (0-100)% min of the distance map to can spawn Witch
// -
// Default: "0.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_range_min_witch "0.0"

// Set progress (0-100)% max of the distance map to can spawn Witch
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_range_max_witch "100.0" 
Requirements
[L4D & L4D2] Left 4 DHooks Direct
Changelog


credits
Attached Files
File Type: smx l4d2_boss_spawn.smx (8.8 KB, 712 views)
File Type: sp Get Plugin or Get Source (l4d2_boss_spawn.sp - 578 views - 17.5 KB)

Last edited by xZk; 10-19-2021 at 14:47. Reason: v1.3.0
xZk is offline
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 04-18-2020 , 19:52   Re: [L4D2] Boss Spawn
Reply With Quote #2

Quote:
Originally Posted by xZk View Post
// Set flow percent max of map to can spawn Tank
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_tank_flow_max "100.0"

// Set flow percent min of map to can spawn Tank
// -
// Default: "25.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_tank_flow_min "25.0"

// Set flow percent max of map to can spawn Witch
// -
// Default: "100.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_witch_flow_max "100.0"

// Set flow percent min of map to can spawn Witch
// -
// Default: "5.0"
// Minimum: "0.000000"
// Maximum: "100.000000"
boss_spawn_witch_flow_min "5.0"
But if you put for example, the minimum value at 100% and the maximum at 100% (tanks and / or witch).
This would not generate a bug?
Tonblader is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-18-2020 , 19:56   Re: [L4D2] Boss Spawn
Reply With Quote #3

It's flow distance, so "boss_spawn_witch_flow_max" "100" means Tank can spawn when players reach the saferoom. If you set minimum to 100% also then the Tank will only spawn when they reach the saferoom. Recommend not putting it so high.
__________________

Last edited by Silvers; 04-18-2020 at 19:57.
Silvers is offline
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 04-18-2020 , 23:39   Re: [L4D2] Boss Spawn
Reply With Quote #4

I have a question. The director seems to prevent "z_spawn_old" to spawn SI during player transition and the period that triggered the radio(in console it shows "could not find a XX spawn position in 5 tries"). After all players transitioned or "Rescue is on the way", "z_spawn_old" start to work. This stop some features of my plugins. So is there any way to solve this problem? In addition, "z_spawn" works but as we all know it spawns SI into crosshair or wall.

Last edited by sxslmk; 04-18-2020 at 23:39.
sxslmk is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-18-2020 , 23:52   Re: [L4D2] Boss Spawn
Reply With Quote #5

I have a patch to increase "spawn position in 5 tries" if you want. Not sure if that will actually help.
__________________
Silvers is offline
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 04-19-2020 , 00:01   Re: [L4D2] Boss Spawn
Reply With Quote #6

Quote:
Originally Posted by Silvers View Post
I have a patch to increase "spawn position in 5 tries" if you want. Not sure if that will actually help.
Oh thanks, I can have a try.
sxslmk is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-19-2020 , 00:39   Re: [L4D2] Boss Spawn
Reply With Quote #7

Sent PM with plugin link. If anyone else wants PM me. This may not be a solution due to underlying game issues causing the function to fail. Further memory patches might fix the issue but not something I will look into, again if anyone wants to investigate I can send the signatures. Supports L4D1/2 + Win/Nix.
__________________
Silvers is offline
sxslmk
Member
Join Date: Dec 2017
Location: CN
Old 04-19-2020 , 01:03   Re: [L4D2] Boss Spawn
Reply With Quote #8

Quote:
Originally Posted by Silvers View Post
Sent PM with plugin link. If anyone else wants PM me. This may not be a solution due to underlying game issues causing the function to fail. Further memory patches might fix the issue but not something I will look into, again if anyone wants to investigate I can send the signatures. Supports L4D1/2 + Win/Nix.
Awesome! It works! After my test compare to before although there still be individual SI couldn't be spawned but that's very rarely. Thank you very much!

Last edited by sxslmk; 04-19-2020 at 01:03.
sxslmk is offline
Sev
Veteran Member
Join Date: May 2010
Old 04-19-2020 , 09:51   Re: [L4D2] Boss Spawn
Reply With Quote #9

Something to disable its functionality on finales would be good, so people don't have to manually create configs for all the finales. Otherwise good stuff here.

Last edited by Sev; 04-19-2020 at 09:51.
Sev is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 04-19-2020 , 10:02   Re: [L4D2] Boss Spawn
Reply With Quote #10

What could be blocking the spawns is the "ProhibitBosses = true" Director var.

When the radio is called some maps runs the finale vscript, which blocks spawning Witch/Tank, and depends on the map either other SI.
__________________
Marttt 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 17:35.


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