seteditshow back & improved from opt/compatibility.cfg
This commit is contained in:
@@ -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 ]
|
||||
|
||||
Reference in New Issue
Block a user