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

Function HS_SetJump

src/MenuOptions.c:994–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994static void HS_SetJump(const cc_string* v) {
995 cc_string str; char strBuffer[STRING_SIZE];
996 struct PhysicsComp* physics;
997
998 physics = &Entities.CurPlayer->Physics;
999 physics->JumpVel = PhysicsComp_CalcJumpVelocity(Menu_Float(v));
1000 physics->UserJumpVel = physics->JumpVel;
1001
1002 String_InitArray(str, strBuffer);
1003 String_AppendFloat(&str, physics->JumpVel, 8);
1004 Options_Set(OPT_JUMP_VELOCITY, &str);
1005}
1006
1007static cc_bool HS_GetWOMHacks(void) { return Entities.CurPlayer->Hacks.WOMStyleHacks; }
1008static void HS_SetWOMHacks(cc_bool v) {

Callers

nothing calls this directly

Calls 4

Menu_FloatFunction · 0.85
String_AppendFloatFunction · 0.85
Options_SetFunction · 0.85

Tested by

no test coverage detected