Author Topic: HALP! MY ALIASES R BROKED!  (Read 2220 times)

Offline |iR|Focalor

  • Irrepressibly Profuse Member
  • *
  • Posts: 15764
  • Help Destroy America: VOTE DEMOCRAT
    • View Profile
    • Focalor's Horrible Website: We Rape You Til The Room Stinks
  • Rated:
HALP! MY ALIASES R BROKED!
« on: October 10, 2008, 04:05:56 PM »
I'm an alias noob at the moment. I'm trying to write a series of aliases that will make the crosshair change colors when it fires. I'm only using it for the railgun. Ideally, I want it to change to red when it's fired, blue as it's reloading, and green when it's ready to fire again. I guess I'll paste what I've come up with so far. This is in a seperate cfg file that execs when I hit my railgun key. I have another cfg that execs when I switch to any other weapon that re-binds mouse1 back to "+attack".

bind mouse1 "+railgun_attack"
alias +railgun_attack "+attack; w2; crosshair 1; w2; crosshair 2; w2; crosshair 3"
alias -railgun_attack "-attack"
alias w1 "wait; wait; wait; wait; wait; wait; wait; wait; wait; wait;"
alias w2 "w1; w1; w1; w1; w1; w1; w1; w1;"

This causes a slight pause as it switches to each crosshair after I fire, but it's also causing my game to lag out every time I fire. Any numbskull can see that I have 80 occurances of the "wait" command between the crosshairs and that's what is causing the lag. What I'm wondering is if there is some other command I can use to delay the input time of a following command in order to stretch out the time that these crosshairs appear before they change.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline R1CH

  • Sr. Member
  • ****
  • Posts: 341
    • View Profile
  • Rated:
Re: HALP! MY ALIASES R BROKED!
« Reply #1 on: October 10, 2008, 04:07:55 PM »
There is no way to add a delay like that.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline Whirlingdervish

  • Super ShortBus Extravaganza
  • Illimitable Sesquipedalian Member
  • *
  • Posts: 6384
    • View Profile
    • The Dervish Depository
  • Rated:
Re: HALP! MY ALIASES R BROKED!
« Reply #2 on: October 10, 2008, 04:21:08 PM »
kinda like you've done so far, make one alias that does the crosshair switching and waiting and shooting all in one and call it rgattack.

when your weapon switching bind/alias changes your active weapon to the railgun, include an 2nd alias that changes your key that's bound to +attack to rgattack.

make a 3rdalias to call that toggles it back to normal behavior when you switch to any other weapon and include this alias in all of your weapon switch binds that aren't putting an rg in your hand, just to make sure it always reverts to normal behavior.

it might still have problems tho, since when you run out of rg ammo it will autoswitch to the next weapon upon trying to fire and miss the step that would have returned the attack key to its standard behavior.


include all of this in a file thats just the crosshair switchin .cfg

then only exec the crosshair switchin cfg once, at the end of your main one, so that it isnt being added to the games settings over and over every time you shoot.


this might get rid of some of the lag and allow the kind of behavior you're looking to add, although it might not be possible to get it to work seamlessly and I think the +waits are the only way to make delays. (they might not let you input other commands like movement keys while the client is waiting, so it could be a problem)
« Last Edit: October 10, 2008, 04:23:43 PM by Whirlingdervish(Q2C) »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline |iR|Focalor

  • Irrepressibly Profuse Member
  • *
  • Posts: 15764
  • Help Destroy America: VOTE DEMOCRAT
    • View Profile
    • Focalor's Horrible Website: We Rape You Til The Room Stinks
  • Rated:
Re: HALP! MY ALIASES R BROKED!
« Reply #3 on: October 10, 2008, 04:53:17 PM »
To derv:
Yeah, that's what I did. For each weapon bind I have  "exec attack.cfg; use blaster; crosshair 1" (the only thing in that cfg is bind mouse1 "+attack". For the railgun bind I have "exec railgun.cfg; use railgun; crosshair 3" and the series of aliases I posted are found in the railgun.cfg. And like you mentioned, it isn't allowing other input at the time that all the wait commands are being run. So if I strafe to the left as I fire, I continue strafing left even if try to strafe right.

To R1CH:
:bigcry: DAMMIT MAN! Oh well, it was nifty idea anyway.

Many thanks to you both for the quick replies.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.
 

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM
 

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 16, 2024, 08:22:07 PM

Login with username, password and session length