PDA

View Full Version : [2k4] Sniper Rifle Skin Help


[KU]DeathOmen
28th Nov 2004, 11:01 AM
Hey im currently coding a zark sniper rifle and i have it all coded and done.
can u plz help me in showing me the code to skin the gun and put a custom zoom on it?

thank you ;)
-omen

[KU]DeathOmen
28th Nov 2004, 11:16 AM
oh im sorry and this is for
Unreal Tournament 2004

EvilDrWong
28th Nov 2004, 06:14 PM
To skin the gun youll need to export the texture it uses from UEd and edit it as much as you need. then youll have to re-import it into the game into its own package, and in your new weapon you'd set the Skins array to that texture in the default properties

defaultproperties
{
//yadda yadda yadda, all the other settings youve already got
Skins(0)=material'Package.Group.TextureName'
}


As for the custom scope, check out the RenderOverlays function in xWeapons.SniperRifle or UTclassic.ClassicSniperRifle. Pretty much, all those boil down to is scaling a few textures and placing them where necessary.

[KU]DeathOmen
29th Nov 2004, 03:44 PM
thanks bro got it workin :)