Tsuey / L4D2-Community-Update

Help us shape the potential future of L4D2 vanilla.
68 stars 22 forks source link

OnCustomPanicStageFinished output is fired on round start in scripted mode #519

Open alexiscoutinho opened 1 month ago

alexiscoutinho commented 1 month ago

Description

The OnCustomPanicStageFinished output of info_director is fired as soon as a round starts for some obscure reason when in scripted mode. One would expect it only to fire during scripted panic events and custom finales. This is problematic for maps that have I/O logic sensitive to these outputs, such as c2m5. In it, there are math_counters that track the number of the current finale stage by counting the number of times the output is fired. Therefore, this issue would throw off the count and make the concert choreography (lights on/off, tank music, fireworks...) ahead by one stage when playing mutations, for example.

A temporary fix could be to rework the concert choreography logic, either via I/O or VScript. However, any other custom map or mod that relies on this output would still be affected.