View Single Post
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-17-2021 , 11:15   [L4D2] Finale Stage hanging fix (finale tank fix)
Reply With Quote #1

Description:
This should be installed only when needed. Plugin written at pre-TLS time, and bug may be already patched / or not.

Sometimes tanks are not appearing on finale map, because "Panic" stage get stucked.
This plugin allows to set timeout (see ConVar) for Panic stage waiting the tank to appear. If that doesn't happen, plugin forcibly call the next stage and director automatically spawns the tank as it normally should.

Plugin code has heavily logging, which can be activated by changing this line to 1: #define DEBUG 1
Log location: addons/sourcemod/logs/stage.log
Commands:
They are only available by recompiling plugin with #define DEBUG 1

PHP Code:
// Prints current stage index and time passed.
"sm_stage"

// Forcibly call the next stage.
"sm_nextstage" 
Settings (ConVars):
PHP Code:
// Timeout (in sec.) for finale panic stage waiting for tank to appear, otherwise stage forcibly changed
l4d_finale_stage_fix_panicstage_timeout "60" 
Dependency:
- Left 4 DHooks Direct by SilverShot (ver. 1.64 or newer)
Compatibility
- L4D2 only (no stage change forwards for L4D1).
Thanks
- dr lex - for the request
Donate
Donates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often:
- Patreon
- BitCoin
- Ю.Money
Attached Files
File Type: sp Get Plugin or Get Source (l4d_finale_stage_fix.sp - 537 views - 7.3 KB)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 06-30-2022 at 05:54.
Dragokas is offline