Author Topic: Documentation on config files and aliasing?  (Read 4447 times)

{appy Hamper

  • Guest
Documentation on config files and aliasing?
« on: April 29, 2006, 01:26:56 PM »
Is there a link, or some guide you can point me to that explains the variables and terminologies of config. files? Especially alias-ing.

Also - Is there any way to set a function key for alternate uses of buttons?  ex. holding "shift" while pressing "mouse1"  equals "kick" (or whatever combination)
« Last Edit: August 04, 2015, 01:30:42 AM by webhead »

GreenAffairz

  • Autococker
  • Posts: 515
Re: Couple Q's
« Reply #1 on: April 29, 2006, 02:04:59 PM »
All you have to do is goto the top of the site, there is a Link called Docs. Then go down for guides on all sorts of commands and stuff.

Herron

  • VM-68
  • Posts: 235
Re: Couple Q's
« Reply #2 on: April 29, 2006, 02:08:05 PM »
Consolidated link at: http://dpball.com/forums/index.php?topic=1559.0

There is currently no option to use modifier keys in conjunction with another key (i.e. shift+b = empty_co2)

As for aliasing... you can bind a key to do more than one thing.  For example if you wanted to bind a key to duck and shoot at the same time, and when you release it to stop shooting and stand up, it would look like these following lines:

Code: [Select]
alias +duckshoot "+movedown;+attack"
alias -duckshoot "-movedown;-attack"
bind KEY +duckshoot

Some people also like switching hands while strafing.  (I have no idea why, but I've seen this asked at least 3 times on the servers, so I'll do that one too)

Code: [Select]
alias +lefty "+moveleft;hand 0"
alias -lefty "-moveleft;hand 2"
bind KEY +lefty

alias +righty "+moveright;hand 1"
alias -righty "-moveright;hand 2"
bind KEY +righty

Whenever binding a key to do more than one command at a time, you must put quotation marks (" ") around the line, and put a semicolon ( ; ) in between each separate command.

One such command I use is when I have a 100 round hopper and I want to drop it and pick up at 200 round hopper, but I don't want to only have 40 ammo in my new hopper if my 100 round hopper was full. Just be careful of your surroundings, because this will drop up to 75 ammo in increments of 25, so if you have something like 30 ammo, 55 ammo, or 80 ammo you're only going to be left with 5 before you pick it all back up.

Code: [Select]
bind KEY "dropammo;dropammo;dropammo;drophopper"

{appy Hamper

  • Guest
Re: Couple Q's
« Reply #3 on: April 29, 2006, 07:28:45 PM »
thanks, I appreciate your time!

ok so the + - thing confused me earlier.

am I correct to say:

alias +whateverIdecidetocallthisaction "+action1;+action2;+action3..."
alias -whateverIdecidetocallthisaction "-action1;-action2;-action3..."
bind "themagicbutton" "+whateverIdecidetocallthisaction"

now this automatically puts in:

bind "-themagicbutton" (release of button) "-whateverIdecidetocallthisaction"

right?
or would I have to push "themagicbutton" again to stop its actions?

S8NSSON

  • Autococker
  • Posts: 709
Re: Couple Q's
« Reply #4 on: April 30, 2006, 12:02:54 AM »
alias h1 "echo (R);hand 0;seta crosshair 20;bind MOUSE3 h2"
alias h2 "echo (L);hand 1;seta crosshair 22;bind MOUSE3 h1"
//alias h3 "echo (M);hand 2;seta crosshair 21;bind MOUSE3 h1"

bind MOUSE3 ""h1    // mid mouse button to switch hands

Herron

  • VM-68
  • Posts: 235
Re: Couple Q's
« Reply #5 on: April 30, 2006, 08:45:05 AM »
You are correct in that it kind of automatically binds -whateverIdecidetocallthisaction to whenever you release the magic button.  You don't need to push it again to stop it.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Couple Q's
« Reply #6 on: May 01, 2006, 12:57:21 PM »
There's no built-in way to have key combinations do different things, though if you really wanted to, you could probably do it through some fancy aliases.

{appy Hamper

  • Guest
Re: Couple Q's
« Reply #7 on: May 04, 2006, 12:37:08 PM »
Yeah after I thought about it, I decided it would actually be better to just have some aliases that assigned and re-assigned mouse1. (instead of trying to hold shift, move, and still click accurately - which would be a pain in encoding too, I think) I ended up with:

alias adkill "bind mouse1 viewgib;bind g noadkill;echo gibber
alias noadkill "bind mouse1 +attack;bind g adkill;echo normal
bind "g" "adkill"

This works pretty well.  Especially for that guy that keeps spawn killing me...

GreenAffairz

  • Autococker
  • Posts: 515
Re: Couple Q's
« Reply #8 on: May 05, 2006, 10:45:19 AM »
is there a way to make it when you are eliminated you say something?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Couple Q's
« Reply #9 on: May 05, 2006, 11:30:48 AM »
Like "lfmao"?  That would be annoying.  So, no.

lekky

  • Autococker
  • Posts: 2449
Re: Couple Q's
« Reply #10 on: May 05, 2006, 01:00:08 PM »
lol, that should be added to the criteria for a global ban imo.

Dirty_Taco

  • Map Committee
  • Autococker
  • Posts: 1630
_
« Reply #11 on: May 05, 2006, 05:05:44 PM »
Post removed
« Last Edit: July 26, 2010, 12:47:42 AM by Dirty_Taco »

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Couple Q's
« Reply #12 on: May 06, 2006, 11:43:49 AM »
Code: [Select]
alias ns1 "say lmfao; bind r ns2"
alias ns2 "say lmao; bind r ns3"
alias ns3 "say lucky shot; bind r ns4"
alias ns4 "say 2gud; bind r ns1"

bind r ns1

It's not random but it should do the trick.

Smokey

  • Autococker
  • Posts: 1172
Re: Couple Q's
« Reply #13 on: May 06, 2006, 04:26:19 PM »
Like "lfmao"?  That would be annoying.  So, no.
*lmfao

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Couple Q's
« Reply #14 on: May 08, 2006, 12:22:23 PM »
I think smokey missed the joke. :)

Playah

  • 68 Carbine
  • Posts: 485
Re: Couple Q's
« Reply #15 on: May 09, 2006, 05:01:50 AM »
* Playah doesnt believe it was a joke....heh

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Couple Q's
« Reply #16 on: May 09, 2006, 10:59:24 AM »
Playah obviously hasn't played with er33t. ;)

Playah

  • 68 Carbine
  • Posts: 485
Re: Couple Q's
« Reply #17 on: May 10, 2006, 10:40:50 AM »
 ;D