Project

General

Profile

Feature #1294

Toggle command for non-boolean cvars

Added by sin4u about 16 years ago. Updated about 6 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
2003-09-29
% Done:

0%

Tags:

Description

when the toggle command is used on cvars such as
rend-camera-fov which obviously shouldnt be togglable
it applies anyway, setting it to 0, causing a HOM on the
whole screen.

Better behavior would be:

>toggle rend-camera-fov
rend-camera-fov is not boolean

alternatavely, the two settings, (or possibly more, to
cycle through) could be defined, so;

bind z {toggle rend-camera-fov {45,110}}

would make the key z a toggle for zoom.

Labels: Scripting

History

#1 Updated by skyjake about 14 years ago

Making this a feature request.

#2 Updated by skyjake about 6 years ago

  • Tags set to Scripting
  • Priority changed from Normal to Low

Also available in: Atom PDF