1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

[2k4] Sniper Rifle Skin Help

Discussion in 'Ask a Coder' started by DeathOmen, Nov 28, 2004.

  1. DeathOmen

    DeathOmen New Member

    Joined:
    Oct 5, 2003
    Messages:
    14
    Likes Received:
    0
    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
     
  2. DeathOmen

    DeathOmen New Member

    Joined:
    Oct 5, 2003
    Messages:
    14
    Likes Received:
    0
    oh im sorry and this is for
    Unreal Tournament 2004
     
  3. EvilDrWong

    EvilDrWong Every line of code elevates you

    Joined:
    Jun 16, 2001
    Messages:
    932
    Likes Received:
    0
    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
    Code:
    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.
     
  4. DeathOmen

    DeathOmen New Member

    Joined:
    Oct 5, 2003
    Messages:
    14
    Likes Received:
    0
    thanks bro got it workin :)
     

Share This Page