Home   Help Search Login Register  

Author Topic: simulate AA missile explosion  (Read 655 times)

0 Members and 1 Guest are viewing this topic.

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
simulate AA missile explosion
« on: 02 Jun 2003, 21:22:09 »
ok... i want to create a mid air explosion next to the rotor of my chopper - it can't cause any major damage because i want to then execute a tail rotor failure script after...

now ive checked the forums and founf flak scripts,... but all i require is a small fire ball explosion next to the rotor and then move onto my script...

any help? cheers  :D
Proud Member of the Volunteer Commando Battalion

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:simulate AA missile explosion
« Reply #1 on: 02 Jun 2003, 21:23:23 »
camcreate 2 bombs near each oder - so dey fall one on da oder - dis way dey wil both explode ;)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:simulate AA missile explosion
« Reply #2 on: 02 Jun 2003, 21:40:43 »
yeah.... but what i need to do is get them near the rotor.... i can make them explode, but the chopper is never in the same place - getpos them to the chopper blows up the chopper  ::)
Proud Member of the Volunteer Commando Battalion

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:simulate AA missile explosion
« Reply #3 on: 02 Jun 2003, 21:43:00 »
i answered dat proximity thing in da last 2 dayz :P

Quote
all u need is 2

"bullettype" camcreate position

but u wil need 2 find da name of da bullet

nd u wil have 2 play w/ da position a lil but basicly its somin like

[(getpos TruckName select 0) + sin (getdir unit + bearing) * distance, (getpos TruckName select 1) + cos (getdir TruckName+ bearing) * distance, 0]

(getpos unit select 0)
Gets the X co-ord of the unit you want to place your object around

sin (getdir unit + bearing) * distance
Here's the business end of it... Using a bit of trig, it gets the sin of the direction the unit is facing, adds any bearing you want, and moves the object out to the distance you specify. So:
unit - The unit you are placing the object relative to
bearing - The offset in relative bearing from the unit where you want the object placed.
Eg. 0 = directly in front of the unit
180 = directly behind the unit
90 = to the unit's right.
Try to imagine a circle of degrees around the unit, with 0 at the top and 180 at the bottom...
distance  - the distance from the unit you want the object to be placed.

tanks sui 4 dat 1

so u wil have 2 play lil w/ da

bearing n distance - 2make it work right

:P

:cheers:

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:simulate AA missile explosion
« Reply #4 on: 02 Jun 2003, 22:08:37 »

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:simulate AA missile explosion
« Reply #5 on: 02 Jun 2003, 22:19:49 »
ok.... but then how the buggery do i get it all working together? sorry, but i am very confused at this point in time  ::)
Proud Member of the Volunteer Commando Battalion

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:simulate AA missile explosion
« Reply #6 on: 02 Jun 2003, 22:36:20 »
Awrighty, let's see if the attachment below is what you were looking for. Play around with the numbers of the "tailrotor.sqs" script, but the distances I've chosen won't destroy the chopper.
Also notice that the bomb will hit the tailrotor regardless of the chopper's heading...

P.S: use the Alpha radio to get it all started.
« Last Edit: 02 Jun 2003, 22:56:10 by Igor Drukov »

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:simulate AA missile explosion
« Reply #7 on: 02 Jun 2003, 23:02:05 »
great... works a treat  :D
Proud Member of the Volunteer Commando Battalion