dreamstalker / rehlds

Reverse-engineered HLDS
GNU General Public License v3.0
653 stars 167 forks source link

Increase `sv_zmax` default value #920

Closed RauliTop closed 2 years ago

RauliTop commented 2 years ago

Default value seems to be low. https://github.com/dreamstalker/rehlds/blob/22a00eff892c9bee807773120818dc2337f632e8/rehlds/engine/sv_main.cpp#L130

An example on cs_assault (official map): https://imgur.com/lv7Dvie

The question now is, what will be a better value?

etojuice commented 2 years ago

On cs_assault maximum visible distance was set by the mapper to 4620. Anyways, the default value is kinda low yeah.

StevenKal commented 2 years ago

A lot of maps have a custom value defined by mapper, but usually not enough (like for "cs_assault" where this is ugly to see the font disappears). Because GameDLL allows to set a custom value via a KeyValue ("MaxRange" to the entity "worldspawn", which alters the EntVars's "speed" member & the game set this CVar to the value). A fullly reliable solution/fix, is to just put your custom high value (like "20000") in "amx.cfg" to solve it well for all maps.

UnrealKaraulov commented 2 years ago

Yes, this limit is useless. Need possible to remove it for all maps.

wopox1337 commented 2 years ago

Problems with the map, not the game engine.