Home   Help Search Login Register  

Author Topic: BlackHawk Down... BlackHawk Down... Damd BlackHawk won' go down.  (Read 1031 times)

0 Members and 1 Guest are viewing this topic.

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Hey Folks,
Got another one here for you. I am trying to simulate an engine failure for an AI Helicopter.
I set up a Black Hawk unit, Name: CHOPPER.
Then I setup a few WPs to get CHOPPER moving.
I then set up a trigger along the WP path.
Condition: West Present
Action: HINT "Engines out!"; CHOPPER ACTION ["Engine Off"]

I place a Player unit near the trigger to observe the mayhem. However when CHOPPER hits the trigger the Hint fires off but the helicopter keeps on flying. If I change the Player to be the pilot of CHOPPER, the engines fail right on queue.
This is to be part of an intro so the AI really needs to be the one piloting CHOPPER.
Alternatively, when I couldn't get the "Engine Off" action to work I figured I'd write a looping SETPOS script that decreases the altitude of CHOPPER in increasingly aggressive increments (to simulate the acceleration of gravity).
The Psudeo code looked like

For 90 loops: get the current position of CHOPPER. SETPOS CHOPPER to the current position of CHOPPER - .5 Meters.
For the next 90 loops: get the current position of CHOPPER. SETPOS CHOPPER to the current position of CHOPPER - 1.75 Meters.
For the last 200 loops: get the current position of CHOPPER. SETPOS CHOPPER to the current position of CHOPPER - 3.25 Meters.

Now, this works but it doesn't look very realistic. The Pilot fights the altitude change by adding power. And, The chopper hits the ground a few times before exploding. Also, I am trying to Sync the movements of the chopper with a voice layover and because the AI fights the descent, synchronizing the voice is proving very difficult.

Any tips or tricks that can be offered will be greatly appreciated.

mt1202

  • Guest
couldnt u just do a "setfuel 0"? that would bring the blackhawk down ;)

take care

Kaliyuga

  • Guest
    Hmm.. seems to me that someone wrote a "damaged tail rotor" script ....   for just this purpose a while back ...
when everyone saw the movie and had to make their own version rather than thinking of something original ::)

 Anyways.... I'd go about looking for that script... ;)

and like mt1202 said, sometimes the simplest answers are the  best...   take the fuel away...
or else you could unassign the pilot from driving..... ;)  and setpos him somewhere on the island  ;D  

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Yep, The Setfuel Definitly brings down the Chopper. I had done a SetFuel 0.01 in an attempt to get the chopper to run out. All this did was force the chopper to look for a fuel depo. I was caught by my own attempt to be clever.
Kaliyuga, If you could find that script I am DEFINATELY interested in looking at it. It is probably much smoother than the one I wrote!.

Odd thing is I titled the thred BlackHawk down because I knew it would grab attention. I never thought to search for that phraze. Too busy searching for "AI won't shut of engine" or "engine off" or something like that.
I hope when I finally post this that eeryone won't think it's some kind of cheep knockoff. I hate comming up with what I think is an original Idea just to find out its already been done!

Any way,
Calamity Strikes Again!!!

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
hmmm, and with the new things in resistance, you can simulate smoke using the drop command and have black smoke from the rotor
Proud Member of the Volunteer Commando Battalion

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
here is idea - use da setvelocity command 2 make da helo crash so u have complete comtrol on it  ;)  ;D

LCD OUT
« Last Edit: 05 Dec 2002, 01:05:19 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Kaliyuga

  • Guest
 Hmm... I'll have a look see....  

and I think there were quite a few people that talked about a mission such as this... but few if any that actually completed one ... with the new commands and such this could be quite possible.. ;)


Oh. yeah.. and Listen to what LCD says.. he's the man ;D
setvelocity ....   I don't know why I didn't think of it myself ..
 :P

Kaliyuga

  • Guest
 Well... here's what I came up with after a bit of searching for ya


http://www.ofpec.com/yabbse/index.php?board=11;action=display;threadid=1098


seems the attachment was deleted for some reason....

but my next step if I were you would be an IM to the guys who posted in the thread ;)

good luck with it

Kali  :cheers:

Offline Calamity

  • Former Staff
  • ****
  • Calamity Strikes AGAIN!
    • DataCraft Enterprises
Ok Guys,
Here is my stab at creating a BlackHawk Down situation. Now, this "Mission" will eventually be the intro for a MiniCmpaign I am building. So please bare with some nuances in the test code, such as starting the 'mission' as a player you have controll over. No, there is nothing to do but wait for the Cam Script to start and watch.
(The above is a preemptive strike for any criticism on these points.)
All right, the nitty gritty. Spin.SQS is executed with a peramiter which is the Vehicle you want to spin out of control. Spin.SQS in turn calls SLEW.sqs which moves the vehicle allong a somewhat curved path allong the original flight path. Without Slew.SQS the chopper just spins in place and it doesn't look very natural.
There is a voice layover but it is too large to upload here. Any problems with the SPIN.SQS firing trigger will be most likely related to this. Let me know.
The only patch/addon I am using is RedHammer.