STEAM 组
Custom TF2 Weapons cTF2w
STEAM 组
Custom TF2 Weapons cTF2w
1,416
游戏中
7,426
在线
成立于
2015 年 6 月 19 日
语言
英语
国家/地区
United States 
所有讨论 > 综合讨论 > 主题详情
Pipedream 2016 年 10 月 7 日 下午 7:18
Custom Viewmodel?
Any way to add a custom viewmodel to a custom weapon?
< >
正在显示第 1 - 9 条,共 9 条留言
[cTF2w] Crafting 2016 年 10 月 8 日 下午 10:17 
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.
最后由 [cTF2w] Crafting 编辑于; 2016 年 10 月 8 日 下午 10:20
Pipedream 2016 年 10 月 8 日 下午 10:40 
引用自 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 .~.
最后由 Pipedream 编辑于; 2016 年 10 月 8 日 下午 10:41
[cTF2w] Crafting 2016 年 10 月 10 日 上午 8:37 
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 2016 年 10 月 10 日 下午 1:22 
You mean like tf\models?
[cTF2w] Crafting 2016 年 11 月 27 日 下午 3:48 
引用自 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.
最后由 [cTF2w] Crafting 编辑于; 2016 年 11 月 27 日 下午 3:50
Pipedream 2016 年 11 月 27 日 下午 5:52 
How do you add custom sounds to a gun?
[cTF2w] Crafting 2016 年 11 月 27 日 下午 6:14 
引用自 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 2016 年 11 月 27 日 下午 6:18 
引用自 Crafting | cTF2w
引用自 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 2016 年 11 月 27 日 下午 6:49 
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"
//
最后由 Pipedream 编辑于; 2016 年 11 月 27 日 下午 7:00
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50

所有讨论 > 综合讨论 > 主题详情