Author Topic: Share Config/Console Code Stuff Thread  (Read 1246 times)

Offline Costigan_Q2

  • Jr. Member
  • **
  • Posts: 70
  • Quake ][ Forever
    • View Profile
  • Rated:
Re: Share Config/Console Code Stuff Thread
« Reply #15 on: October 17, 2024, 11:19:50 AM »
There is also the
Quote
unbind
command.
unbind <key>

Indeed.

Here is how you use config/console code to defunctionalise a button:

//defunctionalise a button bind
alias ALIAS ""
bind BUTTON "ALIAS"

Or do it this way:
bind BUTTON ""

By placing nothing between quotation marks in code you defunctionalise a button.

I neglected to expand on the greater purpose/origin of this post so here goes:

My //many grapple hooks bind post contains code designed to allow you to switch between a wide variety of commands and one ultra-simple instance of button defunctionalisation, it inspired my //defunctionalise a button bind post.

The two binds below show you a blueprint for how to combine commands with button defunctionalisation.


//alternate a single command with button defunctionalisation bind
alias ALIAS1 "bind BUTTON1 ALIAS2;bind BUTTON2 COMMAND1;echo YES COMMAND1"
alias ALIAS2 "bind BUTTON1 ALIAS1;bind BUTTON2 ALIAS3;echo NO COMMAND"
alias ALIAS3 ""
bind BUTTON1 "ALIAS1"
bind BUTTON2 "ALIAS3"

BUTTON1 = change command using
BUTTON2 = use equipped command


//alternate multiple commands with button defunctionalisation bind
alias ALIAS1 "bind BUTTON1 ALIAS2;bind BUTTON2 COMMAND1;echo YES COMMAND1"
alias ALIAS2 "bind BUTTON1 ALIAS3;bind BUTTON2 COMMAND2;echo YES COMMAND2"
alias ALIAS3 "bind BUTTON1 ALIAS1;bind BUTTON2 ALIAS4;echo NO COMMAND"
alias ALIAS4 ""
bind BUTTON1 "ALIAS1"
bind BUTTON2 "ALIAS4"

BUTTON1 = change command using
BUTTON2 = use equipped command
  • 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
Elysium Brightskins Collection.zip @ Elysium bright skins

Offline Costigan_Q2

  • Jr. Member
  • **
  • Posts: 70
  • Quake ][ Forever
    • View Profile
  • Rated:
Re: Share Config/Console Code Stuff Thread
« Reply #16 on: October 17, 2024, 02:23:11 PM »
Here is how you use config/console code to defunctionalise a button:

//defunctionalise a button bind
alias ALIAS ""
bind BUTTON "ALIAS"

Or do it this way:
bind BUTTON ""

By placing nothing between quotation marks in code you defunctionalise a button.

There is also the
Quote
unbind
command.
unbind <key>

Do this:
alias ALIAS ""
bind BUTTON "ALIAS"

Or this:
bind BUTTON ""

Or this:
unbind BUTTON

Nice.  :beer2:
  • 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
Elysium Brightskins Collection.zip @ Elysium bright skins

 

El Box de Shoutamente

Last 10 Shouts:

 

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.
 

Costigan_Q2

October 09, 2024, 01:35:05 PM
Et tu rikwad?

Please don't feed the degenerate lies of a sexually-perverted devil-worshipping barking dog like Focalor.
 

RyU

October 09, 2024, 07:21:23 AM
lol
Been here since 2006


But I don’t mean you personally

By you I meant WE all suck at Q2
I guess I was just trying to be funny …

 
 

Costigan_Q2

October 08, 2024, 06:16:31 PM
Who the fuck are you?

Stop feeding degenerate lies, there are too many liberals and commies in this filthy rotting husk of a gaming community as it is.
 

RyU

October 08, 2024, 06:18:00 AM
whether you want to be a man a woman, a women that wants to be a man, a man that wants to be a woman,
a broom,
a mop,
Or even a horse,
Just know you still suck at Q2 ..  ;)
 

RyU

October 08, 2024, 02:38:09 AM
Some funny shit  :D

Show 50 latest
Welcome, Guest. Please login or register.
October 22, 2024, 10:44:29 AM

Login with username, password and session length