Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Common funcs
- local ui_reference, ui_get = ui.reference, ui.get
- local find_materials = materialsystem.find_materials
- local client_set_event_callback = client.set_event_callback
- -- Variables
- local ref = ui_reference("VISUALS", "Effects", "Remove smoke grenades")
- local var_flag = 2 -- Change this to 28 if you want wireframed smokes
- -- Game event that runs every tick even when dead
- client_set_event_callback("net_update_end", function()
- local state = ui_get(ref)
- local smokes = find_materials("particle/vistasmokev1")
- for i=1, #smokes do
- smokes[i]:set_material_var_flag(var_flag, state)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement