MUG Posted July 13, 2012 Posted July 13, 2012 So, for base customisation, lots of the same parts are used over and over on many models and as such I have hundreds of icon files, nearly all of which are exact duplicates of others and make the mod huge. Say I have an icon for the reborn called icon_torso_a1.jpg and I have given the jedi model the same torso option under the name torso_a1.skin Is it possible to make a shader called models/players/jedi/icon_torso_a1 and have it just display the same image file from the reborn folder, without me having to make a copy of the jpg in the jedi folder?
Inyri Posted July 14, 2012 Posted July 14, 2012 Have never tried that. Why don't you test it out and report back?
MaceMadunusus Posted July 14, 2012 Posted July 14, 2012 Theoretically, it should work. I use this quite frequently when making levels to save image space but have a new shader entirely. Since the engine doesn't have that much restriction on where shaders go, it should work.
MUG Posted July 14, 2012 Author Posted July 14, 2012 Have never tried that. Why don't you test it out and report back?Mainly because I don't know how to make a shader that just shows an image xD
Inyri Posted July 22, 2012 Posted July 22, 2012 Fine, fine. See the examples below: General setup:models/players/yourfolder/yourtexture { { map models/players/yourfolder/yourtexture blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } } If you want a line in your skin file to point to something completely different. In this example, the file "torso" in the bobskin folder does not need to even exist, as the shader will tell the game to look in the stormtrooper folder for this texture. The skin file would still have the path to the bobskin folder, though.models/players/bobskin/torso { { map models/players/stormtrooper/torso blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } } In theory, making an icon point to another texture. In this case, again in theory, the Kyle icon should now show the Lando icon without adding or moving any textures. Try it out and see if it works.models/players/kyle/icon_default { { map models/players/lando/icon_default blendFunc GL_ONE GL_ZERO rgbGen lightingDiffuse } } Caelum likes this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now