调整数据
This commit is contained in:
parent
03417ecd8d
commit
f01d4734d2
4 changed files with 5 additions and 5 deletions
|
@ -17,7 +17,7 @@ public class DisplayConfig {
|
||||||
KILL_INDICATION = builder.define("kill_indication", true);
|
KILL_INDICATION = builder.define("kill_indication", true);
|
||||||
|
|
||||||
builder.comment("Set FALSE if you want to show kill indication ONLY while killing an entity with a gun");
|
builder.comment("Set FALSE if you want to show kill indication ONLY while killing an entity with a gun");
|
||||||
GLOBAL_INDICATION = builder.define("global_indication", false);
|
GLOBAL_INDICATION = builder.define("global_indication", true);
|
||||||
|
|
||||||
builder.comment("Set TRUE to show ammo and gun info on HUD");
|
builder.comment("Set TRUE to show ammo and gun info on HUD");
|
||||||
AMMO_HUD = builder.define("ammo_hud", true);
|
AMMO_HUD = builder.define("ammo_hud", true);
|
||||||
|
|
|
@ -11,7 +11,7 @@ public class KillMessageConfig {
|
||||||
builder.push("kill_message");
|
builder.push("kill_message");
|
||||||
|
|
||||||
builder.comment("Set TRUE if you want to show kill message");
|
builder.comment("Set TRUE if you want to show kill message");
|
||||||
SHOW_KILL_MESSAGE = builder.define("show_kill_message", false);
|
SHOW_KILL_MESSAGE = builder.define("show_kill_message", true);
|
||||||
|
|
||||||
builder.comment("The max count of kill messages to show concurrently");
|
builder.comment("The max count of kill messages to show concurrently");
|
||||||
KILL_MESSAGE_COUNT = builder.defineInRange("kill_message_count", 5, 1, 20);
|
KILL_MESSAGE_COUNT = builder.defineInRange("kill_message_count", 5, 1, 20);
|
||||||
|
|
|
@ -174,9 +174,9 @@ public class ClientEventHandler {
|
||||||
// 开火部分
|
// 开火部分
|
||||||
|
|
||||||
if (player.getPersistentData().getDouble("noRun") == 0 && player.isSprinting() && GLFW.glfwGetMouseButton(Minecraft.getInstance().getWindow().getWindow(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) != GLFW.GLFW_PRESS) {
|
if (player.getPersistentData().getDouble("noRun") == 0 && player.isSprinting() && GLFW.glfwGetMouseButton(Minecraft.getInstance().getWindow().getWindow(), GLFW.GLFW_MOUSE_BUTTON_RIGHT) != GLFW.GLFW_PRESS) {
|
||||||
cantFireTime = Mth.clamp(cantFireTime + 3 * times, 0, 30);
|
cantFireTime = Mth.clamp(cantFireTime + 3 * times, 0, 24);
|
||||||
} else {
|
} else {
|
||||||
cantFireTime = Mth.clamp(cantFireTime - 6 * times, 0, 30);
|
cantFireTime = Mth.clamp(cantFireTime - 6 * times, 0, 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class MouseHandlerMixin {
|
||||||
|
|
||||||
|
|
||||||
if (!player.getMainHandItem().isEmpty() && mc.options.getCameraType() == CameraType.FIRST_PERSON) {
|
if (!player.getMainHandItem().isEmpty() && mc.options.getCameraType() == CameraType.FIRST_PERSON) {
|
||||||
return original / Math.max((1 + (0.25 * (zoom - (0.2 * customSens)) * ClientEventHandler.zoomTime)), 0.1);
|
return original / Math.max((1 + (0.2 * (zoom - (0.3 * customSens)) * ClientEventHandler.zoomTime)), 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return original;
|
return original;
|
||||||
|
|
Loading…
Add table
Reference in a new issue