Demo recording and playback utility

Discussion in 'Team Fortress 2' started by Cro-Mag, 13 Aug 2008.

  1. Demo recording and playback utility

    I wanted demo recording and playback at the press of a button but could not find any good utilities out there so I wrote my own.

    To record demos you just press F8, you can record up to 7 separate demos all just by pressing F8, it will just assign a new name to the next demo.

    You can playback any of those 7 demos by pressing the F1 through F7 keys. F9 pauses the demo you are watching. F10 is slow motion so you can watch the action slowed down. F11 is normal playback speed, F12 is fast forward.

    Just paste the below into your autoexec.cfg (btw the spoiler tags on this forum aren't working)



    Code:
    //Recording
    bind F8 "+recordGame_0"
    alias "+recordGame_0" "record demo_0; ;  echo recording first demo"
    alias "-recordGame_0" "; bind F8 +stopRecording_0"
    alias "+stopRecording_0" "stop; ; echo demo stopped"
    alias "-stopRecording_0" "; bind F8 +recordGame_1"
    alias "+recordGame_1" "record demo_1; ; echo recording second demo"
    alias "-recordGame_1" ";bind F8 +stopRecording_1"
    alias "+stopRecording_1" "stop; ; echo demo stopped"
    alias "-stopRecording_1" "wait; bind F8 +recordGame_2"
    alias "+recordGame_2" "record demo_2; ; echo recording third demo"
    alias "-recordGame_2" ";bind F8 +stopRecording_2"
    alias "+stopRecording_2" "stop; ; echo demo stopped"
    alias "-stopRecording_2" "wait; bind F8 +recordGame_3"
    alias "+recordGame_3" "record demo_3; ; echo recording forth demo"
    alias "-recordGame_3" ";bind F8 +stopRecording_3"
    alias "+stopRecording_3" "stop; ; echo demo stopped"
    alias "-stopRecording_3" "wait; bind F8 +recordGame_4"
    alias "+recordGame_4" "record demo_4; ; echo recording fifth demo"
    alias "-recordGame_4" ";bind F8 +stopRecording_4"
    alias "+stopRecording_4" "stop; ; echo demo stopped"
    alias "-stopRecording_4" "wait; bind F8 +recordGame_5"
    alias "+recordGame_5" "record demo_5; ; echo recording sixth demo"
    alias "-recordGame_5" ";bind F8 +stopRecording_5"
    alias "+stopRecording_5" "stop; ; echo demo stopped"
    alias "-stopRecording_5" "wait; bind F8 +recordGame_6"
    alias "+recordGame_6" "record demo_6; ; echo recording seventh demo"
    alias "-recordGame_6" ";bind F8 +stopRecording_6"
    alias "+stopRecording_6" "stop; ; echo demo stopped"
    alias "-stopRecording_6" "wait; bind F8 +recordGame_0; echo out of bounds"
    
    //Playback
    bind F1 "playdemo demo_0; demo_timescale 1; echo loading 1"
    bind F2 "playdemo demo_1; demo_timescale 1; echo loading 2"
    bind F3 "playdemo demo_2; demo_timescale 1; echo loading 3"
    bind F4 "playdemo demo_3; demo_timescale 1; echo loading 4"
    bind F5 "playdemo demo_4; demo_timescale 1; echo loading 5"
    bind F6 "playdemo demo_5; demo_timescale 1; echo loading 6"
    bind F7 "playdemo demo_6; demo_timescale 1; echo loading 7"
    
    //Playback Speed control
    bind F9 "Demo_togglepause"
    bind F10 "demo_timescale 0.3; echo slow-mo"
    bind F11 "demo_timescale 1; echo normal speed"
    bind F12 "demo_timescale 3; echo fast forward"
    Demo_quitafterplayback 0
     
  2. Geit Coding wizard!

    Re: Demo recording and playback utility

    Nice work Cro-mag, Waebi will love it and tell the GM members to get recording more than ever :D
     
  3. Re: Demo recording and playback utility

    GET RECORDING MORE THAN EVAR, enough mathes atm and in future ;)
     

Users Viewing Thread (Users: 0, Guests: 0)

Users found this page by searching for:

  1. Demo Record aliases

    ,
  2. bind pentru demo

    ,
  3. playdemo tf2 f6

    ,
  4. demo_timescale,
  5. binduri pentru demo playback,
  6. bind demo recording