cvar latch

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: cvar latch

Re: cvar latch

by Rachael » Mon Sep 30, 2024 1:36 am

So this was a miswording in the wiki. But there is still an issue here:

Changing a latched cvar in the menu does not reflect the upcoming change, the menu instead sticks to the old cvar the way it was.

cvar latch

by camaxide » Fri Sep 27, 2024 10:19 am

https://zdoom.org/wiki/CVARINFO
this states that:
latch: Changes to this CVAR only take effect upon starting a new game. This is only the case when changing it from the console, however.

is this wrong? when I use this and change the latched cvar with ACS script - it will not change until I start a new game.
I need to set a cvar in the start of the game, than the user cant manually change with the console during that game. so I need ACS to be able to change the value, but not the console.

Top