cleanshot
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6276 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1016,7 +1016,20 @@
|
||||
<defaultKeys>
|
||||
<key alias="F12"/>
|
||||
</defaultKeys>
|
||||
<references>
|
||||
<identifierReference identifier="cleanshot"/>
|
||||
</references>
|
||||
</command>
|
||||
|
||||
<command name="cleanshot">
|
||||
<description>Take a "clean" screenshot with no HUD items.</description>
|
||||
<remarks>
|
||||
<remark>Your current HUD configuration is stored into a buffer, and is re-enabled afterwards.</remark>
|
||||
</remarks>
|
||||
<references>
|
||||
<identifierReference identifier="screenshot"/>
|
||||
</references>
|
||||
</command>
|
||||
|
||||
<command name="mapshot">
|
||||
<description>save an image of the entire radar-overview of the map.</description>
|
||||
|
||||
Reference in New Issue
Block a user