diff --git a/config/docs.cfg b/config/docs.cfg index b0cf10f8..51ec019f 100644 --- a/config/docs.cfg +++ b/config/docs.cfg @@ -296,6 +296,8 @@ docremark [default keys: D and Right Arrow]; docident [screenshot] [Takes a screenshot.]; docremark [Screenshots are saved to "screenshots/screenshotN.bmp", where N is the number of milliseconds since the game was launched.]; dockey [F12] [] []; +docident [cleanshot] [Take a "clean" screenshot with no HUD items.]; +docremark [Your current HUD configuration is stored into a buffer, and is re-enabled afterwards.]; docident [mapshot] [save an image of the entire radar-overview of the map.]; docident [screenshottype] [Toggle format of screenshot image. Your choice is for BMP (0), JPEG (1) or PNG (2).]; docargument [T] [0=BMP, 1=JPEG, 2=PNG] [min 0/max 2/default 1]; diff --git a/config/on_quit.cfg b/config/on_quit.cfg index 3a131915..2ed1edd0 100644 --- a/config/on_quit.cfg +++ b/config/on_quit.cfg @@ -5,12 +5,16 @@ addListOnQuit = [ alias_list = $arg1; loop al (listlen $alias_list) [ addOnQuit // alias_list is last for a reason! on_quit_aliases = [ + badargs cmapp + cs_sets + cs_newsets i len modifier numcla numrvsf + omit_idents r s sbdesc @@ -26,6 +30,7 @@ on_quit_aliases = [ tmp_mrem tmp_numargs tmp_numbots + tmp_old_sets tmp_svol tmp_wc alias_list diff --git a/config/scripts.cfg b/config/scripts.cfg index 0d8e21a3..1d626f3b 100644 --- a/config/scripts.cfg +++ b/config/scripts.cfg @@ -402,6 +402,17 @@ storesets = [ ] ] +// cleanshot - Take a "clean" screenshot with no HUD items. +cs_sets = "clockdisplay crosshairsize hidecompass hideconsole hidectfhud hidedamageindicator hidehudequipment hidehudmsgs hideradar hidespecthud hideteam hidevote hudgun showstats" +cs_newsets = "0 0 1 1 1 1 1 1 1 1 1 1 1 0" + +cleanshot = [ + storesets $cs_sets tmp_old_sets + loop csl (listlen $cs_sets) [ (at $cs_sets $csl) (at $cs_newsets $csl) ] + sleep 10 [ screenshot ] + sleep 90 [ loop ros (listlen $cs_sets) [ (at $cs_sets $ros) (at $tmp_old_sets $ros) ] ] +] + // Simple claim-admin script for one single-server. // Fill in the 3 aliases below, and uncomment the below line to activate. // bind F3 "customclaimadminscript" diff --git a/docs/reference.xml b/docs/reference.xml index e08b8602..129ae825 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -1016,7 +1016,20 @@ + + + + + + Take a "clean" screenshot with no HUD items. + + Your current HUD configuration is stored into a buffer, and is re-enabled afterwards. + + + + + save an image of the entire radar-overview of the map.