Demos
Posted: Fri Nov 10, 2006 10:43 pm
Can i bind a key to g_synchronousclients 1 and /record?
Code: Select all
// Record demos
//
// Push keypad-delete ( . ) to record a demo.
// Push this key again to stop the recording.
//
// You can record up to 20 demos in one game.
// Make sure you rename the demos after you left the game.
//
// IF YOU DON'T RENAME THE DEMOS, THE DEMOS WILL BE OVERWRITTEN THE
// NEXT TIME YOU RECORD NEW DEMOS.
//
bind kp_del vstr demotoggle
set startdemo "g_synchronousClients 1;vstr demonumber;g_synchronousClients 0; set demotoggle vstr stopdemo"
set stopdemo "stoprecord; vstr democycle; set demotoggle vstr startdemo"
set demo_1 "record demo_1; set demonumber vstr demo_2"
set demo_2 "record demo_2; set demonumber vstr demo_3"
set demo_3 "record demo_3; set demonumber vstr demo_4"
set demo_4 "record demo_4; set demonumber vstr demo_5"
set demo_5 "record demo_5; set demonumber vstr demo_6"
set demo_6 "record demo_6; set demonumber vstr demo_7"
set demo_7 "record demo_7; set demonumber vstr demo_8"
set demo_8 "record demo_8; set demonumber vstr demo_9"
set demo_9 "record demo_9; set demonumber vstr demo_10"
set demo_10 "record demo_10; set demonumber vstr demo_11"
set demo_11 "record demo_11; set demonumber vstr demo_12"
set demo_12 "record demo_12; set demonumber vstr demo_13"
set demo_13 "record demo_13; set demonumber vstr demo_14"
set demo_14 "record demo_14; set demonumber vstr demo_15"
set demo_15 "record demo_15; set demonumber vstr demo_16"
set demo_16 "record demo_16; set demonumber vstr demo_17"
set demo_17 "record demo_17; set demonumber vstr demo_18"
set demo_18 "record demo_18; set demonumber vstr demo_19"
set demo_19 "record demo_19; set demonumber vstr demo_20; echo ^1YOU ONLY HAVE ONE DEMO LEFT BEFORE THE OLD DEMOS WILL BE OVERWRITTEN!"
set demo_20 "record demo_20; set demonumber vstr demo_1"
set demonumber vstr demo_1
set demotoggle vstr startdemo
Code: Select all
cg_autoAction <bitmask> (default = 0)
Perform game actions such as demo recording and screenshots.
1 - save stats to a local text file at the end of a match logs are stored in: <cpma_root>/stats/<date>/<logname>.txt
2 - take an end-of-game screenshot
4 - record a demo of the game (requires warmup to be on)
8 - multiview the game (spectators only)
16 - only do these things if you're actually playing in the game
Code: Select all
cg_autoAction <option_bitmask> (default = 0)
Automatically performs actions at certain points in the game.
<option_bitmask>:
1 - Automatically save stats to a local text
file at the end of a match. Logs will be
stored in:
<osp_root>/stats/<date>/<logname>.txt
2 - Automatically takes an end-level screenshot
4 - Automatically records a match (requires
a full warmup server - g_warmup = 0)
8 - Dump your team's weapon stats
16 - Dump all players' weapon stats
JB wrote:Where are you putting that code?