Tsuey / L4D2-Community-Update

Help us shape the potential future of L4D2 vanilla.
70 stars 23 forks source link

Bots can momentarily teleport to the start saferoom #187

Open alexiscoutinho opened 2 years ago

alexiscoutinho commented 2 years ago

In this video, the player accidentaly gets stuck and goes IDLE to teleport to the nearest player. However, during the teleport process he actually passes by the safe room and is able to see the first aid kit there. This is especially problematic when a player naturally goes AFK in finale preparations because a horde may spawn since that survivor bot briefly leaves the finale area. The latter case happened to a friend of mine a few times in the Yama finale. In an extreme event there, he even remained in the safe room during the teleport after hanging from a ledge! Maybe he took over the bot in the middle of the teleportation process.

alexiscoutinho commented 11 months ago

When a Tank spawns, he also appears in the safe room at first (during player_connect event) and only then in the correct position (during tank_spawn event). Thus the player entity is unreliable during player_connect.