NoFOV module

NoFOV: Minecraft 26.3 cheat module, full source for every implementation (1 client: LiquidBounce (Kotlin)).

1 implementationRENDER

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

LiquidBounce (Kotlin)RENDERsrc/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/render/ModuleNoFov.ktKotlin · 76 lines · 2.3 KB

Disables FOV from changing during movement.

SettingsFOVBaseFOVLimitMultiplier
ModuleNoFov.ktKotlin · Minecraft 26.2 · 76 lines · 2.3 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce)
3
 *
4
 * Copyright (c) 2015 - 2026 CCBlueX
5
 *
6
 * LiquidBounce is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * LiquidBounce is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with LiquidBounce. If not, see <https://www.gnu.org/licenses/>.
18
 */
19
package net.ccbluex.liquidbounce.features.module.modules.render
20
21
import net.ccbluex.liquidbounce.config.types.group.Mode
22
import net.ccbluex.liquidbounce.config.types.group.ModeValueGroup
23
import net.ccbluex.liquidbounce.features.module.ClientModule
24
import net.ccbluex.liquidbounce.features.module.ModuleCategories
25
26
/**
27
 * NoFOV module
28
 *
29
 * Changes FOV value.
30
 */
31
object ModuleNoFov : ClientModule("NoFOV", ModuleCategories.RENDER) {
32
33
    val mode = choices("Mode", ConstantFov, arrayOf(ConstantFov, Custom))
34
35
    fun getFovMultiplier(original: Float) = mode.activeMode.getFovMultiplier(original)
36
37
    fun getFov(original: Int) = mode.activeMode.getFov(original)
38
39
    object ConstantFov : FovMode("Constant") {
40
41
        private val fov by int("FOV", 90, 1..179)
42
43
        override fun getFovMultiplier(original: Float) = 1f
44
45
        override fun getFov(original: Int): Int {
46
            return fov
47
        }
48
49
    }
50
51
    object Custom : FovMode("Custom") {
52
53
        private val baseFov by float("BaseFOV", 1f, 0f..1.5f)
54
        private val limit by floatRange("Limit", 0f..1.5f, 0f..1.5f)
55
        private val multiplier by float("Multiplier", 1f, 0.1f..1.5f)
56
57
        override fun getFovMultiplier(original: Float): Float {
58
            val newFov = (original - 1) * multiplier + baseFov
59
            return newFov.coerceIn(limit)
60
        }
61
62
    }
63
64
    abstract class FovMode(name: String) : Mode(name) {
65
66
        override val parent: ModeValueGroup<*>
67
            get() = mode
68
69
        abstract fun getFovMultiplier(original: Float): Float
70
71
        open fun getFov(original: Int) = original
72
73
    }
74
75
}
76