Quote:
Originally Posted by Hertzole
Can someone explain how I can use custom viewmodels/worldmodels? I can't figure it out and I've been trying to get it to work for quite some time.
|
First add this to your weapon config:
"viewmodel"
{
"modelname" ""
}
"worldmodel"
{
"modelname" ""
}
Be sure it it not inside "attributes".
Then Find the name of the model you want to use. I personaly use this site
https://steamcommunity.com/sharedfil.../?id=395367659
Then open GCFscape or other vpk file openers and search for the model.
Right click the mdl file and click on propeties. Copy the directory example:
root\models\weapons\c_models\c_pickaxe\c_pick axe.mdl (its better to use c_ models)
then remove the root\ and change all the \ to /
paste it into the "" after modelname of both viewmodel and worldmodel. Shoud look similar to this
"Test"
{
"classes"
{
"soldier" "1"
}
"baseclass" "shotgun"
"baseindex" "441"
"nobots" "1"
"quality" "6"
"logname" "test"
"description" "test"
"viewmodel"
{
"modelname" "models/weapons/c_models/c_xms_cold_shoulder/c_xms_cold_shoulder.mdl"
}
"worldmodel"
{
"modelname" "models/weapons/c_models/c_xms_cold_shoulder/c_xms_cold_shoulder.mdl"
}
"attributes"
{
}
}
This makes a soldier shotgun with the spycicle model.
You cant change the animations so use the base index from a weapon that uses the animations you want. For that i use this:
https://wiki.alliedmods.net/Team_for...nition_indexes
Hope this helped you