splewis / csgo-practice-mode

CS:GO Sourcemod plugin for private team/individual practice servers
GNU General Public License v3.0
455 stars 70 forks source link

Bots previously spawned with the .bots feature do not respawn when killed after playing a replay #224

Closed Cyberschorsch closed 2 years ago

Cyberschorsch commented 2 years ago

Expected behavior

After replaying a saved replay, bots that have been placed with any bot command or loaded with the .loadbots command should respawn after getting killed, new bots as well.

Actual behavior

After replaying a saved replay, bots that have been placed with any bot command or loaded with the .loadbots command do not respawn after getting killed. This happens with new bots as well.

Steps to reproduce

  1. Start the plugin with .prac on a map with a saved replay
  2. Add bots to the map on any side.
  3. Run a replay once and wait for it to finish.
  4. Kill previously placed bots.
  5. Place new bots and kill them.
Cyberschorsch commented 2 years ago

I just dug a little bit into this one.

This is not a bug per se but actually intended behaviour. When entering the replay mode, the respawn settings get set to disabled since it would cause bots from a replay to always respawn.

I wish there would be a possiblity to distinguish between replay bots and placed bots though.