Extra Gun - Warthog?

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





Posts: 180
Joined: Sat Jul 29, 2006 3:02 pm
Contact:

Extra Gun - Warthog?

Post by FFIIMan »

Im trying to spawn another gun on the wart hog, would i need to change something in the [hlmt] or the [vehi]?
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 »

there is a dependancy in teh vehicle tag. Just clone it or change it.
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 ಠ_ಠ
FFIIMan





Posts: 180
Joined: Sat Jul 29, 2006 3:02 pm
Contact:

Post by FFIIMan »

Alright i did, do you know what unknowns i need to change to get it in the right postions, x y z wise
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 »

there is a marker defined in the vehicle tag somewhere. Its going to be named something like gun. Once you got its name go the mode of the hog and change a marker name to the gun's marker name since there isnt one by default. My choice would be the antenna since there isnt one. Once renamed move as you would like.
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 »

i normally change the stringid called gun to a marker that exsists, that way your guarrented not to break anything :P
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 »

... good point, didnt think of that.
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
Agent ME




Articulatist 500

Posts: 881
Joined: Tue Jun 21, 2005 6:00 pm
Location: California, USA
Contact:

Post by Agent ME »

I've done that before - it was one of the first things I did when h2Core came out (If you simply try and clone the chunk with Entity, it screws the map - maybe if you duplicate the tag first, then clone the chunk it'll work through Entity, but might as well just use h2c as I know it works).

Image
Click for other pics


After you decompile the map with h2core, use h2guerilla to open up the warthog.hlmt file. Hlmt files hold information about the model (sometimes textures), health, permutations, and attachments.

Take a look in the permutations section - you'll notice there are 4 different permutations, default (chaingun hog), gauss (real tough one to figure out), troop (unused permutation that has no turret), and damaged (must be something for the internal code, cause last time I tried spawning one of these it seemed just like a default hog, but I might've remembered wrong - it might just spawn a broken chaingun hog).

You're going to want to edit either the gauss or default permutations, or, if you're feeling creative, make your own permutation, but I'll leave that up to you.

In the default or gauss permutation, there'll be a reflexive with a dependency to a turret vehicle. Duplicate that chunk. Change the turret to what type you want it to be, so you can have a gauss turret and a chaingun turret, etc. Then, you'll notice there's a spot for a stringid - that's a reference point to the hog model. If you want your hog to be like mine in the pic, change the SID of the new turret to 'passenger'. There are of course other SIDs you can try using - look in the markers reflexive of warthog.mode for all of them. You can set a turret on the antenna or the headlights if you put the right SID.

Save the tag, rebuild the map, and play the game with the warthog (with correct permutation - shouldn't be a problem as Zanzibar has both Chaingun and Gauss hogs by default).
Last edited by Agent ME on Wed Jun 27, 2007 9:39 am, edited 1 time in total.
FFIIMan





Posts: 180
Joined: Sat Jul 29, 2006 3:02 pm
Contact:

Post by FFIIMan »

thanks Agent it worked.
Post Reply