View Single Post
Old 11-24-2018   #4
SteelT
Developer
 
SteelT's Avatar
Default

MapChange isn't always reliable as it should be. If a player spectates during the stage roulette and then join back when it starts or has ended. Then the MapChange hook won't run for that player, which will cause some unintended side effects with scripts that expects MapChange to always run. I've attched an example script that can be used to reproduce this bug.

Steps to reproduce:
  1. Spectate during item roulette
  2. Join back when roulette starts or finished.

Expected result:
The player name should be printed twice to the console, one for MapLoad and one for MapChange.

Actual result:
The player's name is only printed once.
Attached Files
File Type: lua maphookstest.lua (212 Bytes, 133 views)
__________________
How can you combine steel and titanium?

Last edited by SteelT; 11-25-2018 at 04:02 PM.
SteelT is offline   Reply With Quote