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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
S_W_A_T
Senior Member
Join Date: Dec 2007
Old 03-15-2012 , 23:33   Re: TF2Items - Items with custom attributes.
#1431

Hi, can some1 teach me how to add into a groupname? I tried replacing the steamID with a groupname, doesnt seem to work...

PHP Code:
    "STEAM_0:1:23456789"    // * = all / steamid
    
{
        
"*"
        
{
            
"quality"            "8"
            "level"            "0"
            "preserve_attributes"    "1"
            "1"            "134 ; 4"
        
}
    } 
S_W_A_T is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-16-2012 , 18:50   Re: TF2Items - Items with custom attributes.
#1432

Anyway to just make it all hats?
PHP Code:
"custom_weapons_v3"
{
    
"*"
    
{
        
"???"
        
{
            
"admin-flags" "o"
            "preserve-attributes"    "1"
            
            "1"                "134 ; 17"
        

    }


Last edited by ReFlexPoison; 03-16-2012 at 18:50.
ReFlexPoison is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-17-2012 , 00:00   Re: TF2Items - Items with custom attributes.
#1433

Yes, with a plugin.
__________________
DarthNinja is offline
portalmods124
Member
Join Date: Sep 2011
Old 03-19-2012 , 06:39   Re: TF2Items - Items with custom attributes.
#1434

Hey Asherkin, I have edited the source code for TF2items to disable the attribute count limit, are there any drawbacks?
__________________
portalmods124 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-19-2012 , 06:41   Re: TF2Items - Items with custom attributes.
#1435

Quote:
Originally Posted by portalmods124 View Post
Hey Asherkin, I have edited the source code for TF2items to disable the attribute count limit, are there any drawbacks?
Yes, you'll overflow the sendtable.
It wasn't just an arbitrary limit, the game only supports 16.
__________________
asherkin is offline
portalmods124
Member
Join Date: Sep 2011
Old 03-19-2012 , 09:15   Re: TF2Items - Items with custom attributes.
#1436

Oh, I recompiled the source provided with the link but with no limits. Would the game crash or just TF2items stops working or SM stops working? (Actually asking for the consequences of overflowing)
__________________
portalmods124 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-19-2012 , 09:25   Re: TF2Items - Items with custom attributes.
#1437

Quote:
Originally Posted by portalmods124 View Post
Oh, I recompiled the source provided with the link but with no limits. Would the game crash or just TF2items stops working or SM stops working? (Actually asking for the consequences of overflowing)
I don't know, I've never been silly enough to try.
Best case, extra attributes don't work. Worst case, the server will crash. Worser case, clients will also crash.
__________________
asherkin is offline
Roundcat
Senior Member
Join Date: Feb 2012
Old 03-19-2012 , 18:59   Re: TF2Items - Items with custom attributes.
#1438

Im sorry to say I need some help. I run a crits server so Jarate is obsolete. Instead of it making players receive crits I want it to slow players down by 40% for 5 secs. Simultaneously I want it to make the player covered in it immune to crits until it wears off (around 10 secs??).

So far I have this:

Code:
"custom_weapons_v3"
{
	"*"
	{
"58"   //Jarate
		{
			"quality"		"2"
			"level"			"0"

			"1"				"182 ; 5"
			"2"				"62 ; 60"
       		}

	}
}

I'm a a bit of a noob and don't really understand the following:

What levels numbers to use and why
What number to allocate to particle effects
Oh I also want to lengthen the distance demos can throw stickies...

I know its a big ask but if anyone can guide me... I'd appreciate it.
__________________
I know not my ar*e from its elbow.
Roundcat is offline
portalmods124
Member
Join Date: Sep 2011
Old 03-20-2012 , 04:56   Re: TF2Items - Items with custom attributes.
#1439

Quote:
Originally Posted by asherkin View Post
I don't know, I've never been silly enough to try.
Best case, extra attributes don't work. Worst case, the server will crash. Worser case, clients will also crash.
Should I try?

Quote:
Originally Posted by Roundcat View Post
Im sorry to say I need some help. I run a crits server so Jarate is obsolete. Instead of it making players receive crits I want it to slow players down by 40% for 5 secs. Simultaneously I want it to make the player covered in it immune to crits until it wears off (around 10 secs??).

So far I have this:

Code:
"custom_weapons_v3"
{
    "*"
    {
"58"   //Jarate
        {
            "quality"        "2"
            "level"            "0"
 
            "1"                "182 ; 5"
            "2"                "62 ; 60"
               }
 
    }
}

I'm a a bit of a noob and don't really understand the following:

What levels numbers to use and why
What number to allocate to particle effects
Oh I also want to lengthen the distance demos can throw stickies...

I know its a big ask but if anyone can guide me... I'd appreciate it.
You need a plugin to do this, normally it's not possible to do so with TF2items
__________________
portalmods124 is offline
portalmods124
Member
Join Date: Sep 2011
Old 03-20-2012 , 05:03   Re: TF2Items - Items with custom attributes.
#1440

What's the use of custom_weapons_v3? Is it used to override the item attributes of items for specified players, or make a new one? What's the format, express it in this form:

Code:
"custom_weapons_v3"
{
     "item index/new item index"
     {
          "quality"     "number"
          "level"       "number"
...
__________________
portalmods124 is offline
Closed Thread



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 18:47.


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