Would give 7 for lg, and 6 for all other weapons as the default one is set.
I've only tested the default briefly, but that option only seems to kick in if the weapon cvar you've triggered is EMTPY.
So you can't put a crosshair in the default, crosshairs in a few settings and fov in all the other settings, and then have the default crosshair fill in for where crosshair wasn't set.
Some commands get outright ignored, such as +attack and say. There are bound to be lots of others but I'm not going to seek them all out.
Otherwise you could ignore the default "cg_weaponConfig" leaving it blank, and put cg_drawCrosshair into each and every weapon specific one, if you accidentally miss out one then though, you would end up with whatever crosshair (or other settings) were last in use before changing to that weapon.
You can type it all into the advanced menu, but it's quicker and easier in a .cfg really.
They're called when the "weapon" command is called now, so act instantly from
bind 5 "weapon 5"
etc.
1 last question, if i set different crosshairs for each weapons with cg_weaponconfig_x , when i'll be spectating , will it change the crosshair automatically each time the player switches weapon or do i still have to press the weapons binds to change it ?
When they first released cg_weaponconfig it used to change with the player you spectate's weapon which was one reason the settings update was ping delayed, but the way it's been changed to make the swap instant so they're actually useful in such a fast game, has now dropped that feature. I'm pretty sure it's just spectating with whatever settings you were last using rather than what's in your default weaponConfig, but I haven't tested that.
In some ways I'll miss that, but it wasn't representative of what the player you watched saw anyway, and I much, much prefer it being instant and not having to put settings into binds, as they could go wrong.
I'd really like to see
cg_gameConfig ""
cg_specConfig ""
cvars that triggered when you go to spec/join game, that way we could exec a cfg automatically for watching, but I'd be surprised if they went for that.
1. Binds don't trigger when you spawn, leaving you with the wrong settings until you hit a key.
2. Binds don't trigger when you change weapon automatically because you've run out of ammo.
3. Binds always trigger when you you press the key, leaving you with the wrong settings if you slip onto another bind for a weapon you don't have or don't have any ammo for.
The only reason not to use cg_weaponConfig before was it was slow, which was a huge disadvantage in such a fast paced game. Changing to rail for example on a lower fov, you want to be at the right sensitivity and fov immediately so you can aim naturally straight away instead of still being stuck on LG sensitivity/fov/crosshair. That's now not a problem any more.
To try and have a best of both worlds (fast swap and auto swap on spawn/empty change) many people used to put the same settings in both their binds and weaonConfig, but that didn't solve problem 2 or 3 at all, only problem 1.
3 is the main thing that annoyed me, but not having to keep tapping different keys on spawn for the right settings is a pain too when you can spawn with different weapons all the time now, not just from swapping ffa/ca/ft