This seemed pretty damned easy in SoC, but now its being odd.
Part of the mod I'm doing is to give a couple of the handguns a burst-fire/automatic option. My original goal was to do so through an upgrade option, but that wasn't responding.
See, on handguns, you don't even get a fire mode indicator on the screen. This is because handguns dont even have a "fire_modes" setting in their config files in CS. I added the "Fire_modes" setting with the desired fire types to the two handguns I wished to effect. I dont like the idea of giving these guns these extra fire modes to their base settings, but I thought it would fix it.
I was wrong. This got the fire mode indicator to show up on these guns in game, but despite 3 shot burst or automatic fire, the mode is stuck on "1" - single fire. The game won't switch off from it, either. Even if I only give a gun automatic fire only, it's still stuck at "1" in game and wont fire more than a single shot at once. I hope to god that this shit isnt hard-coded for some stupid reason, cause that would really screw up what is one of my favorite mod plans.
Can anyone assist? Really hoping for a solution here. Oh, and for the record, I'm putting in the settings to the handgun(s) as
"Fire_modes = 1, 3, -1" Single fire, 3 shot burst, & full automatic, respectively.
This is how it was in SoC, but has anything changed? I await the voices of others.
Here's the auto pistol from ABC:
Try changing those 3 lines, that might make it work.
Jarvis is right, it works with these changes. I saw one problem with automatic handguns : the NPCs wearing them tend to use it as their main weapon.
Hum, now that i think about it, I did set the auto fire mode in first position in the file. Need to go check this, now.
Ahh, glad to know it works :nodding:
NPCs probably prefer them because they are now classed as assault rifles, and NPCs always pick them over shotguns or pistols if given the choice.
I was thinking of doing exactly this last night, actually. I was too tired though, so I went to bed instead. Good to know I can come back to a confirmation, thanx.
You're probably right about the preference, though. I'll test them out, see how it goes. On the other hand, since they'd likely be carrying Assault Rifles anyways, one would hope they wouldn't make the switch.
(Bandits, however, might)
First off, gonna try "WP_AK74" a try, so they won't at least use these over NATO rifles.
(notices that MP5s are classified as "WP_LR300", where as actual LR 300s are classified as "WP_AK74") (swaps the values between the two)
Hmm, hopefully this will solve some wonky gun preferences on the NPCs.
Well, "WP_AK74" doesn't work on handguns for some reason. The game CTDs, citing some "launch" variable that it can't find. LR_300 works just fine, though.
Aaaaand done! Both guns work great! Better yet, the extra fire modes through upgrades work as well. Now all I have to do is adjust the recoil on each, and I can move on to other guns. Thx a bunch guys. I hope to show everyone what I've come up with soon.
Ok, all Handguns, Shotguns & MP5s are finished. There were quite a few issues that got in the way, but thanks to a lot of modding here and there, I was able to figure out what the problems were without asking others again, heh.
Now on to the meat of the weapons. I gotta get creative here, starting to run out of ideas....