Extra Gun - Warthog?
Extra Gun - Warthog?
Im trying to spawn another gun on the wart hog, would i need to change something in the [hlmt] or the [vehi]?
there is a dependancy in teh vehicle tag. Just clone it or change it.

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

"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
i normally change the stringid called gun to a marker that exsists, that way your guarrented not to break anything 


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.
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).

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).

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.