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

Function HacksComp_SetNoclip

src/EntityComponents.c:258–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void HacksComp_SetNoclip(struct HacksComp* hacks, cc_bool noclip) {
259 if (hacks->Noclip == noclip) return;
260 hacks->Noclip = noclip;
261 Event_RaiseVoid(&UserEvents.HacksStateChanged);
262}
263
264float HacksComp_CalcSpeedFactor(struct HacksComp* hacks, cc_bool canSpeed) {
265 float speed = 0;

Callers 3

LocalPlayer_HandleInputFunction · 0.85
LocalPlayer_HandleNoclipFunction · 0.85
HacksComp_UpdateFunction · 0.85

Calls 1

Event_RaiseVoidFunction · 0.85

Tested by

no test coverage detected