Dvars are developer variables that have a name and a value.
For e.g. setting the last selected button configuration in-game the dvar
Our example would look like this:
Here are all the button configuration names for Wii Remote:
Wii Remote Button Configurations
You can find more in the code_post_gfx_mp.ff file.
And here are lots of dvar dumps to check out for different dvars:
http://www.bullywiihacks.com/f40-
Note that dvars can be binded and toggled also. If we wanted to toggle 3rd person mode we'd use the
Dvars can also be resetted to their original value conveniently by using the
Do not write something like:
Better:
For e.g. setting the last selected button configuration in-game the dvar
- Code:
lastPresetButtonConfig
- Code:
set
- Code:
set dvarName dvarValue
Our example would look like this:
- Code:
set lastPresetButtonConfig "button_config_alpha"
Here are all the button configuration names for Wii Remote:
Wii Remote Button Configurations
- Code:
button_config_alpha
button_config_bravo
button_config_charlie
button_config_delta
button_config_echo
button_config_foxtrot
You can find more in the code_post_gfx_mp.ff file.
And here are lots of dvar dumps to check out for different dvars:
http://www.bullywiihacks.com/f40-
Note that dvars can be binded and toggled also. If we wanted to toggle 3rd person mode we'd use the
- Code:
toggle
- Code:
twistbind WII_C "toggle cg_thirdPerson 1 0"
Dvars can also be resetted to their original value conveniently by using the
- Code:
reset
Do not write something like:
- Code:
set cg_thirdPerson 0
Better:
- Code:
reset cg_thirdPerson