Page 1 of 1

Distribution angle under [weap] tag

Posted: Wed Apr 25, 2007 1:08 pm
by Piktro
What I am doing is replacing the warthog horn with a rocket launcher [very simple mod], except I don't want it to shoot straight ahead, I want it to shoot towards the ground so I am able to create a stunt warthog. I can't seem to figure out what the distribution angle means under the [weap] tag for the rocket launcher. I am using Entity UE v1.6. If anybody could help me figure this out it'd be greatly appreciated.

Posted: Wed Apr 25, 2007 4:13 pm
by xzodia
it think its the angle at which its fired (in radians)
so make it -1.57 to fire straight down

Posted: Wed Apr 25, 2007 5:48 pm
by Piktro
This is what I assumed as well, except I didn't think to make it negative, I just did about 1.6 to see if it affected it. I just tested out your theory however, and it still shoots straight out of the front.

Posted: Thu Apr 26, 2007 9:09 am
by xzodia
well there is another way ot go about it, you need to link the gun to a marker on the warthog then rotate the marker:

1. get latest plugins http://plugins.pheonic.co.uk
2. open warthog vehi in entity
3. find stringid labeled "Weapon Placement"
4. change the stringid to "antenna" because that marker is unused
5. open warthog mode
6. go to markers reflexive
7. change the "antenna" markers x,y,z to 0,0,0 and i,j,k,w to 0,0,1,0

that should work but you might need to play around with the ijkw values to get the rotation right

Posted: Thu Apr 26, 2007 9:24 am
by turk645
If you look at my "custom" jmad tut, it shows how to make the markers use proper radians.

Posted: Thu Apr 26, 2007 2:38 pm
by xzodia
what? rotation doesnt use radians, it uses vectors :?
link mb?

Posted: Fri Apr 27, 2007 6:45 am
by turk645
link
at the bottom it says it.

Very simple but it works. Odd how it can only go up to 180 degrees though before you have to use negative to go the other direction.

Posted: Fri Apr 27, 2007 7:42 am
by xzodia
well if you look at my site that value is "w" part of a vector4, if set to zero the other 3 values react like as vector3