X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=builtin%2Fclient%2Fcheats%2Frender.lua;h=dc3f712471098b6f345f929b746a1b1e63f101bf;hb=8b3eaf5b05379f995bf8d55532c107b190848a69;hp=6402246f3ca8a47639f45fe0f01b2aef02efbe41;hpb=0a285dd338fb415744e3fb8d6a1cc3763d796c4a;p=dragonfireclient.git diff --git a/builtin/client/cheats/render.lua b/builtin/client/cheats/render.lua index 6402246f3..dc3f71247 100644 --- a/builtin/client/cheats/render.lua +++ b/builtin/client/cheats/render.lua @@ -1,2 +1,14 @@ core.register_list_command("xray", "Configure X-Ray", "xray_nodes") core.register_list_command("search", "Configure NodeESP", "node_esp_nodes") + +core.register_on_spawn_particle(function(particle) + if core.settings:get_bool("noweather") and particle.texture:sub(1, 12) == "weather_pack" then + return true + end +end) + +core.register_on_play_sound(function(sound) + if core.settings:get_bool("noweather") and sound.name == "weather_rain" then + return true + end +end)