STEAM GROUP
Custom TF2 Weapons cTF2w
STEAM GROUP
Custom TF2 Weapons cTF2w
1,162
IN-GAME
6,487
ONLINE
Founded
19 June, 2015
Language
English
Location
United States 
Pipedream 7 Oct, 2016 @ 7:18pm
Custom Viewmodel?
Any way to add a custom viewmodel to a custom weapon?
< >
Showing 1-9 of 9 comments
[cTF2w] Crafting 8 Oct, 2016 @ 10:17pm 
First, you have to use a stock weapon (ex. Flame Thrower, Pyro's Shotgun, Fire Axe).

"baseclass" "fireaxe"
"baseindex" "2"


Second, set the "viewmodel" only right after setting the attributes.


"viewmodel"
{
"modelname" "models/weapons/c_models/c_psycho_axe/c_psycho_axe.mdl"
}


So, the player will see the custom model in their hands, but it will look like a stock model from another player's view.
Last edited by [cTF2w] Crafting; 8 Oct, 2016 @ 10:20pm
Pipedream 8 Oct, 2016 @ 10:40pm 
Originally posted by Crafting..... Boo!:
First, you have to use a stock weapon (ex. Flame Thrower, Pyro's Shotgun, Fire Axe).

"baseclass" "fireaxe"
"baseindex" "2"


Second, set the "viewmodel" only right after setting the attributes.


"viewmodel"
{
"modelname" "models/weapons/c_models/c_psycho_axe/c_psycho_axe.mdl"
}


So, the player will see the custom model in their hands, but it will look like a stock model from another player's view.
But I don't know where to put the model .~.
Last edited by Pipedream; 8 Oct, 2016 @ 10:41pm
[cTF2w] Crafting 10 Oct, 2016 @ 8:37am 
You have to have the files for the weapon model in the server files (steamapps\common\Team Fortress 2 Dedicated Server\tf) and in the client's folders (steamapps\common\Team Fortress 2\tf\download).
Pipedream 10 Oct, 2016 @ 1:22pm 
You mean like tf\models?
[cTF2w] Crafting 27 Nov, 2016 @ 3:48pm 
Originally posted by Red Plumber:
You mean like tf\models?

Correct. You have to rename the files inside that folder, like this.....
tf\models\weapons\c_models\c_melf_magic_poison\c_melf_magic_poison.mdl

Do NOT touch the files in the materials folder. You have to have a way so people can download the files, like a fast download server..... that does cost little bit of money. You can use Dropbox, but the players would have to manually download and place the files in the required folders.

Btw, this is something I recently posted on a YouTube comment who asked the same question. Most of it is repeating, but might as well paste it here.....



The public version of the plugin doesn't support that complete (and please understand there's a reason for that).

This is what I can tell you...
1) Go back to the plugin page ( https://forums.alliedmods.net/showthread.php?t=285258 )
2) Look at the "EXAMPLE WEAPON CONFIG" tab
3) Only set the "viewmodel" (and not "worldmodel")
4) Lastly.... very Important!!!.... Make sure the base weapon is a stock weapon (as in, Scattergun, Pistol, and Bat)

This way you will see the custom model in your hands, but every else will see the stock weapon and will not be invisible.
Last edited by [cTF2w] Crafting; 27 Nov, 2016 @ 3:50pm
Pipedream 27 Nov, 2016 @ 5:52pm 
How do you add custom sounds to a gun?
[cTF2w] Crafting 27 Nov, 2016 @ 6:14pm 
Originally posted by Red Plumber:
How do you add custom sounds to a gun?

"sound"
{
"player"
{
"find" ")weapons/rocket_shoot.wav"
"replace" "mvm/giant_soldier/giant_soldier_rocket_shoot.wav"
}
"player"
{
"find" ")weapons/rocket_shoot_crit.wav"
"replace" "mvm/giant_soldier/giant_soldier_rocket_shoot.wav"
}
}

Now, the mod can only mostly-replace sounds.... as in, the more lag you have with the server... you will hear 2 different sounds (the oringal sound and the replacement sound)
Pipedream 27 Nov, 2016 @ 6:18pm 
Originally posted by Crafting | cTF2w:
Originally posted by Red Plumber:
How do you add custom sounds to a gun?

"sound"
{
"player"
{
"find" ")weapons/rocket_shoot.wav"
"replace" "mvm/giant_soldier/giant_soldier_rocket_shoot.wav"
}
"player"
{
"find" ")weapons/rocket_shoot_crit.wav"
"replace" "mvm/giant_soldier/giant_soldier_rocket_shoot.wav"
}
}

Now, the mod can only mostly-replace sounds.... as in, the more lag you have with the server... you will hear 2 different sounds (the oringal sound and the replacement sound)
Thanks
Pipedream 27 Nov, 2016 @ 6:49pm 
I updated to Custom Weapons 3 (Beta 2) and now I get this error even though I have everything setup the way the installation tutorial says so:

Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)

And the error logs don't show anything

Also I think the tf2items.randomizer.txt you have on the page is incorrect

""Games"
{
/* Team Fortress 2 */
"tf"
{
"Offsets"
{
"CTFPlayer::EquipWearable"
{
"windows" "429"
"linux" "430"
"mac" "430"
}
}
}
}"

Seems to be a crapton shorter than

https://raw.githubusercontent.com/FlaminSarge/tf2attributes/master/tf2.attributes.txt

also compiling tf2attributes.sp results in this error

// ----------------------------------------

//// tf2attributes.sp
//
// tf2attributes.sp(210) : warning 234: symbol "FCVAR_PLUGIN" is marked as depre
cated: No logic using this flag ever existed in a released game. It only ever ap
peared in the first hl2sdk.
//
//
// tf2attributes.sp(217) : warning 225: unreachable code
// tf2attributes.sp(325) : error 017: undefined symbol "Address_MinimumValid"
// tf2attributes.sp(333) : error 017: undefined symbol "Address_MinimumValid"
// tf2attributes.sp(796) : error 017: undefined symbol "Address_MinimumValid"
//
Last edited by Pipedream; 27 Nov, 2016 @ 7:00pm
< >
Showing 1-9 of 9 comments
Per page: 1530 50