When creating user maps it would be very usefull if any
cvar changed via executing an XG type was only
changed for the duration of the current level. Once the
next level starts these cvars would be then be reset.
Maybe add a flag to the XG type that makes it either a
global or local (duration of the current map) change.
#2 Updated by skyjake about 9 years ago
Logged In: YES
At the moment there is no straightforward way to implement
this. The engine keeps no track of the "original" value of
cvars, making reseting practically impossible.
I agree that there is a need for this kind of
functionality, though. Perhaps a console command that
temporarily sets the value of a cvar. When the next level
is loaded, the temporary values are replaced by the
Perhaps "mset" would be a good name for the command?
"mset rend-camera-fov 30"