Project

General

Profile

Feature #1290

Session-only cvars

Added by danij over 20 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2003-09-23
% Done:

0%

Tags:

Description

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.

Labels: Data


Related issues

Related to Feature #1617: Scoped definitions and variablesNew2013-10-21

Related to Feature #1633: Console commands and Doomsday ScriptNew2013-10-22

History

#1 Updated by danij over 20 years ago

- assigned_to: Daniel Swanson --> nobody

#2 Updated by skyjake over 11 years ago

Logged In: YES
user_id=717323

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
original values.

Perhaps "mset" would be a good name for the command?
(Map-SET)

"mset rend-camera-fov 30"

#3 Updated by skyjake over 10 years ago

  • Tags set to Scriping, XG
  • Subject changed from Session Only Cvars to Session-only cvars

#4 Updated by skyjake over 10 years ago

  • Tags changed from Scriping, XG to XG, Scripting

#5 Updated by skyjake about 7 years ago

  • Related to Feature #1633: Console commands and Doomsday Script added

#6 Updated by skyjake over 4 years ago

  • Target version set to Modding

Also available in: Atom PDF