Halp me

Discussion in 'Coding' started by communism, Sep 7, 2009.

  1. communism

    communism poof

    Messages:
    4,095
    Likes Received:
    2
    Trophy Points:
    0
    with my script, i tried to get it working like a year ago
    I want my mouse1 (fire) button to taunt everytime I shoot.


    I had a script that shoulda done it before (by normal scripting code i guess shit) but it didn't work, however it worked if it was +attack 2 (melee)

    HALP
     
  2. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    well my understanding is only from quake, but from what i read its similar to this in source.

    the problem is, that you need to keep your button pressed to fire (unless you only want single shot and no bursts) and, at least quake, has no "Button Up Event".

    you can only do

    bind "MOUSE1" "attack; emp_menu_quickcmd 5 2" which should result in a single shot and the taunt.

    another possibility would be waits, but i ensure you, you dont want anything with waits ^^
     
  3. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    no.

    Alias +tauntshot "+attack; emp_menu_quickcmd 5 2"
    Alias -tauntshot "-attack; emp_menu_quickcmd 5 2"
    bind mouse3 +tauntshot

    Now you'll fire normaly, but taunt when you start and stop firing.
     
  4. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    wouldnt that fix it then?

    Alias +tauntshot "+attack; emp_menu_quickcmd 5 2"
    Alias -tauntshot "-attack"
    bind mouse3 +tauntshot
     
  5. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    I don't see what was wrong with mine.

    If it doesn't work I'd say there needs to be some waits in there.
     
  6. recon

    recon SM Support Dev

    Messages:
    2,348
    Likes Received:
    0
    Trophy Points:
    0
    I think it's
    Code:
    alias +tauntshot "+attack; emp_menu_quickcmd 5 2"
    alias -tauntshot "-attack"
    bind mouse3 tauntshot
    
    Please post here if you're going to be using the above bind. That way, I can take care of your perma ban now.
     
  7. Kylegar

    Kylegar Specstax Rule

    Messages:
    2,170
    Likes Received:
    0
    Trophy Points:
    0
    no, it's +tauntshoot. -tauntshoot will automagicly be called when you release the button.
     
  8. Demented

    Demented Member

    Messages:
    2,337
    Likes Received:
    0
    Trophy Points:
    0
    +tauntshot, not +tauntshoot. +tauntshoot does sound better.

    I'm considering it, along with the Charge squad ability as an hmg-toting rifleman with speed upgrade. Assuming it actually works, that is. Otherwise I'll just bind the quickmenu:taunt to the mousewheel.

    And if that permaban is forthcoming, I can use it as an excuse to perfect my beloved rollbar-less jeep reskin.
     
  9. Empty

    Empty Member

    Messages:
    14,912
    Likes Received:
    11
    Trophy Points:
    0
    OMG WE'RE TAUNTING LOLBAN
     
  10. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    You're doing one better tham bumgravy's? Hell yes. Awesome.
     
  11. Demented

    Demented Member

    Messages:
    2,337
    Likes Received:
    0
    Trophy Points:
    0
    I didn't say I'm going to release it. =P
     
  12. recon

    recon SM Support Dev

    Messages:
    2,348
    Likes Received:
    0
    Trophy Points:
    0
    sv_pure will make it useless. Don't waste your time.
     
  13. Deiform

    Deiform Member

    Messages:
    2,492
    Likes Received:
    10
    Trophy Points:
    0
    Whats the arty strike bind?
     
  14. Trickster

    Trickster Retired Developer

    Messages:
    16,576
    Likes Received:
    46
    Trophy Points:
    0
    emp_menu_quickcmd 6 3
     
  15. flasche

    flasche Member Staff Member Moderator

    Messages:
    13,299
    Likes Received:
    168
    Trophy Points:
    0
    HTH

    </filler>
     
  16. communism

    communism poof

    Messages:
    4,095
    Likes Received:
    2
    Trophy Points:
    0
    anyone tested this shit?
    I havent played since i posted i think
    (if you get it to work PM me, thisis my idea nd I totally copy righted it and shit)
     
  17. =PVCS) Cpatton

    =PVCS) Cpatton Member

    Messages:
    1,822
    Likes Received:
    6
    Trophy Points:
    0
    wow, this thread is full of fail.

    Although next time I get off my ass and rebind my empires keys, I'll be sure use tauntshoot.



    However, you guys are noobs. Especially if your spamming smg for a few seconds, you want to make -tauntshoot where the taunt is actually called. That way, when you are done shooting, they can actually hear the whole taunt. Newbie scripters -_-.
     
  18. communism

    communism poof

    Messages:
    4,095
    Likes Received:
    2
    Trophy Points:
    0
    it worksssss
     

Share This Page