Demo recording script

Locked
§ìgñå
Posts: 210
Joined: Sat Jan 01, 2000 8:00 am

Demo recording script

Post by §ìgñå »

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.

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"
dzjepp
Posts: 12839
Joined: Wed Mar 28, 2001 8:00 am

Post by dzjepp »

Sucks the listen one generates half a gig demos. :)

It's a bit of a pain in the arse but you can launch a dedicated one and open a new instance of q4, and join your server so you have the light net demos.
Locked