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

Function HS_SetHacks

src/MenuOptions.c:972–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

970*#########################################################################################################################*/
971static cc_bool HS_GetHacks(void) { return Entities.CurPlayer->Hacks.Enabled; }
972static void HS_SetHacks(cc_bool v) {
973 Entities.CurPlayer->Hacks.Enabled = v;
974 Options_SetBool(OPT_HACKS_ENABLED, v);
975 HacksComp_Update(&Entities.CurPlayer->Hacks);
976}
977
978static void HS_GetSpeed(cc_string* v) { String_AppendFloat(v, Entities.CurPlayer->Hacks.SpeedMultiplier, 2); }
979static void HS_SetSpeed(const cc_string* v) {

Callers

nothing calls this directly

Calls 2

Options_SetBoolFunction · 0.85
HacksComp_UpdateFunction · 0.85

Tested by

no test coverage detected