Lightwraps and Viewmodels
This guide shows you how to use custom viewmodels and lightwraps in casual. Viewmodels do semi-work if you preload them but some classes are bugged or don't work at all(sniper). I don't explain every step of the way in settings things up, there are better guides out there for that.
1.Getting the mods
1.Download QuickPrechace
2.Download Crowbar and set it up
3.Download a lightwrap mod, I chose Diddly's Lightwraps by Diddly Dan
2.Download a viewmodel mod, I'll be using the Mega Sniper Viewmodel Pack 2 by CoryP2001
3.Extract the contents of one the viewmodels in the pack, I chose FPS Chronomancer (Sniper) v2
2.Viewmodel
1.Open up Crowbar and go to Decompile, activate the [Include $definebone lines] box
2.After that click on Mdl Input, choose the c_sniper_arms.mdl from your viewmodel mod
3.Choose a folder to Output the file to and click on Decompile
4.Go to the folder which it was decompiled in and open the c_sniper_arms.qc with Notepad
5.Replace $cdmaterials "models\player\sniper\" with $cdmaterials "vgui\replay\thumbnails\models\player\sniper\"
6.Click on save and Compile the c_sniper_arms.qc
7.Your Viewmodel will be in steam\steamapps\common\Team Fortress 2\tf\models\weapons\c_models
3.Materials
1.Go to the materials folder in your viewmodel mod and put the models folder (the one with the vtf files) in vgui\replay\thumbnails
2.Navigate to materials\vgui\replay\thumbnails\models\player\sniper
3.Now go to sniper_handl_red.vmt and replace "$basetexture" "models\player\sniper\sniper_handl_red" with "$baseTexture" "vgui/replay/thumbnails/models/player/sniper/sniper_handl_red"
4.Replace "$lightwarptexture" "models/player/pyro/pyro_lightwarp" with "$lightwarptexture" "models/lightwarps/weapon_lightwarp"
5.Save it and do these for the other vmt files too. You just need to add vgui/replay/thumbnail before the models/player and switch pyro_lightwrap with the weapon_lightwrap
4.Final
1.Put the mod in your custom folder
2.Execute quickprecache_mcp_full.bat
And it's done
What if there is no material folder?
1.Open tf2_textures_dir.vpk and navigate to models/player and the merc of your choice.
2.You'll only need the vtf files that change the mercs hand texture. For the engi it would be engineer_handl.vtf, engineer_mech_hand.vtf, engineer_mech_hand_blue.vtf etc.
3.Follow the guide afterwards
My Viewmodel has missing textures?
1.You'll need every texture that is used by the viewmodel, whether it's sniper's watch, his gloves or his hand.
What if I want to use the stock viewmodels?
1.Open tf2_misc_dir.vpk and navigate to models/weapons/c_models and copy every file that has the mercs name and _arms after it. For an example c_demo_arms.mdl. Although I might do it myself after some time and release it.
Weapons and player models
The weapons can also have lightwraps but there are like 100+ of them, you'd need to do it for every weapon. I tried making the player models have the custom lightwraps too but I couldn't succeed. There is probably a way to do it but I dunno how. The thing is that the pyro_lightwarp (which is used by player models) doesn't really seem to work, or is not casual compatible. I tried to switch it with the weapon_lightwrap and it still did not work