Hi In this tutorial I'm going to show you how to get a gun ingame. I do expect you to know: :doh: How to open up Milkshape :doh: How to save a model in Milkshape :doh: How to hide and unhide objects in Milkshape :doh: How to select verts or faces in Milkshape I used the MoH: Vietnam TT33 to show you how to import a gun.. First save your model as ms3d.. Make a clean new file Import the model you want to replace Example: If you want to replace the nambu pistol, import models/nambu_pistol/nambu_pistol.gr2 Now merge your saved model with it Rotate, move, scale your model so it fits the handles Delete the LOD groups numers 0, 1 and 2 NOTE: Don't remove LOD3 Now select the LOD3 group and hide it Select all the remaining verts (not the faces) and hide them You should now have something like this (just a plain model whitout verts): Unhide the LOD3 group and modify the verts to fit you model: Now unhide everything Click the tab joints and select the bone "ROOT" Click SelUnAssigned then click Assign (make sure the bone ROOT is selected) Now regroup all of your model groups Rename the group to LOD0_yourweaponname Delete the material from the game model Rename your material to LOD0_yourweaponname Select the LOD3 group and open up the MDK Model Manager Remove the LOD's 1, 2 and 3 (NOT LOD0) Now, with the LOD3 selected, add it to the Collision If you done it correctly, you would have something like this: Now close the MDK Model Manager by clicking OK in the bottom. Select the LOD0_yourweaponname group and open it again.. Add it to LOD0 Now you should have something like this in the MDK Model Manager: Open up the Material Editor Remove the original game model material.. You will get this message: Click yes.. Hit convert material to convert your own created LOD0_yourweaponname material to the material editor Now make a folder called models. Then in models a folder weapons then in weapons a folder nambu_pistol or whatever weapon you wanted to replace Then put your texture in it so the path will be: models/weapons/nambu_pistol/texture.tga Click the None button next to diffuse texture Then select your texture in the folders you just made. Close the Material Editor by clicking OK in the bottom right Export your model You'll probably get this message: Hit continue Open the script editor and click the [...] button Click Hag file. Now scroll down till you see your replacing weapon hag file.. Click open. Then change the skelmodel file: Like if your gun name tt33.moh you should have in the hag: skelmodel tt33.moh Save the file to your hard disk... Open up Pakscape Make the folders models/weapons/nambu_pistol/textures/ Import your texture in models/weapons/nambu_pistol/textures/ Import your model in models/weapons/nambu_pistol/ Import your hag file in models/weapons/ Save your pk3 and put it in your MoHPA/main Directory Open up a SP map and type in console spawn weapons/nambu_pistol.hag Result Now i gave you all this info, how bout giving me some rep point, huh? For any questions, post them here. Bye, DaRKaNGeL
Gud tutorial part from the help the noobies bit lol by the way, weapons dont need collision, only static weapons and other stuff.
try looking at the other weapon files they dont seem to, i havent really looked into this. My sword seems to work normally without collison, there proberly handled the same way as players, i asume they use bounding boxes or spheres like in many games. but i could be complety wrong, this is just how many games do there collision. Example of a Bounding Box.