
I'm hesitant to post this as I worry it might be considered poor taste or else "cheating," but I was wondering if anyone knows of a simple way to tweak weapon stats for someone who's not really knowledgeable about modding in general. The reason I asked is I tried the DMCWO mod and - while I'm not a huge fan of most of what it does - I did enjoy some of the changes to some of the weapons, specifically some of the ones I don't really use. I was wondering if I can make my own MUUUCH simpler mod to tweak just one or two stats on just one or two weapons. Not for multiplayer, obviously - I have a number of mods that I keep either for personal use or for private lobbies.
However, it occurs to me that it's useful to mod guns and try them out for real if I'm going to make actual suggestions on the official forums. Last one I suggested was an 80-damage, 180-RPM machinegun with a 50-round mag and 150 total ammo. Underpowered? Overpowered? Just plain stupid? I think it's pretty cool, but I'm guessing. Being able to test this out on my own and see just how far out of whack it is would be awesome, but I'd need to pick and existing gun and mod it to those stats to see. Is there a simple way to do that? I can kind of tell how DMCWO is doing it - messing with tweak_data - but I'm sure there's more to it than just making a lua file with tweak_data.gun.stat = new_stat, right?
So... Am I out of line asking for this?
OK, I think I finally understand what's going on here. I need to override the WeaponTweakData:init(tweak_data) method to first execute itself, then execute a bunch of other data assignments. The data structure can be found in the file you linked me to, and WeaponTweakData:init(tweak_data) itself is in lib/tweak_data/weapontweakdata. I'll have to look at my other BLT mods and figure out how to put together a mod.txt for it, since I'd rather use BLT if at all possible.
Lua confuses me with its basic syntax, but that's largely because I'm used to the C++/Java Syntax. It seems to work in a very similar fashion, just everything is called differently and uses different keywords. I'll let you know if I succeed when I get home.