posted April 22, 2003 09:09 AM
*** CALCULATIONS HAVE BEEN CORRECTED ***You will need 4 spewers.
One spewer launches 3 other spewers sequentially.
Then each of the 3 spewers would have thier min/max set to one direction.
i.e. to fire a nuke north:
min = 0, 0, 20
max = 0, 0, 20
to fire a nuke east:
min = 20, 0, 0
max = 20, 0, 0
to fire a nuke west:
min = -20, 0, 0
max = -20, 0, 0
The 'Das Tornado' does something similar.
To fire it at a 120 deg angle from north (velocity 0, 0, 20) , you would need to do some trig to figure out the correct X and Z velocities. Then you'd set the max and min of a spewer to the same values. Then reverse the sign of the X value to get the X,Z velocities of the other spewer and set its min and max.
Here's the low down of the x&z values (V is your velocity vector). TM won't do the computations obviously
spewerNorth.ent:
min = 0, V, V
max = 0, V, V
spewerSouthwest.ent:
min = (V * sin 240), V, (V * cos 240)
max = (V * sin 240), V, (V * cos 240)
spewerSoutheast.ent:
min = (V * sin 120), V, (V * cos 120)
max = (V * sin 120), V, (V * cos 120)
mainSpewer.ent:
SpewType0 = spewer/spewerNorth
SpewType1 = spewer/spewerSouthwest
SpewType2 = spewer/spewerSoutheast
CycleType = 0
MaxSpewCount = 3
I set the Y velocity to V as well so it fires upwards at a 45 degree angle. To steepen the angle, give it a higher Y velocity. To flatten it lower the Y velocity. If you want a specific angle, then things get a little more complicated:
X = V * cos azmuth * sin compass-heading
Y = V * sin azmuth
Z = V * cos azmuth * cos compass-heading
the compass-heading is the X/Z direction:
North = 0 degrees
East = 90 degrees
South = 180 degrees
West = 270 degrees
The azmuth is the Y direction:
Parallel to ground (horizon) = 0 degrees
perpendicular to ground (zenith) = 90 degrees
[This message has been edited by KiLlEr (edited April 22, 2003).]
[This message has been edited by KiLlEr (edited April 23, 2003).]