OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Challenger on 22 Oct 2005, 13:08:54

Title: USS Nimits take-off
Post by: Challenger on 22 Oct 2005, 13:08:54
hi fellow mission makers :P

Im making a cutscene for my campaign, invloving two jets taking off from Hawk's USS Nimitz carier. i cant fathom it. wherever i place the planes, they go off the port bow and crash. any help would be great.

Challenger :-\
Title: Re:USS Nimits take-off
Post by: Trapper on 22 Oct 2005, 14:02:26
I would try setpos and right afterwards setvelocity. - That would also be a good simulation of the catapult.

But you would have to wait with showing the planes after they speeded up, to keep up the illusion.
And I don't know if the AI would prevent a crash after such a take off.
Maybe they even explode on the flight deck if OFP misunderstands their high velocity close to the ship.
Title: Re:USS Nimits take-off
Post by: Chudley on 22 Oct 2005, 14:37:40
Two things to try....

1.. Try making all pilots 'x setBehaviour "CARELESS"

2.. Try making one of the pilots the player - then do the setVelocity thing..
Title: Re:USS Nimits take-off
Post by: TLI on 22 Oct 2005, 21:44:22
Setvelocity would be the way to go.

  If you setvelocity incrementally (10, 20, 40, 80 ,160), it will look ok for the camera 8),
but if the planes travel too fast (>100 or so) before they get off the deck, they will crash.
 The A.I. recovers from setvelocity just fine, so once they are off the deck, they'll fly normally :)
Title: Re:USS Nimits take-off
Post by: Trapper on 22 Oct 2005, 22:09:27
I don't know the realistic velocity of the steam catapults, but maybe it will look realistic without increments and just the right speed value.
If realistic speeds are too fast, the minimum take off speed of the OFP plane should be perfect.
Title: Re:USS Nimits take-off
Post by: shakes292000 on 11 Dec 2005, 11:26:31
I've been having the same problem with crashing off the port bow using cat 1 and 2. It looks as though the planes hit one another being so close.  Is there a way of making them takeoff at different times instead of all at once.  I've tried triggers and sync - neither one worked for me.
Title: Re:USS Nimits take-off
Post by: Tyger on 11 Dec 2005, 11:55:43
@shakes

Yes there is, mate :D. Create a master execution script. I'll call it myMasterCat.sqs.
Then type this simple block of code into it:
Code: [Select]
[myParamaters] exec "catapult.sqs"
~3
[myParamaters2] exec "catapult.sqs"
exit

myParamaters/myParamaters2 are the paramaters if your catapult script needs any, and catapult.sqs is the name of your script.  ;)

[EDIT] Now Plank's going to show up here soon swear'n about how I can't spell parameters. ;D
Title: Re:USS Nimits take-off
Post by: Planck on 11 Dec 2005, 14:00:17
Quote
Now Plank's going to show up here soon swear'n about how I can't spell parameters.

Hmmm......seems you managed to spell it ok there.   >:(


Planck
Title: Re:USS Nimits take-off
Post by: Tyger on 11 Dec 2005, 17:51:27
[Offtopic]

Quote
myParamaters/myParamaters2

But not there ::)
[/Offtopic]