Distribution angle under [weap] tag

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
Piktro




Recreator

Posts: 30
Joined: Mon Dec 18, 2006 11:44 am

Distribution angle under [weap] tag

Post 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.
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post by xzodia »

it think its the angle at which its fired (in radians)
so make it -1.57 to fire straight down
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
Piktro




Recreator

Posts: 30
Joined: Mon Dec 18, 2006 11:44 am

Post 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.
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post 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
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

If you look at my "custom" jmad tut, it shows how to make the markers use proper radians.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post by xzodia »

what? rotation doesnt use radians, it uses vectors :?
link mb?
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post 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.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post 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
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
Post Reply