I've got some free time on my hands, and a mild interest in tinkering with RO, so I decided to try a simple modification or two. More specifically, I wanted to see if I could make a 'new' weapon. Now, what I really mean is that I modified an MP40 to behave... differently.. but instead of overwriting all of the MP40~.uc files I made my own.
So now, I supposedly have a gun that looks like a MP40, sounds like a MP40, etc. but is mildly different... at least in the .uc files. It uses all pre-existing animations/models/etc. All that has been changed are a few variables (example: I changed the rate of fire from .12 or so to .3, somewhere in the ~200 rounds per minute zone).
However, I've hit my first major "Why are you trying to do something you have no idea about?" problem: How do I make the transition from altered gun code to a usable weapon? Or rather, how do I add this new "improved" Mp40 into a map/game/whatever? Note: I don't want it to replace the normal MP40 game files wise, but instead be considered a new gun.
My current train of thought, however flawed it may be, after looking at a tutorial or two is that I somehow need to recompile RoInventory (or, perhaps, make my own version of it and compile that one). Then, I need to load up some preexisting map (to save myself time, of course) and somehow edit it so that, say, the Assault class for the germans uses my modified mp40 and not the normal one. Of course, I have no idea how to do any of this.
Furthermore, I'm not sure what to call any of this. Could this special MP40 be added to a map that could be downloaded by anyone? Or would adding a new weapon like this require a "modlike" copying of files into different locations?
I'm a bit lost, so any help at all would be appreciated.
So now, I supposedly have a gun that looks like a MP40, sounds like a MP40, etc. but is mildly different... at least in the .uc files. It uses all pre-existing animations/models/etc. All that has been changed are a few variables (example: I changed the rate of fire from .12 or so to .3, somewhere in the ~200 rounds per minute zone).
However, I've hit my first major "Why are you trying to do something you have no idea about?" problem: How do I make the transition from altered gun code to a usable weapon? Or rather, how do I add this new "improved" Mp40 into a map/game/whatever? Note: I don't want it to replace the normal MP40 game files wise, but instead be considered a new gun.
My current train of thought, however flawed it may be, after looking at a tutorial or two is that I somehow need to recompile RoInventory (or, perhaps, make my own version of it and compile that one). Then, I need to load up some preexisting map (to save myself time, of course) and somehow edit it so that, say, the Assault class for the germans uses my modified mp40 and not the normal one. Of course, I have no idea how to do any of this.
Furthermore, I'm not sure what to call any of this. Could this special MP40 be added to a map that could be downloaded by anyone? Or would adding a new weapon like this require a "modlike" copying of files into different locations?
I'm a bit lost, so any help at all would be appreciated.
Last edited: