Results 1 to 3 of 3
  1. #1
    legacy-sid
    Guest

    Cool Unreal OP Tutorial Problem!

    I've ever so slightly(!) tried to modify the unreal Ops gunsmithing tutorial so that the gun starts off with 150 rounds with a possible max of 200...I've attempted this by modifying the gunAmmo script properties with the appropriate values, however the damn thing always starts with 12 rounds.

    Another thing thats bothering me is that the AmmoPickup doesn't show only the link gun ammoPickup does, although It compiles sweetly enough!?

    What the heck is goin' on?!
    :cry: :cry: :cry:

  2. #2
    Skaarj
    Join Date
    Mar 2003
    Posts
    13

    Default max ammo problem

    I dont know if this will help, but I had the same problem the other day. I cant remember how I fixed it but I think It was because I didnt have this line in my Fire class:

    default properties
    {
    AmmoClass=class'MyAmmo'
    }

    note that this points to the ammo class not the ammo pickup class

    and these lines need to be in your custom ammo class

    default properties
    {
    PickupClass=class'MyAmmoPickup'
    MaxAmmo=200
    InitialAmount=150
    }

    and make sure your ammo pickup class points back to the ammo class like this

    default properties
    {
    InventoryType=class'FreezeAmmo'
    }

    Let me know if this helps or not
    BTW you are summoning your custom gun and pickup from the console when you play the game right?

  3. #3
    legacy-sid
    Guest

    Post Thanks!

    Tah Very Much Mate Works Perfect Now!!!
    :up:


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.