SirWillian / sst

Mirror of https://gitlab.com/mikesmiffy128/sst - pull requests ignored!
Other
0 stars 0 forks source link

Override the IP geolocation check that determines whether you get CS:S weapons #27

Open ImAciidz opened 1 year ago

ImAciidz commented 1 year ago

In pre-TLS patches of L4D2, if you are in a country that borders (or is) Germany and you are running your game in low violence mode, you will cause any lobby you join to get CS:S guns (host might need to be running low violence as well, not sure). However, if a Polish person joins a north american low violence server with low violence disabled on their client, there will be no CS:S weapons.

The first outcome is really bad for co-op runs, because the AWP and scout are terrible in comparison to either of the normal L4D2 sniper rifles on swamp finale, for example. (CS:S knife is busted though, and it would be nice if everyone could have access to that in the weapon pool for solo without needing to pretend to be a Polish femboy).

Related cvar: mm_dlcs_mask_extras Some relevant discussion from September 24 2022 and code: https://github.com/perilouswithadollarsign/cstrike15_src/blob/f82112a2388b841d72cb62ca48ab1846dfcc11c8/game/client/gameui/basemodpanel.cpp#L122 image (images featured at the bottom of this screenshot): image image image image

Contrary to what I say in the above screenshot, I do recall having CS:S weapons eventually spawn that day, but it's been a year so maybe my memory is wrong. Would have to test again. Goldberg emulator does force the country geolocation check to always be USA, so if someone wants to be bothered with changing that to a relevant country and compiling a build of it, that might be of use, rather than bothering with a VPN or pestering someone in a relevant country.