Announcement

Collapse
No announcement yet.

Help with noob problems

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

    Help with noob problems

    First and formost im using UT2004.
    Im new to Unreal coding (this is my first attempt) and i was attempting to make the Concussion Rifle (via 3dbuzz tutorial). I finshed all the code and ucc make spat out the files but when i summon the rifle in game it acts just like the shock rifle. Whats going on??? Here's the code (I made it in ConTEXT).

    //================================================== =================================================
    // ConcussionRifle
    //================================================== =================================================
    class ConcussionRifle extends ShockRifle;

    defaultproperties
    {
    ItemName="Concussion Rifle"
    FireModeClass(0)=ConcussionRifleFire
    PickupClass=class'ConcussionRiflePickup'
    }

    //================================================== =================================================
    // ConcussionRifleFire
    //================================================== =================================================
    class ConcussionRifleFire extends ShockBeamFire;

    defaultproperties
    {
    Momentum=+600000.0
    DamageMin=3
    DamageMax=3
    }

    //================================================== =================================================
    // ConcussionRiflePickup
    //================================================== =================================================
    class ConcussionRiflePickup extends ShockRiflePickup;

    defaultproperties
    {
    Inventory=Class'Concussion Rifle'
    PickupMessage="You got the Concussion Rifle"
    }

    I've poured over a thousand times and i cant figure out whats wrong. All help is appreciated.

    #2
    Well, if you subclass everything from shock rifle, and dont change anything, what do you get? A shock rifle, with a differnet name.

    Comment


      #3
      Originally posted by KenshinKajima
      Inventory=Class'Concussion Rifle'
      Try this:
      Code:
          Inventory=Class'ConcussionRifle'
      No space.

      Comment


        #4
        Yeah, those spaces will get you every time.

        Comment


          #5
          make sure you didn't get rid of something necessary in the editpackages section in yur ini file

          edit:srry, didnt notice that last post; Should work

          Comment


            #6
            Found the problem:

            InventoryType=Class'ConcussionRifle' shoudn't be in //ConcussionRifle

            I should have put ItemName="Concussion Rifle"

            thx guys! sorry!

            Comment

            Working...
            X