Trouble With An Alias

BadluckBadluck Join Date: 2002-11-18 Member: 9263Members
edited November 2002 in Tech Support
Could someone tell me why this doesn't work?

bind mouse3 "br"
alias br "r_drawviewmodel 0; wait; bind mouse3 "bt"
alias bt "r_drawviewmodel 1; wait; bind mouse3 "br"

any help would be greatly appreciated

oh, and also, the error i get in the console after i hit mouse3 once is that it cant find br?

Comments

  • FinaFina Join Date: 2002-11-01 Member: 3267Members
    Should the alias be before the bind command?
  • OCybrManOOCybrManO Join Date: 2002-11-19 Member: 9345Members
    No, the alias only has to be defined before you press the button... the problem appears to stem from the fact that you can't have multiple levels of quotation marks in an alias (ie: get rid of the " right after mouse3).
  • SlycasterSlycaster Limited Edition Join Date: 2002-01-24 Member: 24Members, NS1 Playtester
    You do realize that using r_drawviewmodel 0 is considered cheating, and will never be allowed in any tournaments and leagues? Can we please play fair people, and if your FPS is that horrid, set your resolution lower.
  • absentabsent Join Date: 2002-11-13 Member: 8378Members
    <!--QuoteBegin--Cyanide+Nov 19 2002, 05:05 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Cyanide @ Nov 19 2002, 05:05 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->You do realize that using r_drawviewmodel 0 is considered cheating, and will never be allowed in any tournaments and leagues? Can we please play fair people, and if your FPS is that horrid, set your resolution lower.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Ahahah.

    AHAHAHAHAHAHAHHAAHHA.
    AHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHA.

    I think thats it... wait...

    AAAAAAAAAAAAAHHHHHHHHHAHAHAHAHAAHAHHAHAHAHAAHAHAHAH.
    Ok, much better.
  • AnkanAnkan Join Date: 2002-10-31 Member: 1858Members
    <!--QuoteBegin--Cyanide+Nov 19 2002, 10:05 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Cyanide @ Nov 19 2002, 10:05 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->You do realize that using r_drawviewmodel 0 is considered cheating, and will never be allowed in any tournaments and leagues? Can we please play fair people, and if your FPS is that horrid, set your resolution lower.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Lowering the res doesn't give me more FPS <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' valign='absmiddle' alt='confused.gif'><!--endemo--> .

    And the r_drawviewmodel 0 command doesn't improve my FPS either. I gotta have a wierd computer, right? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo-->
  • BeanHeadBeanHead Join Date: 2002-11-06 Member: 7230Members
    <!--QuoteBegin--Ankan+Nov 20 2002, 08:39 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Ankan @ Nov 20 2002, 08:39 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--QuoteBegin--Cyanide+Nov 19 2002, 10:05 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Cyanide @ Nov 19 2002, 10:05 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->You do realize that using r_drawviewmodel 0 is considered cheating, and will never be allowed in any tournaments and leagues?  Can we please play fair people, and if your FPS is that horrid, set your resolution lower.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Lowering the res doesn't give me more FPS <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' valign='absmiddle' alt='confused.gif'><!--endemo--> .

    And the r_drawviewmodel 0 command doesn't improve my FPS either. I gotta have a wierd computer, right? <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' valign='absmiddle' alt='smile.gif'><!--endemo--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Lowering your resolution should have no effect on your FPS. Unless you have some weird video card.

    The difference between 640x480 and 1280x1024 is the number of pixels that must be drawn. And that's faster than fast anyways. It's the same 3D computations.. (sorta, the gfx lib as to do a bit more to draw the same triangle just because it takes up more pixels)
  • IronShirtTomIronShirtTom Join Date: 2002-11-20 Member: 9412Members
    I figured out what your problems are and a way to actually do what you were trying to do.
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->bind mouse3 "br"
    alias br "r_drawviewmodel 0; wait; bind mouse3 "bt"
    alias bt "r_drawviewmodel 1; wait; bind mouse3 "br"<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    <b>Problems:</b>
    1) The alias "br" did not exist when you tried to bind it.
    2) The extra quotation marks may confuse the command.
    3) As of the end of the command line <i>alias br "r_drawviewmodel 0; wait; bind mouse3 "bt"</i> the alias bt also did not exist. (Does the wait command alter this? I don't know if wait makes the next command line execute before finishing the previous one. I haven't used it much.)
    <b>Solutions:</b>
    1) When creating and binding aliases always do the keybinds last AFTER all the aliases have been defined.
    2) You only ever need two quotation marks over the entire alias (I think).
    3) Although I don't agree that r_drawviewmodel 0 is a cheat or an exploit I still don't use it because I enjoy playing the game in it's intended form. If they intended to make it look like the Skulk's eyes are IN IT'S MOUTH then that's the way I'll play, but I don't think everyone should have to if they don't want to. That said- here's one way to toggle r_drawviewmodel using a single button (mouse3).

    Add this to whatever .cfg file you normally use.
    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->r_drawviewmodel 1
    bind mouse3 "exec dvm.cfg"<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
    Create another .cfg file. Name it "dvm" and add these two lines to the dvm.cfg file. These should be the only two lines in the dvm.cfg file.
    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->r_drawviewmodel 0
    bind mouse3 "exec (your normal cfg file).cfg"<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->

    Now whenever you hit your mouse3 button you will toggle the r_drawviewmodel command on/off. Hope this helps.
  • fiendfiend Join Date: 2002-11-15 Member: 8825Members
    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->Lowering your resolution should have no effect on your FPS. Unless you have some weird video card.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Wrong. Each and every pixel takes up memory and demands attention during processor cycles. Color depth has a major role to play as well.

    You could try increasing your Graphics Aperture in your BIOS, or possibly increasing the refresh rate of your monitor.

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->You do realize that using r_drawviewmodel 0 is considered cheating.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Be it cheating or not in your opinion, it is fair game in pubbing as it seems. Although it is an engine command, mod authors (and plug-in authors) can force r_drawviewmodel to 1.
  • RokiyoRokiyo A.K.A. .::FeX::. Revenge Join Date: 2002-10-10 Member: 1471Members, Constellation
    First off, turning off your models is cheating, as the models balance both marines and alien weapons by making them harder to use. I really dissaprove with any cheats of the sort.

    Ankan: Grow up.

    With that being said, I am a scripter at heart, and here are few tips:

    First off it doesn't matter if something does or does not exist when you bind it.
    <b>bind k "git"</b> would work fine even if the alias or command "git" did not exist. If it did matter, making looping scripts would be just about impossible.

    Secondly, you cannot use more than two quotation marks in any line. Anything after the second quotation mark will be ignored.
    For example this script would work fine:
    <b>bind x oom
    alias oom "say I am a cheating ho!; wait; kill; bind x moo"
    alias moo "say I beat kittens; wait; kill; bind x oom"</b>
Sign In or Register to comment.