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

Strange items acting strange


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
skyvizer
New Member
Join Date: Aug 2012
Old 08-01-2012 , 22:50   Strange items acting strange
Reply With Quote #1

I've been working with a friend for a bit, trying to get the plugin working properly on our servers. After a while, we figured exactly how to assign attributes and such, and so went about creating weapons. However, strange items did not track weapon kills, even when attributed exactly like the original weapon. Eventually we realized we were still missing an attribute, number 214. Here's an example weapon we made.

PHP Code:
"Steam ID goes here"
    
{
        
"230" //Sniper's The Sydney Sleeper
        
{
            
"quality"        "6"
            "level"            "100"
            
            "1"                "175 ; 8"    
//8 second jarate
            
"2"                "41 ; 1.25"    //25% faster charge
            
"3"                "42 ; 1"    //no headshots
            
"4"                "15 ; 0"    //no random crits
            
"5"                "134 ; 35"    //Smoke
            
"6"                "189 ; 11"    //Strange
            
"7"                "214 ; 8"    //Count kills
        
}
    } 
Before you think I'm a silly, there is a proper Steam ID there. Internet privacy and whatnot, y'know.

Anyways. We loaded that up, and equipped a strange Sydney Sleeper. This was the result.

[img]http://img232.**************/img232/9382/lookatit2.png[/img]

If anybody knows a way to get "custom" strange weapons to display the proper killcount, I would greatly appreciate knowing how to do it. They're not really custom I don't know if it's considered morally wrong to use this plugin for unusual effects on weapons, but that's what we're doing. All attributes are the exact same as they are without the TF2items plugin.
skyvizer is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 08-02-2012 , 01:06   Re: Strange items acting strange
Reply With Quote #2

It's not clear if you're trying to make a normal weapon "strange", or if you're trying to modify a strange weapon.

The first wont work, the second needs only preserve-attributes.
__________________
DarthNinja is offline
skyvizer
New Member
Join Date: Aug 2012
Old 08-02-2012 , 01:09   Re: Strange items acting strange
Reply With Quote #3

The second option. I think I will go RTFM now. Thank you.
skyvizer is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-02-2012 , 05:30   Re: Strange items acting strange
Reply With Quote #4

You can't add the requisite attributes with TF2Items, as it only supports the original float attributes.
You'll have to use preserve-attributes.
__________________
asherkin is online now
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 03:03.


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