OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Mr.Peanut on 18 Jul 2006, 19:29:47

Title: Steerable chute - no addons required!
Post by: Mr.Peanut on 18 Jul 2006, 19:29:47
Here are some scripts that allow limited steering of the default OFP T10C style parachute. Depress a single movement key to move in that direction.  See notes at the bottom of this post.
 
;;NOTES:
; Steerable Chute v2 scripts by Mr.Peanut 08/09/2006
;
; The main body of this script is taken from keyboard.single.sqs by hardrock (13/02/2004)
; which uses a cool camera exploit to detect keyboard presses.
;
; Modified by Mr.Peanut for steerable chute scripts. Works in Multiplayer.
;
; Usage: [_unit] exec "steerchute.sqs"
; _unit MUST be a man based unit i.e. script will not work if _unit is a vehicle.
; Script waits until player is in parachute and then exits when player is no longer in chute.
; Uses direction keys as you have mapped them. Depress a single direction key to move in that
; direction. Only depress one direction key at a time to move in that direction. Moving left or right
; turns the chute in 30 degree increments.
;
; This script is NOT ECP 1.085 compatible unless the ECP HALO is disabled. To do this add the following line
; into your init.sqs: ECP_local set [99, false]
Title: Re: Steerable chute - no addons required!
Post by: Mr.Peanut on 24 Jul 2006, 00:50:25
No comments or suggestions?
Title: Re: Steerable chute - no addons required!
Post by: MrN on 25 Jul 2006, 23:34:11
Well, not truly steerable but a pretty good attempt without using an addon.

I've no idea how parachutes work (apart from the obvious) but my feeling is that this would be better with more forward motion rather than a complete vertical drop to give a better sensation of being able to move left and right. I don't know if you could script in a forward drift, looking through the script I'm guessing it could be tricksy.

Maybe an easy fix for your smoke trail would be to call it from the steerchute.sqs instead of the units init line?
 :)
Title: Re: Steerable chute - no addons required!
Post by: Mr.Peanut on 26 Jul 2006, 00:07:31
Lo Pig Fondler,

Thanks for taking a look.

It is not possible to increase the horizontal drift velocity without the chute turning on its side and looking ridiculous, due to another strange quirk of OFP when using setVelocity on chutes.  The chute is still affected by wind, which may make it seem unresponsive, but the flight path does deviate appropriately if you compare the smoke trail between the two cases. Maybe my demo should include a dummy who is launched a few seconds after the player to confirm this!
Title: Re: Steerable chute - no addons required!
Post by: MrN on 26 Jul 2006, 01:21:58
Quote
Maybe my demo should include a dummy who is launched a few seconds after the player to confirm this!
Probably a good plan, make the dummy in the players squad and then you can use command view to get a better idea of what's happening.

Title: Re: Steerable chute - no addons required!
Post by: Mr.Peanut on 26 Jul 2006, 02:56:23
Have added a dummy with a different colour smoke trail who starts from the same position 10 seconds after demo missions starts.  Although applying the setVelocity command to the chute makes the player's view go all over, if you hold down one key the whole descent you will see the mean drift is still in the desired direction modified by wind drift.
Title: Re: Steerable chute - no addons required!
Post by: Mr.Peanut on 09 Sep 2006, 04:28:28
New improved version allows turning. Try it!
Title: Re: Steerable chute - no addons required!
Post by: Mr.Peanut on 01 Jul 2008, 16:54:11
I never quite understood why this little gem never made it into the ED.  :dunno:
Anyhow, years later another version that allows simultaneous turning and fore/aft movement. Working on an ArmA version, since BIS did not see fit to provide a steerable chute.


Title: Re: Steerable chute - no addons required!
Post by: Mandoble on 01 Jul 2008, 17:34:09
then this is for ArmA or for OFP or for both?
Title: Re: Steerable chute - no addons required!
Post by: Mr.Peanut on 01 Jul 2008, 19:17:19
Just OFP. And hey, if you are already working on one for ArmA let me know and I won't bother.  :P