Fortress Forever

Go Back   Fortress Forever > Community > Tips and Tutorials

Reply
 
Thread Tools Display Modes
Old 09-27-2007, 04:33 PM   #1
Hotspur
Player
 
Hotspur's Avatar
 
Join Date: Sep 2007
Location: Kentucky
Class/Position: Defense
Gametype: First-Person Shooter
Posts Rated Helpful 0 Times
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?
Hotspur is offline   Reply With Quote


Old 09-27-2007, 05:27 PM   #2
Hammock
D&A Member
 
Join Date: Sep 2007
Posts Rated Helpful 13 Times
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
Hammock is offline   Reply With Quote


Old 09-27-2007, 05:37 PM   #3
DarK_TaO
Mapper ^^
 
Join Date: Apr 2007
Location: yes (:
Posts Rated Helpful 0 Times
Send a message via ICQ to DarK_TaO Send a message via MSN to DarK_TaO
http://www.fortress-forever.com/foru...639#post278639

Last post ^^
DarK_TaO is offline   Reply With Quote


Old 09-27-2007, 07:15 PM   #4
Hotspur
Player
 
Hotspur's Avatar
 
Join Date: Sep 2007
Location: Kentucky
Class/Position: Defense
Gametype: First-Person Shooter
Posts Rated Helpful 0 Times
Thanks guys, I'll give those a shot.
Hotspur is offline   Reply With Quote


Old 09-27-2007, 10:28 PM   #5
Hotspur
Player
 
Hotspur's Avatar
 
Join Date: Sep 2007
Location: Kentucky
Class/Position: Defense
Gametype: First-Person Shooter
Posts Rated Helpful 0 Times
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?
Hotspur is offline   Reply With Quote


Old 09-27-2007, 10:46 PM   #6
paranoidkirb
 
Join Date: Mar 2007
Class/Position: O/D Pyro
Gametype: Invade and Defend
Posts Rated Helpful 0 Times
Send a message via AIM to paranoidkirb Send a message via MSN to paranoidkirb Send a message via Yahoo to paranoidkirb Send a message via Skype™ to paranoidkirb
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.
paranoidkirb is offline   Reply With Quote


Old 09-28-2007, 02:17 AM   #7
DarK_TaO
Mapper ^^
 
Join Date: Apr 2007
Location: yes (:
Posts Rated Helpful 0 Times
Send a message via ICQ to DarK_TaO Send a message via MSN to DarK_TaO
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.
DarK_TaO is offline   Reply With Quote


Old 09-28-2007, 02:31 AM   #8
Hotspur
Player
 
Hotspur's Avatar
 
Join Date: Sep 2007
Location: Kentucky
Class/Position: Defense
Gametype: First-Person Shooter
Posts Rated Helpful 0 Times
Awesomer n' Hell. Thanks a bunch guys. It works like a dream. It makes sniping while crouched a whole lot easier.
Hotspur is offline   Reply With Quote


Old 09-28-2007, 02:38 AM   #9
Hammock
D&A Member
 
Join Date: Sep 2007
Posts Rated Helpful 13 Times
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 is offline   Reply With Quote


Old 09-29-2007, 05:42 PM   #10
PorkChopVII
The "other" white meat....
 
PorkChopVII's Avatar
 
Join Date: Sep 2007
Location: Tulsa, Ok
Posts Rated Helpful 0 Times
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
PorkChopVII is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:56 PM.


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