MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / HS_SetSpeed

Function HS_SetSpeed

src/MenuOptions.c:979–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977
978static void HS_GetSpeed(cc_string* v) { String_AppendFloat(v, Entities.CurPlayer->Hacks.SpeedMultiplier, 2); }
979static void HS_SetSpeed(const cc_string* v) {
980 Entities.CurPlayer->Hacks.SpeedMultiplier = Menu_Float(v);
981 Options_Set(OPT_SPEED_FACTOR, v);
982}
983
984static cc_bool HS_GetClipping(void) { return Camera.Clipping; }
985static void HS_SetClipping(cc_bool v) {

Callers

nothing calls this directly

Calls 2

Menu_FloatFunction · 0.85
Options_SetFunction · 0.85

Tested by

no test coverage detected