SWBFGamers

Modding for the Original SWBF1 and SWBF2 => Requests => Topic started by: Led on June 03, 2009, 08:06:52 PM

Title: Head Shot Training Mod
Post by: Led on June 03, 2009, 08:06:52 PM
Hi guys, I had an idea for a mod to help with head shot training--
is it possible to adjust unit skins so that the main body is transparent, and the head is orange?

It would be like sniping basketballs, I guess :)

Buck/Led
Title: Re: Head Shot Training Mod
Post by: aeria. on June 03, 2009, 08:38:16 PM
It's possible if I can get TGA files transparent and I'm not that much of a genius when it comes to TGA files.

Pretty smart idea, I'd like to see that outcome.
Title: Re: Head Shot Training Mod
Post by: Radical_Pi on June 03, 2009, 08:55:04 PM
I might be able to do it if I can come up with a way to create msh files. If there is still a modeler on here, perhaps you could remove the surfaces for everything except the head in XSI?

btw: TGA can't do transparency :( If all else fails, would a white body work?
Title: Re: Head Shot Training Mod
Post by: aeria. on June 03, 2009, 09:12:09 PM
As I suspected :( I don't think there's anymore modelers around here. You can give GameToast a try, since they still have a fair amount of modelers.
Title: Re: Head Shot Training Mod
Post by: Led on June 03, 2009, 09:31:17 PM
ya, white, or maybe just leave the body alone and go with an orange head?
Title: Re: Head Shot Training Mod
Post by: MileHighGuy on June 04, 2009, 09:30:09 AM
actually all you have to do is hex edit the msh to allow transparency and skin the parts you dont want black in its alpha channel and then skin the head orange
Title: Re: Head Shot Training Mod
Post by: Radical_Pi on June 04, 2009, 02:58:47 PM
Care to demonstrate? AFAIK TGA doesn't have an Alpha channel
Title: Re: Head Shot Training Mod
Post by: MileHighGuy on June 04, 2009, 04:20:14 PM
Quote from: "Maveritchell"If you want to enable transparency, open up your .msh file with a hexeditor and find the name of the texture to which you're going to give transparency (search for .tga), say it's rep_inf_sharpshooter_cape. Once your cursor is on the name of the .tga, move it back a few places to where it says HBATRB - place your cursor on the place immediately after the last "B." The next 8 places should be "04 00 00 00 00 00 00 00."  Change that to "04 00 00 00 04 00 00 00." Then save the mesh file and give your actual texture an alpha channel.

and actually i think you delete the parts of the skin in the alpha channel thant you want transparent, but i am not entirely sure because i have not tried this myself.

theres some more info here > //http://www.gametoast.com/forums/viewtopic.php?f=27&t=12338&p=217405#p217405

just disreguard the cape part as that does not apply here

and here is a good hexeditor that also works on vista > //http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm
Title: Re: Head Shot Training Mod
Post by: Maveritchell on June 05, 2009, 08:34:03 PM
Quote from: "The_Pi"Care to demonstrate? AFAIK TGA doesn't have an Alpha channel
TGA does support alpha channels/transparency; it's used a lot in Battlefront.

I'm sure you could find several models that use a different texture for the head than the body, and then you wouldn't even have to bother with anything more than a completely black alpha channel on one texture (and of course the mesh will need to support transparency).
Title: Re: Head Shot Training Mod
Post by: Radical_Pi on June 06, 2009, 10:39:44 AM
:( I get munge errors when I try to use an Alpha channel TGA
Title: Re: Head Shot Training Mod
Post by: MileHighGuy on June 06, 2009, 05:02:22 PM
what program are you using? if  you are using gimp, it may have saved in the wrong tga version. what i do to fix this is save again in paint.net
Title: Re: Head Shot Training Mod
Post by: Radical_Pi on June 06, 2009, 06:22:36 PM
yeah, I'm in GIMP. I'll try paint

woot found the problem! TGA compression breaks it. What sides do you want changed? Do you want weapons changed also?
Title: Re: Head Shot Training Mod
Post by: Maveritchell on June 07, 2009, 02:51:27 PM
Quote from: "The_Pi"woot found the problem! TGA compression breaks it.
RLE Compression - the leading cause of "why does my map crash when I edit a skin?"

It is mentioned a number of times in threads at GT, although to be fair it is not linked to in that specific thread above. It might be worth your (the collective "you" here) while to check out the Battlefront 2 "Everything you need" thread - the games are similar enough that many of the sections will carry over in their entirety (especially the model-related ones).
Title: Re: Head Shot Training Mod
Post by: Led on June 13, 2009, 09:49:05 PM
Hey, that's cool.

Standard sides, just want to practice head shots--

Thanks,
Buck
Title: Re: Head Shot Training Mod
Post by: MACH on June 19, 2009, 06:57:39 PM
I think it would be a good training practice to have Recon droids as targets.
Title: Re: Head Shot Training Mod
Post by: Led on June 24, 2009, 10:15:45 AM
Hey Mach,

Well the idea is that it would be a new skin for units--the opponent moves, shoots, rolls,
etc, but the only thing you would see and aim for would be the head, with the idea that
getting good with the target area of the head during practice would translate into more head shots
in an actual game.

Buck
EhPortal 1.34 © 2024, WebDev