Create a mod openspades

1-Create your model in Voxelshop or slab6.exe (140 KB)

2-Put the magazine in a new layer

3-Save the weapon with the 2 layers visible in kv6 [Weapon.kv6]

4-Save each layer in WeaponNoMagazine.kv6 and Magazine.kv6 or if you’re making a shotgun WeaponNoPump.kv6 and Pump.kv6

5-Download my mod pack
Weapons.zip (3.4 MB)

6-Put your models in weapon.zip\Models\Weapons\weapon\

7-Edit with your Notepad weapon.zip\Scripts\Skin\weapon\View.as

Change the size of your weapon by changing this number → 0.033f
Matrix4 mat = CreateScaleMatrix(0.033f);

Change the position of your hands by changing these numbers → 0.f, 11.f, 2.5f
leftHand = mat * Vector3(0.f, 11.f, 2.5f);
rightHand = mat * Vector3(-3.5f, -2.1f, 1.f);

Change the positions of the reload animation by changing these numbers → 0.f, 11.f, 2.5f
Vector3 position1 = mat * Vector3(0.f, 11.f, 2.5f);
Vector3 position2 = mat * Vector3(0.f, 1.f, 4.5f);
Vector3 position3 = mat * Vector3(0.f, 1.f, 45.f);

Change the hand in the reload animation by puting lefthHand or rightHand
float per = reload / 0.5f;
leftHand = Mix(position2, position3, SmoothStep(per));

Change the animation speed by changing these numbers → 0.1f
if(reload < 0.1f){
// move hand to magazine
float per = reload / 0.1f;

Change the movements of the magazine when you reload by changing these numbers → 0.f, 0.f, 45.f
mat *= CreateTranslateMatrix(Mix (Vector3(0.f, 0.f, 0.f), Vector3(0.f, 0.f, 45.f), per));

If you don’t want the magazine to move download this mod pack
Weapons2.zip (923.4 KB)

8-Edit with your Notepad weapon.zip\Scripts\Skin\weapon\ThirdPerson.as

Change the size of your weapon by changing this number → 0.033f
Matrix4 mat = CreateScaleMatrix(0.033f);

9-Create with Audacity .wav and .opus sounds to put in weapon.zip\Sounds\Weapons\weapon\

10-Create with Gimp weapon.png in 800x600 and edit sight.tga in weapon.zip\Gfx\

if you have problems with the position of your weapon you will have to move it by selecting your two models and moving them or with slab6 changing the Pivots in Tools - Adjust Pivots

11-If you want to change the player you can change him and his sounds in Player.zip

12-If you want to change the Intel, cp and the menu you can change it in Intel and cp.zip

2 Likes