splewis / csgo-multi-1v1

CS:GO Sourcemod plugin to create multi-1v1 arena servers
GNU General Public License v3.0
278 stars 68 forks source link

Auto enable custom rounds #246

Open asphyxious opened 4 years ago

asphyxious commented 4 years ago

Hey Splewis, is it possible to make the custom rounds ENABLED by default for all players? They can use !gunmenu to disable it. Maybe add an autoenabled cvar if possible.

Just that most new players don't know how to use !guns properly or don't bother turning on all rounds.

iRonicro commented 4 years ago

You have few cvars may help you /cfg/sourcemod/multi1v1/multi1v1.cfg

// Determines auto-open behavior of the guns menu. 0=never auto-open, 1=open if the client has no preference cookies saved, 2=always open on client connect
// -
// Default: "0"
sm_multi1v1_menu_open_behavior "2"

also you can edit more about guns in sourcemod/configs/multi1v1_customrounds.cfg & multi1v1_weapons.cfg

splewis commented 4 years ago

Not currently possible, though like @iRonicro mentions, you can have the round-type/guns menu auto popup for players with that cvar.

I think it'd be a good idea for a new keyvalue in the custom rounds schema (https://github.com/splewis/csgo-multi-1v1/blob/master/configs/multi1v1_customrounds.cfg#L19) that could control this. The current enabled field is for whether the round type is enabled at all, but we could also have a enabled_by_default field that controls this behavior. PRs welcome for that.