Announcement

Collapse
No announcement yet.

Why am I getting 2 weapons..funny pic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Why am I getting 2 weapons..funny pic

    Ok for some reason im getting 2 meshes showing up for my third person view.my code is below the pic.






    //==================
    //Walther
    //==================
    class Walther extends AssaultRifle config(user);


    #EXEC OBJ LOAD FILE="../Animations/Walther.ukx"
    defaultproperties
    {
    Mesh=SkeletalMesh'Walther.Walther'
    DrawScale=0.3
    InventoryGroup=2

    ItemName="Walther"
    PickupClass=class'WaltherPickup'
    AttachmentClass=class'WaltherAttachment'

    BobDamping=2.00
    PlayerViewOffset=(X=10.00,Y=12.00,Z=8.00)
    SmallViewOffset=(X=16.00,Y=12.00,Z=8.00)

    }

    ---------------------------------------------------------------------------------


    //==================
    //WaltherPickup
    //==================
    Class WaltherPickup extends UTWeaponPickup;

    defaultproperties
    {
    DrawType=DT_StaticMesh
    StaticMesh=StaticMesh'P99.P99Static'
    DrawScale=0.3
    InventoryType=class'Walther'

    PickupMessage="You go the P99!"

    }




    ------------------------------------------------------------------------------

    //==================
    //WaltherAttachment
    //==================
    class WaltherAttachment extends AssaultAttachment;

    defaultproperties
    {
    Mesh=SkeletalMesh'Walther.Walther'
    DrawScale=.3

    }

    #2
    ROFL! That picture is begging for a caption...

    "I guess there's someone around here I shouldn't **** off..."

    Comment


      #3
      Anyone???

      Comment


        #4
        wait, is the attachment mesh supposed to be a skeletal mesh?

        Maybe try extending assaultPickup instead of UTweaponPickup....

        But it looks like whatever the problem is, is the pickup class, cause thats the one duplicating ur mesh.

        looks funny though :bulb:

        Comment


          #5
          This probably doesnt matter

          This probablt doesnt matter but when you set your PickupClass and AttachmentClass defaults for your weapons, dont you have to use the Package.Class structure?

          Like AttachmentClass=class'myPackage.WaltherAttachment'

          I guess it doesnt matter since its being picked up... but I think the attachment class may be the place to look. In your pic, you have already picked up the weapon right?

          Comment


            #6
            Ya if I just touch the pickup once I only get one weapon. If I hit it twice I get 2! #!$#%^&

            This is my new pickup and attachment classes


            Code:
            //==================
            //WaltherAttachment
            //==================
            class WaltherAttachment extends AssaultAttachment;
            
            defaultproperties
            {
                Mesh=SkeletalMesh'Walther_Anims.WaltherP99'
                DrawScale=.3
            
            }
            Code:
            //==================
            //WaltherPickup
            //==================
            Class WaltherPickup extends UTWeaponPickup;
            
            //#EXEC OBJ LOAD FILE=P99.usx
            
            defaultproperties
            {
                DrawType=DT_StaticMesh
                StaticMesh=StaticMesh'P99.P99Static'
                DrawScale=0.05
                InventoryType=class'Walther.Walther'
                
                PickupMessage="You go the P99!"
            
            }

            Comment


              #7
              !remember that ur using assault rifle code as a base!

              Your SUPPOSED to get 2!

              Comment


                #8
                Ya thats what im getting in other post.

                I wish someone would right a complete tutorial on weapons coding.

                The one in the se dvds is better than nothing but it doesnt really go into details to much so if you make a weapon different from theirs (in this case much more basic) your lost.

                Comment

                Working...
                X