Problem
Right now you can only define two first person view weapon models (two different hands, like with Double Shotgun models) and one third person view models (holding a weapon item).
Solution
You need to be able to define a model for each kind of action.
Main viewmodel:
- Main hand model (right now under "Model1").
- Second hand model (right now under "Model2").
- Main hand model for alt fire.
- Second hand model for alt fire.
Viewmodel while dual wielding:
- Main hand model.
- Second hand model.
- Main hand model for alt fire.
- Second hand model for alt fire.
Player item model:
- Item model (right now under "Model3").
- Item model for alt fire.
Changes to weapon configs
Instead of having these keys in the weapon config:
"Model1" : "Models1\05_DoubleShotgun.json",
"Model2" : "Models1\05_DoubleShotgun_2.json",
"Model3" : "Models3\05_DoubleShotgun.json",
"Pos1" : [0.13, -0.21, -0.364, 2.0, 1.0, 0.0],
"Pos3" : [0.0, -0.12, -0.3, 0.0, 0.0, 0.0],
They can be grouped under the Models
block like this:
"Models" : {
"View" : {
"Main1" : "Models1\05_DoubleShotgun.json",
"Main2" : "Models1\05_DoubleShotgun_2.json",
"Alt1" : "Models1\05_DoubleShotgun.json",
"Alt2" : "Models1\05_DoubleShotgun_2.json",
"Offset" : [0.13, -0.21, -0.364, 2.0, 1.0, 0.0],
},
"ViewDual" : {
"Main1" : "Models1\05_DoubleShotgun.json",
"Main2" : "Models1\05_DoubleShotgun_2.json",
"Alt1" : "Models1\05_DoubleShotgun.json",
"Alt2" : "Models1\05_DoubleShotgun_2.json",
"Offset" : [0.13, -0.21, -0.364, 2.0, 1.0, 0.0],
},
"Item" : {
"Main" : "Models3\05_DoubleShotgun.json",
"Alt" : "Models3\05_DoubleShotgun.json",
"Offset" : [0.0, -0.12, -0.3, 0.0, 0.0, 0.0],
},
},
This should give enough freedom to customize how weapons look for any sort of situation.