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

Method VariableValue

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

Returns the float value of a variable.

(String var_name)

Source from the content-addressed store, hash-verified

296 * Returns the float value of a variable.
297 */
298 public float VariableValue(String var_name) {
299 cvar_t var = FindVar(var_name);
300 if (var == null)
301 return 0;
302
303 return Lib.atof(var.string);
304 }
305
306 /**
307 * Handles variable inspection and changing from the console.

Callers 15

PushMenuMethod · 0.80
Options_MenuInitMethod · 0.80
StartServer_MenuInitMethod · 0.80
DMFlagCallbackMethod · 0.80
DMOptions_MenuInitMethod · 0.80
PlayerConfig_MenuInitMethod · 0.80
CLClass · 0.80
SendConnectPacketMethod · 0.80
ConsoleClass · 0.80
SV_NextserverMethod · 0.80

Calls 2

FindVarMethod · 0.95
atofMethod · 0.95

Tested by

no test coverage detected