Demo recording script
Posted: Mon Oct 24, 2005 1:46 am
The scripts start and stop recording with a single key.
the network script is used when your a client (playing online, etc). the server script is for singleplayer and listen servers. the scripts will save each demo with a consecutive name (demo001, demo002), except for a listen server which always saves as demo000. the server one will only display recording in the console, while the network one will diplay on your screen. unfortunately Q4 doesnt tell you your recording on your hud like q3 did. to use just change the keybind and put in your autoexec.cfg, or save each in its own .cfg file and executute them from the console (exec myscript.cfg).
enjoy.
the network script is used when your a client (playing online, etc). the server script is for singleplayer and listen servers. the scripts will save each demo with a consecutive name (demo001, demo002), except for a listen server which always saves as demo000. the server one will only display recording in the console, while the network one will diplay on your screen. unfortunately Q4 doesnt tell you your recording on your hud like q3 did. to use just change the keybind and put in your autoexec.cfg, or save each in its own .cfg file and executute them from the console (exec myscript.cfg).
enjoy.
Code: Select all
// Q4 Network Recording script
// author: signa
bind "x" "vstr ua_record"
set "ua_record" "vstr ua_rec"
set "ua_rec" "addchatline recording_ON;recordNetDemo;set ua_record vstr ua_stop"
set "ua_stop" "stopNetDemo;addchatline recording_OFF;set ua_record vstr ua_rec"
Code: Select all
// Listen Server Recording script
// author: signa
// notes: singleplayer generates seperate demo files, listen server doesnt.
bind "x" "vstr ua_record"
set "ua_record" "vstr ua_rec"
set "ua_rec" "echo ** RECORDING ON **;recordDemo;set ua_record vstr ua_stop"
set "ua_stop" "stopRecording;echo ** RECORDING OFF **;set ua_record vstr ua_rec"