MCPcopy Create free account
hub / github.com/demoth/jake2 / SetValue

Method SetValue

qcommon/src/main/java/jake2/qcommon/exec/Cvar.java:283–285  ·  view source on GitHub ↗

Sets a float value of a variable. The overloading is very important, there was a problem with networt "rate" string --> 10000 became "10000.0" and that wasn't right.

(String var_name, int value)

Source from the content-addressed store, hash-verified

281 * networt "rate" string --> 10000 became "10000.0" and that wasn't right.
282 */
283 public void SetValue(String var_name, int value) {
284 Set(var_name, "" + value);
285 }
286
287 public void SetValue(String var_name, float value) {
288 if (value == (int)value) {

Callers 15

CrosshairFuncMethod · 0.80
JoystickFuncMethod · 0.80
AlwaysRunFuncMethod · 0.80
FreeLookFuncMethod · 0.80
MouseSpeedFuncMethod · 0.80
NoAltTabFuncMethod · 0.80
InvertMouseFuncMethod · 0.80
LookspringFuncMethod · 0.80
LookstrafeFuncMethod · 0.80
UpdateVolumeFuncMethod · 0.80
UpdateCDVolumeFuncMethod · 0.80

Calls 1

SetMethod · 0.95

Tested by

no test coverage detected