I tried that for 3 days straight, testing every possible way until I gave up, I don’t think we can do that yet since there isn’t a Cocking info file mounter yet. You can check them out here: Data files - Cfx.re Docs
And there isn’t a way to add new weapon information files/entries (generally speaking), since the current method is patching pre existing entries, I think we must upload weapons.ymt file in order to be able to do that, and that isn’t possible with RedM yet.
Although I haven’t found a method to mess with the cocking infos I found a few methods to work around that, let me know what your goal is and I’ll try and help you achieve it.
Here’s where I got, this is a showcase for the guns I’ve replaced so far, Tommy Gun for Springfield rifle, and gambler double action with 38 special snub nose:
the problem with those guns is that they share the same gun model/fram but they have different grips and textures. And also they are not included in the files in the common version of RedM.
This looks really promising! Have you worked out at all how to apply these changes on a server? So the damage sounds and customization all sticks and doesn’t desync.
We have been looking into finding a way to have the Mauser pistol fully automatic, and adding or replacing some weapons. Only downside is that fire rate changes don’t seem to be doable without restarting a script over and over, meaning everything will desync.
Oh yeah these are core game modifications, and not a script, it replaces all gun functionality. If you could share your current weapon info .meta files I could help you out.
If that’s the model from nexus mods, then I think he’s either streaming the gun as the grip or the sight if I remember correctly. Not the actual weapon, try using spooner or an object loader and check, your inventory/gun script might be loading the weapon without a grip or such.
Hey everyone!
I am trying to make a shotgun function like a rifle, has anyone found a way to manipulte it in such way so things like spread and the range the bullets go?
Greetings!
Hey sorry I didn’t reply in time, let me know if you need more help.
I believe you can also alter the weapons bullet type (shotgun/bullets) and which bullets it uses.
You can change the names of the entries AmmInfo to what ever ammo type you want in each item, you can find reference weapons.ymt files, and it actually changes what ammo type it gets fed, which is awesome, you can have it take as much ammo as you want too, just include this inside your CWeaponInfo <>