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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
DeJaDeW
SourceMod Donor
Join Date: Jul 2009
Location: California
Old 01-20-2010 , 15:45   Re: [EXTENSION] TF2Items
#111

Great job guys! I can't wait for the next version. Keep up the good work
DeJaDeW is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-20-2010 , 19:15   Re: [EXTENSION] TF2Items
#112

Quote:
Originally Posted by Damizean View Post
In case you want to prepare for the next version, the new customweaps will look something like this:

PHP Code:
"custom_weapons_v3"
{
    
"STEAM_0:1:13776935 ; STEAM_0:1:17919459"
    
{
        
"12"
        
{
            
"quality"        "5"
            "level"          "100"
            "admin-flags"    "a"
            
            "1"              "134 ; 2"
            "2"              "2 ; 100"
            "3"              "4 ; 10"
            "4"              "6 ; 0.25"
        
}
        
"12"
        
{
            
"quality"        "4"
            "level"          "50"
        
}
        
"18"
        
{
            
"quality"        "1"
            "level"          "100"
            
            "1"              "134 ; 2"
            "2"              "2 ; 100"
            "3"              "4 ; 10"
            "4"              "6 ; 0.25"
        
}
        
"45"
        
{
            
"quality"        "3"
            "level"          "10"
            
            "1"              "134 ; 2"
            "2"              "2 ; 100"
            "3"              "4 ; 10"
            "4"              "6 ; 0.25"
            "5"              "16 ; 500"
            "6"              "26 ; 250"
            "7"              "31 ; 10"
            "8"              "123 ; 3"
            "9"              "134 ; 4"
            "10"             "3 ; 0.17"
            "11"             "97 ; 0.6"
            "12"             "106 ; 0.5"
        
}
        
"4"
        
{
            
"quality"        "9"
            "level"          "10"
        
}
    }
    
"*"
    
{
        
"4"
        
{
            
"quality"        "2"
            "level"          "50"
        
}
        
"*"
        
{
            
"quality"        "3"
        
}
    }

  • Multiple SteamIDs can be specified on the same block, delimited by the ";" character. Only define each SteamID once.
  • Added the admin-flags key wich can be used to specify flag restriction for that weapon entry. If you want to have fallback cases if the player doesn't meet the requires flags, remember to put them in the specific order. The plugin will always retrieve the first item that can be usable, so if you put the admin restricted after the fallback one, it'll get ignored.
  • There's no need to input the number of attributes the weapon will use, just place them in the correct order. The key name is the attribute number. The value uses the format "<id> ; <value>".
Exciting!
noodleboy347 is offline
jouva
Senior Member
Join Date: Jan 2010
Old 01-23-2010 , 20:16   Re: [EXTENSION] TF2Items
#113

I'd love to know how to do the following with this:
- Modify jarate/ball reload time
- Modify jarate/ball count
- Speed up the firing rate of grenade launcher.

I'd prefer somebody tell me that has successfully tested and got this to work. Somebody blindly telling me to set attribute 6 to 0.1 on item 19 hasn't tested it and wouldn't know that it didn't work.
jouva is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-23-2010 , 20:55   Re: [EXTENSION] TF2Items
#114

Quote:
Originally Posted by jouva View Post
I'd love to know how to do the following with this:
- Modify jarate/ball reload time
- Modify jarate/ball count
- Speed up the firing rate of grenade launcher.

I'd prefer somebody tell me that has successfully tested and got this to work. Somebody blindly telling me to set attribute 6 to 0.1 on item 19 hasn't tested it and wouldn't know that it didn't work.
Can't do any of those with this.
noodleboy347 is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-24-2010 , 01:47   Re: [EXTENSION] TF2Items
#115

Suggestions

  • Ability to give bots custom items.
  • Wildcard for all primary, secondary, and melee slot.
  • Wildcard for normal weapons and unlockable (achievement) weapons.
noodleboy347 is offline
fastix
Junior Member
Join Date: May 2009
Old 01-26-2010 , 08:20   Re: [EXTENSION] TF2Items
#116

Can i use it for giving unlockable weapons to players?
I tried to give myself the K.G.B. It looks like real one but acts like usual fists (no crit boost, no fire rate penalty) What am i doing wrong? Should i manually assign those attributes?
Code:
new Handle:hTest = TF2Items_CreateItem(OVERRIDE_CLASSNAME|OVERRIDE_ITEM_DEF|OVERRIDE_ITEM_LEVEL|OVERRIDE_ITEM_QUALITY);
TF2Items_SetClassname(hTest, "tf_weapon_fists");
TF2Items_SetItemIndex(hTest, 43);
TF2Items_SetQuality(hTest, 6);
TF2Items_SetLevel(hTest, 100);
new entity = TF2Items_GiveNamedItem(target_list[i], hTest);
SDKCall(hWeaponEquip, target_list[i], entity);
fastix is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-26-2010 , 08:30   Re: [EXTENSION] TF2Items
#117

Quote:
Originally Posted by fastix View Post
Should i manually assign those attributes?
Yes, this was said right at the beginning, you are creating the items from scratch...
__________________
asherkin is offline
jouva
Senior Member
Join Date: Jan 2010
Old 01-27-2010 , 14:28   Re: [EXTENSION] TF2Items
#118

What I cannot understand is why the number of attributes or these numbers infront of attribute-value pairs are needed in the first place. Was there anything from a coding perspective keeping you from parsing in the attributes block and continuing to read from it until there's no more items? I've not seen the method of parsing but I couldn't imagine it to be that hard to do.
jouva is offline
Cerise
Senior Member
Join Date: Jun 2009
Location: debug_backtrace()
Old 01-28-2010 , 06:30   Re: [EXTENSION] TF2Items
#119

To asherkin and Jindo from the TF2 update :

Quote:
Originally Posted by Steam Updater
Added Propaganda contest winners' hats for First Place, First Runner-up, and Second Runner-up
Hope it will allow customizable items : D
__________________
Cerise is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-28-2010 , 06:33   Re: [EXTENSION] TF2Items
#120

Quote:
Originally Posted by Cerise View Post
Hope it will allow customizable items : D
Unfortunately it doesn't, VALVe are still pressing on with the current system and have added the new items to items_game, that file will end up huge after community content starts getting added >.<
__________________
asherkin 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 03:57.


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