After having a couple of my latest submissions being denied by steambans (players which I KNOW were hackers), I questioned whether or not my script was working. Come to find out, it wasn't working correctly. I would enter a demo name, then it would wait until AFTER the status call to record the demo for some reason. So obviously, steambans denied the submissions because there was no status call in the demo. So I modified my script a little and tested it to make sure everything is working correctly. The thing now is you hit the bound button the 1st time and enter a demo name (I use numbers because it's easy), after it starts recording, I wait a couple seconds and hit the same bound button a 2nd time to take a snapshot of the status call, then hit it a 3rd time to stop the recording. A little different, but it works well. Here's it is:
//---------- Waits -------------------------
alias w5 "wait; wait; wait; wait; wait"
alias w20 "w5; w5; w5; w5"
alias w100 "w20; w20; w20; w20; w20"
alias w500 "w100; w100; w100; w100; w100"
//---------- Recording a Demo --------------
alias dem1 "messagemode record; alias dem dem2"
alias dem2 "toggleconsole; w100; status; w20; snapshot; w5; toggleconsole; w5; cancelselect; alias dem dem3"
alias dem3 "stop; alias dem dem1"
alias dem "dem1"
I have "dem" bound to my delete key in my config.cfg:
bind "DEL" "dem"
Hope this helps some people out there
How to use this script:
(Delete key is the assumed bound key, but it can be bound to any key)
Hit the "Delete" key
Type a name for the recorded demo: 1 (whatever you want can go here, whatever is easiest for you to remember)
Hit the "Enter" key (this actually starts recording the demo with the name you just gave it)
Hit the "Delete" key for a 2nd time (this drops the console, types in "status" and takes a snapshot all at the same time, you'll barely notice this)
Hit the "Delete" key for a 3rd time to stop recording the demo