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

Function HacksComp_Init

src/EntityComponents.c:144–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void HacksComp_Init(struct HacksComp* hacks) {
145 Mem_Set(hacks, 0, sizeof(struct HacksComp));
146 HacksComp_SetAll(hacks, true);
147 hacks->SpeedMultiplier = 10.0f;
148 hacks->Enabled = true;
149 hacks->IsOp = true;
150 hacks->CanSeeAllNames = true;
151 hacks->CanDoubleJump = true;
152 hacks->BaseHorSpeed = 1.0f;
153 hacks->MaxHorSpeed = 1.0f;
154 hacks->MaxJumps = 1;
155 hacks->NoclipSlide = true;
156 hacks->CanBePushed = true;
157
158 String_InitArray(hacks->HacksFlags, hacks->__HacksFlagsBuffer);
159}
160
161cc_bool HacksComp_CanJumpHigher(struct HacksComp* hacks) {
162 return hacks->Enabled && hacks->CanSpeed;

Callers 1

LocalPlayer_InitFunction · 0.85

Calls 2

Mem_SetFunction · 0.85
HacksComp_SetAllFunction · 0.85

Tested by

no test coverage detected