oqyh / cs2-Vote-GoldKingZ

System Voting System (Kick, Banned, Mute, Gag, Silent, Gamemode, Map, Vips) Cs2
20 stars 4 forks source link

votemode live reload #9

Open ToHold opened 1 month ago

ToHold commented 1 month ago

Is there a way to change game_mode game_type and reload the current map to apply the changes ?

ToHold commented 1 month ago

sv_cheats 1; restart; just crash my server btw

oqyh commented 1 month ago

Is there a way to change game_mode game_type and reload the current map to apply the changes ?

will check that

ToHold commented 1 month ago

Thanks a lot ! My only workaround curently is to use admin panel to set map or rtv or votemap

ToHold commented 1 month ago

I'd like to help, how do you test / debug your project ? What's your dev env ? Do you always re run a cs2 serv in local to test ? Any cssharp beginer guide ?

oqyh commented 1 month ago

sv_cheats 1; restart; just crash my server btw

no need for that here is example

in comp.cfg just put at end

game_mode 1 game_type 0 mp_restartgame 1

and in casual.cfg just put at end

game_mode 0 game_type 0 mp_restartgame 1

thats way you can switch

ToHold commented 1 month ago

I already give a try with that, not working for arms race and deathmatch the level needs to be reloaded in these cases and for may other modes