I'm in the process of adding new silenced variants of the weapons to my mod, atm. that's why i like this game and this community so much! We're all poineers right? Some ppl invent stuff, others just adjust it for their taste. But yes, all credits go for the one who provided them in the first place!
How to install valmod pack code#
I think i took the silenced weapons from one of Andy's mods, not sure if its from him, because i use code from many different sources to make my own game more interesting. Thanks for providing the sniper scope code, i've just added it and will test it in a moment. Yes, now u mentioned it, i see it uses extra alt ammo types, which i haven't added, i think thats why i got some sort of error with that gun, now removed the extra ammo types and will test if it still generates an error. To whoever wrote the code, if you're reading this, thank you too. I haven't tested this myself but if it works I'll definitely be looking into incorporating this in my pack, provided I'm satisfied with the "metalhitcloth" sound effect. I see your provided pistol code uses "metalhitcloth" as a sound. I didn't know there were suitable replacements. I didn't know there was a way to achieve this, I thought the only option was to remove the sound file from the xml. I tried making silenced weapons before but I didn't like the fact that they were literally silent. I also based this around vanilla code and your provided silenced pistol code - you'll have to add your alt ammo and assign it to the recipe book and loot tables. Notes: I left the item IDs blank - fill in to suit your needs. Adjust it to fit your needs, this is just the barebones code to use as a guideline. Just thought I'd mention it.Īnyway, here is an example of a silenced highpowered scope sniper. Perhaps your bullets use buffs to cause damage - I don't know. Im not sure how it handles bullet damage but whenever I tried a gun with alt ammo that didn't have an attribute all the ammo did the same amount of damage. I noticed the pistol code you shared uses alt ammos but doesn't have any attribute assigned to it. Though, just to add, in my experience alt ammo doesn't actually work properly if the gun doesn't have an attribute. I don't know what code you use for your silenced sniper so you may need to adjust this to use the added ammo and such.
![how to install valmod pack how to install valmod pack](https://i.ytimg.com/vi/hNkkhBbxXy4/maxresdefault.jpg)
Though like I said, its actually a different sniper rifle that is built by using a different part.Īll you would have to do is make a new silenced sniper rifle that use all default parts EXCEPT for the added scope and then add a recipe for it. In a manner of speaking it would be possible, sure.