Fortress Forever

Fortress Forever (https://forums.fortress-forever.com/index.php)
-   Tips and Tutorials (https://forums.fortress-forever.com/forumdisplay.php?f=37)
-   -   Crouch Toggle (https://forums.fortress-forever.com/showthread.php?t=11892)

Hotspur 09-27-2007 05:33 PM

Crouch Toggle
 
Hi Everyone :) ,

In games such as "F.E.A.R." one has the option of turning on "crouch toggle" so that the player taps a key to duck, and stays that way until the key is tapped again.

Is there any way to do this in FF?

Hammock 09-27-2007 06:27 PM

This script might work to do what you're asking.

alias duckon "+duck;holdduck duckoff"
alias duckoff "-duck;holdduck duckon"
alias holdduck duckon
bind "SHIFT" holdduck

I'm at work right now so I can't test it, nor look at my previous scripts for accurate syntax. But something along those lines should probably work.

Cheers,
Hammock

DarK_TaO 09-27-2007 06:37 PM

http://www.fortress-forever.com/foru...639#post278639

Last post ^^

Hotspur 09-27-2007 08:15 PM

Thanks guys, I'll give those a shot.

Hotspur 09-27-2007 11:28 PM

Unfortunately, Hammock, the script you proposed doesn't work and I don't know enough about FF script to fix it, but I still appreciate your help.

DarK_TaO, your script works well, but I needed to bind an additional key to turn crouch off. Is there any way to toggle it on and off in one key?

paranoidkirb 09-27-2007 11:46 PM

A simple oversight in his code really.

Code:

//=======================
//---- Toggle Crouch ----
//=======================

alias crouch+        "+duck; wait; alias crouch crouch-"
alias crouch-        "-duck; wait; alias crouch crouch+"
alias crouch        "crouch+"

bind "CTRL" "crouch"

I didn't pick up the error until just now.

DarK_TaO 09-28-2007 03:17 AM

Quote:

Originally Posted by Hotspur
Unfortunately, Hammock, the script you proposed doesn't work and I don't know enough about FF script to fix it, but I still appreciate your help.

DarK_TaO, your script works well, but I needed to bind an additional key to turn crouch off. Is there any way to toggle it on and off in one key?

Omg what a silly mistake, anyway, correcte (thanks to you people) and, your last request has been added. =) check out the config thread.

Hotspur 09-28-2007 03:31 AM

Awesomer n' Hell. Thanks a bunch guys. It works like a dream. It makes sniping while crouched a whole lot easier.

Hammock 09-28-2007 03:38 AM

Nope mine don't work, I thought maybe it'd work the same as a quick switch script but alas it did not. Oh well as long as his worked :)

Cheers,
Hammock

PorkChopVII 09-29-2007 06:42 PM

Quote:

Originally Posted by Hammock
Nope mine don't work, I thought maybe it'd work the same as a quick switch script but alas it did not. Oh well as long as his worked :)

Cheers,
Hammock

Hammock you had the idea, just forgot to add a simple command.

alias duckon "+duck;alias holdduck duckoff"
alias duckoff "-duck;alias holdduck duckon"
alias holdduck duckon
bind "SHIFT" holdduck

still use it the way you intended, dont give into others ways! unless you want to.. reason why i say this i encourage people who take stabs at things, you in the ballpark, think if you werent distracted youll be the one that people would be thankin in this thread :D


All times are GMT. The time now is 03:01 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.