Weapon with unique textures

Having looked in CoreWeapons.xml and looked at the texture map it looks like all weapons of a certain type share a texture map and just use different UV co-ordinates. This is all well and good but it looks like the texture maps might be hardcoded e.g. the weapon description gives only the mesh and icon file names.

Is it hardcoded or can I define a custom texture map based on a copy of the basic one so it doesn't change existing weapons?

3,361 views 3 replies
Reply #1 Top

Ok I've found the answer I can still use a custom texture.

Reply #2 Top

Please do tell, where and how.

Thanks

Lee

 

Reply #3 Top

The texture path is defined seperate from the mesh path in the item definition.

 <GameItemTypeModel>
   <ModelFile>gfx/hkb/Weapons/K_Club_01.hkb</ModelFile>
   <Texture_All>K_Weapons_Basic_Texture_01.png</Texture_All>
   <Attachment>hand_right_Lcf</Attachment>
  </GameItemTypeModel>

just change the filepath. Although I think it has to be withing the "GFX" folder.