Raised This Month: $51 Target: $400
 12% 

[TF2] Need help with TF2Items plugin.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jnaejnae7
New Member
Join Date: Oct 2017
Old 10-04-2017 , 04:19   [TF2] Need help with TF2Items plugin.
Reply With Quote #1

I have a private dedicated server with working source mod. I've also installed the TF2Items plugin.

My goal is simple. To remove the back scatter's clip size penalty. My "tf2items.weapons.txt" looks like this:

Code:
"backscatter"
{
	"STEAM_0:1:78124930"
    	{
		"1103"
 		{
			"quality"		"1"
			"level"			"100"
		 	
			"1"				"4 ; 1.00"
		}
	}
}
I think I formatted it correctly. Ive tried multiple things and nothing works. Can anyone familiar with this plugin help me out? I cant get it to work even after reading the examples over and over. Plus I cant find any help threads because this plugin is popular and it drowns out most help threads. Any help would be much appreciated.
Jnaejnae7 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-04-2017 , 12:44   Re: [TF2] Need help with TF2Items plugin.
Reply With Quote #2

I thought about answering your question on the TF2Maps forum, but thought it'd be better to answer over here.

This should probably be over on the TF2Items board, although a mod/admin may have already moved it before you see this.

Your file needs to look something like this:

Code:
"custom_weapons_v3"
{
	"*"
	{
		"1103"
		{
			"quality"		"1"
			"level"			"100"
			"preserve-attributes"	"1"

			"1"			"3 ; 0.00"
		}
	}
}
So, I'll explain why I wrote it this way.

First, the file must start with "custom_weapons_v3" to work with this plugin.

The "*" means you want it to apply to everyone, which is something you mentioned in the TF2Maps version of this thread.

You know the 1103 is the backscatter already.

"preserve-attributes" says to keep all the existing attributes...

...and then, rather than adding a clip size bonus, set the existing clip size penalty to 0.

You also need to make sure that the server is loading the tf2items_manager plugin in addition to the TF2Items extension.

Note: I haven't tested this.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-04-2017 at 12:44.
Powerlord is offline
Jnaejnae7
New Member
Join Date: Oct 2017
Old 10-04-2017 , 16:59   Re: [TF2] Need help with TF2Items plugin.
Reply With Quote #3

Quote:
Originally Posted by Powerlord View Post
I thought about answering your question on the TF2Maps forum, but thought it'd be better to answer over here.

This should probably be over on the TF2Items board, although a mod/admin may have already moved it before you see this.

Your file needs to look something like this:

Code:
"custom_weapons_v3"
{
	"*"
	{
		"1103"
		{
			"quality"		"1"
			"level"			"100"
			"preserve-attributes"	"1"

			"1"			"3 ; 0.00"
		}
	}
}
So, I'll explain why I wrote it this way.

First, the file must start with "custom_weapons_v3" to work with this plugin.

The "*" means you want it to apply to everyone, which is something you mentioned in the TF2Maps version of this thread.

You know the 1103 is the backscatter already.

"preserve-attributes" says to keep all the existing attributes...

...and then, rather than adding a clip size bonus, set the existing clip size penalty to 0.

You also need to make sure that the server is loading the tf2items_manager plugin in addition to the TF2Items extension.

Note: I haven't tested this.
Very useful. I fixed my weapons txt and I compiled the sp plugin. When I loaoded it though it made the back scatter have 0 ammo. So I fixed that stat, it was supposed to be : "4 ; 1.50"

Thanks for the help.
Jnaejnae7 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode