| 142 | } |
| 143 | |
| 144 | void 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 | |
| 161 | cc_bool HacksComp_CanJumpHigher(struct HacksComp* hacks) { |
| 162 | return hacks->Enabled && hacks->CanSpeed; |
no test coverage detected