I'm having trouble with making my own custom weapon
1. When I load up the weapon I made, It seems its stats haven't been changed/added at all. I admit I'm not the greatest at coding or anything and I know on the TF2 wiki it displays some attributes as a percentage or reverse percentage so I'm not sure what I'm doing with those.
2. I added a custom model for it and I put the stuff I think needs to be put in for the custom model to work but that doesn't work either. I have seen other's talk about the customs models not working but idk if another plugin is needed for that work or what. Idk what I'm doing wrong with these 2
And this is what the code for the weapon I'm working on looks like:
Quote:
"Cerberus"
{
"classes"
{
"heavy" "0"
}
"baseclass" "minigun"
"baseindex" "15"
"nobots" "1"
"quality" "6"
"logname" "cerberus"
"description" "+15 faster firing speed\n+50 bullets per shot\n25% less accurate\n-20% damage penalty\n50% slower spin time
"attributes"
{
"fire rate bonus"
{
"plugin" "tf2attributes"
"value" "0.85"
}
"bullets per shot bonus"
{
"plugin" "tf2attributes"
"value" "1.5
}
"spread penalty"
{
"plugin" "tf2attributes"
"value" ".25"
}
"damage penalty"
{
"plugin" "tf2attributes"
"value" "0.8"
}
"minigun spinup time increased"
{
"plugin" "tf2attributes"
"value" "1.5"
}
"weapon_allow_inspect"
{
"plugin" "tf2attributes"
"value" "1"
}
}
"viewmodel"
{
"modelname" "models/weapons/c_models/c_trigun/c_minigun.mdl"
}
"worldmodel"
{
"modelname" "models/weapons/c_models/c_trigun/c_minigun.mdl"
"sound"
{
"player"
{
"find" ")weapons/minigun_shoot.wav"
"replace" "weapons/heavy/trigun_shoot.wav"
"pitch" "150"
}
}
}
|