diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-30 11:20:07 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-11-30 11:20:07 +0100 |
commit | 8b3eaf5b05379f995bf8d55532c107b190848a69 (patch) | |
tree | b67b0d5052b512e58f27be27859522f1d4004311 /builtin/client/cheats/render.lua | |
parent | 0a285dd338fb415744e3fb8d6a1cc3763d796c4a (diff) | |
download | dragonfireclient-8b3eaf5b05379f995bf8d55532c107b190848a69.tar.xz |
Lua API: Particle callbacks; Add NoWeather
Diffstat (limited to 'builtin/client/cheats/render.lua')
-rw-r--r-- | builtin/client/cheats/render.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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) |