| 947 | } |
| 948 | |
| 949 | static cc_bool LocalPlayer_HandleFly(int key, struct InputDevice* device) { |
| 950 | struct LocalPlayer* p = &LocalPlayer_Instances[device->mappedIndex]; |
| 951 | if (Gui.InputGrab) return false; |
| 952 | |
| 953 | if (p->Hacks.CanFly && p->Hacks.Enabled) { |
| 954 | HacksComp_SetFlying(&p->Hacks, !p->Hacks.Flying); |
| 955 | return true; |
| 956 | } else if (!p->_warnedFly) { |
| 957 | p->_warnedFly = true; |
| 958 | if (hackPermMsgs) Chat_AddRaw("&cFlying is currently disabled"); |
| 959 | } |
| 960 | return false; |
| 961 | } |
| 962 | |
| 963 | static cc_bool LocalPlayer_HandleNoclip(int key, struct InputDevice* device) { |
| 964 | struct LocalPlayer* p = &LocalPlayer_Instances[device->mappedIndex]; |
nothing calls this directly
no test coverage detected