csgo-multi-1v1 icon indicating copy to clipboard operation
csgo-multi-1v1 copied to clipboard

mp_restartgame not working as expected

Open borzaka opened this issue 5 years ago • 2 comments

User story

I would like to restart (and reset every score) on the current map by mp_restartgame 1

Expected behavior

Restarts the the current map, resets the scoreboard, resets any kills/scores/MVPs/etc, and spawns and gives players the appropriate weapons.

Actual behavior

Restarts the map, resets the scoreboard, but players spawns with no weapons (or with knifes only), and even more than 2 players in one arena.

I ended up using changelevel to the same map to restart the game, but not all clients connects at the same time to start a new game on the current map fairly for everyone.

  • Plugin version: 1.1.10-dev
  • Sourcemod version: sourcemod-1.9.0-git6281

Maybe hooking the restart event would help, I don't know, just guessing. Can you point us where to look into this problem?

borzaka avatar Jun 11 '19 16:06 borzaka

sm plugins reload multi1v1 gives out the same output , i think its something with cookies

SurajBhari avatar Jun 12 '19 16:06 SurajBhari

Another solution I came up is to disable and enable the plugin:

  1. sm_multi1v1_enabled 0
  2. sm_multi1v1_enabled 1

Strangely after this someone is given an MVP right away, so one person starts with an advantage. And the client preferences are reset, so you have to setup again with !guns :(

borzaka avatar Jul 18 '19 13:07 borzaka