On my server i use weapon class 0 (all weapons) and weapon class 6 (bolt action only) and weapon class 9 (bolt-sniper only) to depend on map and/or gametype.
Player use endgame vote to select map and gametype.
In _ex_votemap.gsc i use Toujane map 2x
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane ^1Only Rifle (tdm)^7";
level.ex_maps[level.ex_maps.size-1].gametype = "tdm";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
and
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane (dm,ctf,hq,sd,lts)";
level.ex_maps[level.ex_maps.size-1].gametype = "dm ctf hq sd lts";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
If player vote to Toujane+TDM then server load Toujane+TDM+ONLY Rifle because i set this in the weaponcontrol.cfg
(set ex_wepo_class_tdm_mp_toujane "6")
If player vote to Toujane+DM or HQ or CTF or SDÍ or LTS then server load Toujane+DM+all weapons.
But this way not possible set other map+gametype+weapon class combination.
My idea to add one more possibility to endgame vote section: weapon class vote
This controlled by _ex_votemap.gsc for example:
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane (dm,ctf,hq,sd,lts)";
level.ex_maps[level.ex_maps.size-1].gametype = "dm ctf hq sd lts";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
level.ex_maps[level.ex_maps.size-1].weaponclass = "6"; :!:
weaponclass: 0: all weapon ........... 6: bolt action only etc...