Auto record demo script

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending SlenderSWAT points.
  • Post: Give SlenderSWAT your thoughts on this Thread.
  • Flag: Alert moderators and warn members of a problem with this Thread.
  • Watch: Get notified when this Thread is updated.
Mascot

Stop Lurking!

Become a Bananite

Already a Bananite? Login

Eyo guys,
So few minutes ago i was playing on some random server, then i made 1v10 with a scout, nice right? And quess what, SERVER DIDN'T RECORD DEMO! So i just wanted to ask you if is it possible to make something like a script that records demo when i join server?

Thanks :)

Posts

  • 5mo
    Harris avatar
    Harris Offline
    Member Joined 8y
    18,909 points Ranked 228th
    36 medals 1 legendary 6 rare
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • 6 years a member Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • GameBanana’s Christmas Giveaway 2015 Day Twenty-One Winner! Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    You can type record ' demoname ' in console and it will start recording a demo.
    aaabdurazak! avatar
    Mantra
    aaabdurazak!
  • 5mo
    SlenderSWAT avatar
    Member Joined 2y
    1,166 points Ranked 3996th
    10 medals 1 legendary 2 rare
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • GameBanana’s Christmas Giveaway 2016 Day Twenty-Two Winner! Medal icon
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 2016 Survey Participant Medal icon
    Posted by Harris

    You can type record ' demoname ' in console and it will start recording a demo.

    I know, but i need demo to record automatically when i join server. I'm lazy to type that in console x)
    Potato
  • 5mo
    Harris avatar
    Harris Offline
    Member Joined 8y
    18,909 points Ranked 228th
    36 medals 1 legendary 6 rare
    • 15+ Entries! GameBanana’s Christmas Giveaway 2015 Medal icon
    • 6 years a member Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • GameBanana’s Christmas Giveaway 2015 Day Twenty-One Winner! Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    Posted by SlenderSWAT

    Posted by Harris

    You can type record ' demoname ' in console and it will start recording a demo.

    I know, but i need demo to record automatically when i join server. I'm lazy to type that in console x)
    Then you can bind the command to a key. Like

    bind "mouse3" "record demo"

    When you join a server you press the middle mouse button ( or your desired key ) and the game will start record. However typing the command by yourself takes literally one second but whatever. This is the quickest method I can think of. If you want it automatic you should be able to do it by using the autoexec.cfg file.
    aaabdurazak! avatar
    Mantra
    aaabdurazak!
  • 5mo
    SlenderSWAT avatar
    Member Joined 2y
    1,166 points Ranked 3996th
    10 medals 1 legendary 2 rare
    • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
    • GameBanana’s Christmas Giveaway 2016 Day Twenty-Two Winner! Medal icon
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 2016 Survey Participant Medal icon
    Posted by Harris

    Posted by SlenderSWAT

    Posted by Harris

    You can type record ' demoname ' in console and it will start recording a demo.

    I know, but i need demo to record automatically when i join server. I'm lazy to type that in console x)
    Then you can bind the command to a key. Like

    bind "mouse3" "record demo"

    When you join a server you press the middle mouse button ( or your desired key ) and the game will start record. However typing the command by yourself takes literally one second but whatever. This is the quickest method I can think of. If you want it automatic you should be able to do it by using the autoexec.cfg file.

    I know that too xD
    But chances that i will forget to press is 9/10
    I already binded mouse4 and i still forget to press that button...
    Ik, i'm an lazy idiot...
    • Funny x 1
    • Agree x 1
    • Dumb x 1
    • Fail x 1
    Potato
  • 4mo
    S. Tibbze avatar
    S. Tibbze Offline
    Member Joined 5y
    Well you tried all the possibilities I guess.
    The autoexec way wont work aswell.

    There's a way tho that I just tested. 

    If you use the VGUI menus instead of the classic ones.

    find these 2 files :

    resource/ui/classmenu_ct.res and classmenu_ter.res

    open the ct one for example.
    and search for the class names like "gsg9,urban,sas,gign"

    you will see a lot of codes there.
    find the one called "command"

    urban - "joinclass 1;record ctdemo1"
    gsg9 - "joinclass 2;record ctdemo2"
    sas - "joinclass 3;record ctdemo3"
    gign -  "joinclass 4;record ctdemo4"

    same way you can edit the classmenu_ter file.

    terror - "joinclass 1;record tdemo1"
    leet- "joinclass 2;record tdemo2"
    arctic - "joinclass 3;record tdemo3"
    guerilla-  "joinclass 4;record tdemo4"

    in this way when you select your character it will starts recording a demo automatically.
     avatar
    Mantra

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Submitter

SlenderSWAT avatar
Member Joined 2y
1,166 points Ranked 3996th
10 medals 1 legendary 2 rare
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
  • GameBanana’s Christmas Giveaway 2016 Day Twenty-Two Winner! Medal icon
  • Returned 1000 times Medal icon
  • One month a member Medal icon
  • 6 months a member Medal icon
  • 2016 Survey Participant Medal icon

SlenderSWAT
Send a Private Message to the submitter

Category

Stats

Posts
5
Views
364
Date Added
5mo
bcp.crwdcntrl.net tracking pixel