Hi Darren; The first two lines which start with the word, alias, assign the name Grapple to perform the action of triggering an impulse. The plus before the first instance of Grapple means that the impulse it triggers will happen when the key you assign it to is pressed. The next alias, with the minus sign in front of the word Grapple, means that it's impulse will be triggered when the key you've just pressed, is released.
the next line, which starts with the word, bind, means that you'll bind a key you like, on your keyboard, to trigger the alias with the plus sign and the word Grapple. So to make this simple, Here's what would happen during a game, if you'd bound these commands to your X key. During the game, you press the letter X. The +Grapple alias is called, and impulse 24 is triggered, which fires the Grappling hook. Now, you let up on the X key. The alias which is labeled -Grapple is then called, which triggers impulse 25, which releases the hook. So basically the only thing in that code that you'd need to change would be the little bit surrounded by brackets in the line that begins with the word bind. I.E. it might look something like this: bind x "+Grapple" Does this make sense? If you wanted to fire the hook with one key and release it with another, you would change the name of the -Grapple alias to something else with a plus sign before it, as in; "+GrappleStop" and then add another bind line to call the other alias, as in: bind x "+Grapple" bind y "+GrappleStop" In this case, the X key would call the +Grapple alias, and fire the hook with impulse 24, and the y key would call the +GrappleStop alias and release the hook with impulse 25. In the case of apostrophe and semicolon, you may actually need to use the words apostrophe and semicolon rather than their symbols, but you could try using the symbols first to see if it works. It can be a bit picky sometimes. <smile> Anyway, I hope this makes sense and please do feel free to write back if it doesn't quite. K?… Have an awesome evening and best of luck!… Smiles, Cara :) On Mar 10, 2008, at 12:44 AM, Darren H wrote: > Hi Cara > I don't understand this, I'm not a programmer, lol. > > I assume we replace alias with something? > > So, for example, what would I enter into the config if I > want to shoot the grappling hook with the semi-colon, and > release it with the apostrophy. > > Also, is there a look up and look down impulse, might be > handy for stopping jet pack attacks. > > Cheers > Darren > ----- Original Message ----- > From: "Cara Quinn" <[EMAIL PROTECTED]> > To: "AGRIP User and Developer discussion list" > <[email protected]> > Sent: Monday, March 10, 2008 1:15 AM > Subject: Re: [AGRIP-discuss] Keybinding - grappling hook > > > Here's the syntax for what you've asked. > > > alias +Grapple "impulse 24" > alias -Grapple "impulse 25" > bind [your favorite key] "+Grapple" > > > Place the above three lines of code in either your mod.cfg, > autoexec.cfg or config.cfg files. If you want this to work > while > running JQ locally (on your own machine) then the mod.cfg > file is the > one in which to paste the code. If you want this keystroke > to be > available in any game you play, including online games, then > place the > above code in either autoexec.cfg or config.cfg. > > Also, you can change the word Grapple listed above to > anything you'd > like, as long as you change it in all instances. I.E. > change it > three times. Does this make sense?… > > As well, you'll need to assign [your favorite key] to a > key on your > keyboard. and eliminate the brackets around it. Actually > for > simplicity's sake, I'll suggest that you simply place this > code in > config .cfg for all games, and avoid autoexec.cfg, as you'd > need to > change the syntax ever so slightly! lol! > > Anyway, blah blah blah, and HTH and have a great rest of > your > weekend!… > > Smiles, > > Cara :) > > > On Mar 9, 2008, at 12:08 PM, lenin wrote: > >> Hello >> >> I need some help adjusting the keys to the grappling hook. >> Is it >> possible >> that whether i press the key the hook is launched and if i >> release >> the key >> again, it's retracted? Please give me the syntax to solve >> this >> problem. >> >> Thanks >> >> Tschapajew >> _______________________________________________ >> AGRIP-discuss mailing list >> [email protected] >> http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss > > --- > View my Online Portfolio at: > http://www.onemodelplace.com/CaraQuinn > > _______________________________________________ > AGRIP-discuss mailing list > [email protected] > http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss > > > _______________________________________________ > AGRIP-discuss mailing list > [email protected] > http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss --- View my Online Portfolio at: http://www.onemodelplace.com/CaraQuinn _______________________________________________ AGRIP-discuss mailing list [email protected] http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss
