gc_rev Posted April 25, 2021 Share Posted April 25, 2021 I'm trying to add a new firearm, but I don't know how to adjust the position to attach the 3D model of accessories such as scopes and laser sights. Checked the those 3D models seemed to be static meshes without bones. Because that the attach point are obtained from an external file I think. Problem is that the drawing of firearms with accessories has changed between the early and present of Beta 41, and the contains a mixture of currently used files and files that are no longer in use. Troublesome. Any idea? Link to comment Share on other sites More sharing options...
gc_rev Posted April 25, 2021 Author Share Posted April 25, 2021 Sorry, I found it. There was a corresponding code in "models_items.txt", This is an example. model Handgun { mesh = Weapons/Firearm/Handgun, attachment muzzle { offset = 0.0000 0.1520 -0.0270, rotate = -90.0000 0.0000 0.0000, } attachment reddot { offset = 0.0010 0.0440 -0.0400, rotate = 1.0000 1.0000 1.0000, } attachment gunlight { offset = 0.0000 0.0800 0.0030, rotate = 1.0000 1.0000 1.0000, } attachment scope { offset = 0.0000 0.1240 -0.0380, rotate = 180.0000 0.0000 0.0000, } attachment laser { offset = 0.0000 0.0900 0.0080, rotate = 0.0000 0.0000 0.0000, } } Hope this information helps other Modders. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now