From aad462636e636cf31dd4f18b81b39f9d273bdfe2 Mon Sep 17 00:00:00 2001 From: flowtron Date: Mon, 12 Jul 2021 10:32:14 +0200 Subject: [PATCH] seteditshow back & improved from opt/compatibility.cfg --- config/scripts.cfg | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/scripts.cfg b/config/scripts.cfg index 7e09451a..08c3c772 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -450,6 +450,19 @@ const storesets [ ] ] +// show just one entity type (by name) +const seteditshow [ + if $numargs [ + push n (findlist (listoptions ents) $arg1) + if (< $n 0) [ + echo "\f3" $arg1 is not an entity type + ] [ + edithideentmask (- (- (powf 2 (listlen (listoptions ents))) 1) (powf 2 $n)) + ] + pop n + ] [ edithideentmask 0 ] +] + // cleanshot - Take a "clean" screenshot with no HUD items. const __disablehud [ tempalias __tmp_old_sets (concat hudgun $hudgun ";" showclips $showclips) ; hudgun 0 ; showclips 0 ; if $editing [ seteditshow 0 ]; blankouthud 1000 ] const __enablehud [ __tmp_old_sets ; if $editing seteditshow ; blankouthud 0 ]