Jump to content

Recommended Posts

Posted

So I am looking for a way to modify at what distance the wolffog starts

 

I know r_wolffog enables it

I know r_zfar controls the max view distance

I know r_znear controls min? view distance

 

Is there maybe a cvar I could change or file/shader in the pk3 I can edit to control when the fog actually starts?

 

My thoughts are that it probably is controlled on compile time and unless I recompile a map I won't be able to change it. Hoping someone will prove me wrong though.

 

Thanks for help in advance.

 

JXvKgJi.gif

Posted

So I am looking for a way to modify at what distance the wolffog starts

 

I know r_wolffog enables it

I know r_zfar controls the max view distance

I know r_znear controls min? view distance

 

Is there maybe a cvar I could change or file/shader in the pk3 I can edit to control when the fog actually starts?

 

My thoughts are that it probably is controlled on compile time and unless I recompile a map I won't be able to change it. Hoping someone will prove me wrong though.

 

Thanks for help in advance.

 

JXvKgJi.gif

 

I assume you are trying to do it server side as if it is client side like the cvars you mentioned are usually forced so changing it would not help. You can try mapscripting. I believe the variables you require are:

 

setglobalfog 0 <duration> <float:r> <float:g> <float:b> <float:depthForOpaque>

Changes the global fog in a map to a specific color and density.

 

setglobalfog 1 <duration>

Changes the global fog in a map.

  • Like 2
  • Clan Friend
Posted

You want to change fog density? What are you trying to do exactly? I don't think you can, and anyway most of these cvars are locked. I don't remember a cvar for that.

Posted

Thanks blackknight I will see if that works.

 

I am just playing around with the fog a little to see what I can do and yeah obviously they are locked, changes will be done server side.

Posted

+1 for the gif 

 

bb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.