Quote:
Originally Posted by DrCactus
Hello. I've run into a bit of a snag with my server and the plugin.
I've been trying to get custom view models for weapons working, but haven't had much success, and I just get very zoomed out stock models.
I understand we can't have world models, but it would be nice to have viewmodels for players. Also, is it possible to not make them zoomed out?
I am using the afterburner as a base, as well as the "firkin flamer" model
(this is only because these are the ones I have on hand at the moment, and just needed something quick to test out, and will be using a different model and make my own weapon later)
here is a slightly abbreviated version of Pryo_1_Afterburner.txt
Code:
"Test"
{
"classes"
{
"pyro" "0"
}
"baseclass" "flamethrower"
"baseindex" "21"
"nobots" "1"
"quality" "6"
"logname" "test"
"description" "test"
"attributes"
{
"damage penalty"
{
"plugin" "tf2attributes"
"value" "0.5
}
}
"viewmodel" // Custom viewmodel.
{
"modelname" "models/weapons/c_models/c_firkin_flamer/c_firkin_flamer.mdl" // Location of the viewmodel file.
}
}
|
Actually you can have both custom world and view models, but I think your problem is with the model itself. I believe the model you are trying to use has custom animations which are not supported. Only c_models are, which have just the (weapon body model)
PHP Code:
"viewmodel"
{
"modelname" "path/path/path"
}
"worldmodel"
{
"modelname" "path/path/path"
}
This one worked for me,
https://steamcommunity.com/sharedfil.../?id=741236065