Announcement

Collapse
No announcement yet.

Reload system to weapons

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

    Reload system to weapons

    I've start working on a mini-mod called Future Warfare. Something I really need in this mod is a reload system to my weapons. Just something simple like in ArmyWeapons-mutator. How do I do that?

    PS. I thought to have base classs called FWWeapons.uc and FWBulletFire.uc(instant fire class).

    #2
    Check the UnrealWiki, it has an explanation for how to add reloading.

    Comment


      #3
      Yeah, and make sure you type in "reloading" and not just "reload". I couldn't find it initially because the wiki for some reason or other does not return page title matches for that.

      EDIT: Oops, I just took a closer look. meowcat, were you referring to the page entitled "Reloading Weapons"? It says that the tutorial does not work for UT2004, which is where I'm coming from. Can anyone confirm this? I don't have the time to test it right now (finals week), and I don't know if the page has been updated without the warning being removed, but I am very much interested in this topic myself.

      Comment


        #4
        No, the tutorial works for UT2004 as well, but requires a little bit of tweaking (and the sample posted is for wepons that reload one bullet at a time). I used it as a basis for reloading functions in my weapons mod YARM (I remember modifying the code a bit, but that was back in late 2004).

        Comment


          #5
          fragops has a reload system http://www.moddb.com/mods/fragops
          i remember finding the source files at filefront once

          Comment


            #6
            Do you really want me to download ½GB to find a reload system!? I'm sure there is an another way...

            I'm not the best programmer either so... I wouldn't find the reload system in ½GB of code.

            Comment


              #7
              If you follow unrealloco's advice you would find the Frag Ops source code over at filefront, it has all of the source scripts (including the reload system). It was released specifically to support other modders learning.

              Comment


                #8
                Well, I've downloaded Frag Ops and UDN to open the code. I have the whole code for Frag Ops but it's jusst too much. I'll never find it.

                Comment


                  #9
                  Do a search of the files for the word "reload" and probably "weapon" and you will find the classes you need to read through (though FO breaks up the functionality between the weapon and their playercontroller iirc, though I don't know why...). As with all coding, this kind of thing require research to review and understand the code, then lots of testing until you get it right.

                  If windows will not search the .uc files for text, as they are unknown file types (one of the supposedly "handy" features of their search to eliminate irrelevant files, which does not help us), you can turn that feature back on by following these instructions (if on Windows XP):
                  You can also change a setting in the Content Indexing Service to index all files. Select Search from the Start menu. Click on the Change preferences link, then on the With Indexing Service link. Scroll down to Change Indexing Service Settings (Advanced) and click on it (you don't have to turn on indexing).

                  Now select Customize from the View menu, check the Console tree box, and click on OK. Right-click on Indexing Service on Local Machine in the left-hand pane and click on Properties. On the Generation tab, check the box Index files with unknown extensions and click on OK. Close the Indexing Service console.

                  Note that both of these techniques require that you first update your system to the Windows XP Service Pack 1.
                  This excerpt was from this PCMag.com article.

                  Comment

                  Working...
                  X