Need help with spy script

I want to make it so when i shoot or stab i also disguise right afterward

By 69WeepingRebel69 10 months ago

I tried doing a plus and minus alias on my primary fire button so that when the button is pressed it fires and when it's released i activate my last disguise but i ended up breaking the attack key and having to delete the cfg and re-installing it so i gave up. Help would be much appreciated!

5 posts 482 views
  • You must be a member

Replies

  • Devieus's Levels
    • P3: Peasant
      Points: 23,403
    • E2: Guide
      EF: 26
    • C2: Treehouse Member
    • A4: Graduate
      Account Age: 3 years
    Username
    Devieus
    Posted 10 months ago

    There's your average and simple

    bind mouse1 +attack;lastdisguise

    Though this doesn't actually use your last disguise, just a disguise; then there's

    alias something1 "+attack; alias something something2"
    alias something2 "-attack;lastdisguise; alias something something1"
    alias something something1
    bind mouse1 something

    Which will do exactly what you want, but at two mouse clicks instead of one.

    User Title
    Sentinel of the TV remote
  • 69WeepingRebel69's Levels
    • P1: Beggar
      Points: 14
    • C1: Member
    • A2: Tenderfoot
      Account Age: 10 months
    Posted 10 months ago

    i'm happy you're helping but the first one didn't work and i don't know what's up with all the somethings in the second on. I was hoping for something i could simply copy and paste into the console.

    Bananite
  • Glecas's Levels
    • P1: Beggar
      Points: 146
    • C1: Member
    • A2: Tenderfoot
      Account Age: 11 months
    Posted 10 months ago

    This script should do the job:

    // =======================
    // Spy Attack and Disguise
    // =======================
    alias +spy_attdisg "+attack"
    alias -spy_attdisg "-attack; lastdisguise"
    
    bind "MOUSE1" +spy_attdisg
    

    use in a .cfg file.

    Bananite
  • 69WeepingRebel69's Levels
    • P1: Beggar
      Points: 14
    • C1: Member
    • A2: Tenderfoot
      Account Age: 10 months
    Posted 10 months ago

    thank you so much, it worked :D

    Bananite
  • Glecas's Levels
    • P1: Beggar
      Points: 146
    • C1: Member
    • A2: Tenderfoot
      Account Age: 11 months
    Posted 10 months ago

    =)

    Bananite
  • You must be a member