
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?
My experiment continues, and this time for real. I've been trying to make a mod which makes all guns aim like LMGs do: no iron sights, just "hipzoom." I've asked people to make one like that for me in the past and was told it was too much work. OK, fair enough - I'll make my own. However, I'm running into an issue with that. I'm trying to make this into multiple "persist" scripts, but it seems like BLT will only execute the first script in the list that I've given it. If I put my sights tweaks in there, the guns aim correctly. If I move my sights tweaks into any subsequent scripts, then nothing happens - they don't get executed. I don't understand why that is.
edit
Actually, I figured it out - I was using the same variable to end both scripts, so the first one would set it to true and the second script would never execute because "done == true."
Let me take this chance to ask, though - how are weapon sights calculated? It seems like the lines I care about are these:
I know what all the pivot_thing variables are - vectors and rotation angles. I know what those are in theory (Bachelor's degree in applied mathematics 10 years ago, so I still remember a bit of it), but I can't follow the "rotate_with" chain of events. What is this saying? What is it actually doing? I mean sure, I can just copy-paste the lines and it SEEMS to work, but still - how is the whole system hooked up? Also, what is the "zoom_fov" variable for? This is taken from the Micro Uiz which doesn't support sights, but changing this to true doesn't seem to change anything.
Finally, are those alignment settings JUST for steel sights or will they affect scopes? I kind of don't want to mess with scopes for the moment.
edit
Oh, and the code I'm referring to comes from playertweakdata.