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

Function HacksComp_SetAll

src/EntityComponents.c:135–142  ·  view source on GitHub ↗

#######################################################################################################################* *-----------------------------------------------------HacksComponent------------------------------------------------------* *#########################################################################################################################*/

Source from the content-addressed store, hash-verified

133*-----------------------------------------------------HacksComponent------------------------------------------------------*
134*#########################################################################################################################*/
135static void HacksComp_SetAll(struct HacksComp* hacks, cc_bool allowed) {
136 hacks->CanAnyHacks = allowed; hacks->CanFly = allowed;
137 hacks->CanNoclip = allowed; hacks->CanRespawn = allowed;
138 hacks->CanSpeed = allowed; hacks->CanPushbackBlocks = allowed;
139
140 hacks->CanUseThirdPerson = allowed;
141 hacks->CanSeeAllNames = allowed && hacks->IsOp;
142}
143
144void HacksComp_Init(struct HacksComp* hacks) {
145 Mem_Set(hacks, 0, sizeof(struct HacksComp));

Callers 3

HacksComp_InitFunction · 0.85
HacksComp_ParseAllFlagFunction · 0.85
HacksComp_RecheckFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected