Trouble With An Alias
Badluck
Join Date: 2002-11-18 Member: 9263Members
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?
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
Ahahah.
AHAHAHAHAHAHAHHAAHHA.
AHAHAHAHAHAHAHAHAHAHAHAHAHAHHAHAHA.
I think thats it... wait...
AAAAAAAAAAAAAHHHHHHHHHAHAHAHAHAAHAHHAHAHAHAAHAHAHAH.
Ok, much better.
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-->
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)
<!--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.
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.
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>