Raised This Month: $32 Target: $400
 8% 

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-20-2012 , 05:50   Re: TF2Items - Items with custom attributes.
#1441

Quote:
Originally Posted by portalmods124 View Post
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"
...
https://forums.alliedmods.net/showthread.php?t=179352
__________________
asherkin is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-23-2012 , 00:15   Re: TF2Items - Items with custom attributes.
#1442

Just an FYI for people who were asking about this before.

As of today's update, the Sapper now has an item definition index:

Stock version:
Item index: 735
Class: tf_weapon_builder
Level: 1
Quality: 0
Item slot: Building

Unique/Strange version:
Item index: 736
Class: tf_weapon_builder
Level: 1
Quality: All other qualities
Item slot: Building
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 03-23-2012 at 09:36.
Powerlord is offline
dave_with_beer_bottle
Senior Member
Join Date: Jul 2009
Old 03-23-2012 , 11:44   Re: TF2Items - Items with custom attributes.
#1443

Hi i was wondering if someone would be able to help me, for some reason it won't read the STEAM_id at all and if i change the STEAM_id to wild flag "*" it works , any idea why is that?
thank you for any help

Code:
"custom_weapons_v3"
{
    "STEAM_1:*:*******"
    {
        "219"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 13"
        }
        "96"
        {
            "quality"        "5"
            "level"            "42"
            
            "1"                "134 ; 11"
        }
    }
    "STEAM_0:*:******"
    {
        "219"
        {
            "quality"        "5"
            "level"            "88"
            
            "1"                "134 ; 30"
        }
    }
}
edit: or is there a way to edit it for admin flags without STEAM_id?
something like this?

Code:
"custom_weapons_v3"
{
    "admin_generic"
    {
        "219"
        {
            "admin-flags  "a"
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 13"
        }
        "96"
        {
            "quality"        "5"
            "level"            "42"
            
            "1"                "134 ; 11"
        }
    }
}

Last edited by dave_with_beer_bottle; 03-23-2012 at 13:54.
dave_with_beer_bottle is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 03-28-2012 , 03:55   Re: TF2Items - Items with custom attributes.
#1444

Quick Question -
Which the Advanced Give Item plugin, it says for attributes, use tf2items_manager's config file... I can't find it?
VintageEpicFail is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-28-2012 , 04:39   Re: TF2Items - Items with custom attributes.
#1445

Quote:
Originally Posted by VintageEpicFail View Post
Quick Question -
Which the Advanced Give Item plugin, it says for attributes, use tf2items_manager's config file... I can't find it?
Quote:
Instructions:
  1. Copy all files in the release package to your server maintaining the directory structure
  2. Edit tf2items.weapons.txt (In "addons/sourcemod/configs/") according to who you want to get weapons
  3. Type 'sm exts load tf2items'
  4. Join the server
  5. ???
  6. Profit
Perhaps try reading the section helpfully titled Instructions next time?
__________________
asherkin is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 03-29-2012 , 06:33   Re: TF2Items - Items with custom attributes.
#1446

I'm not that smart, no idea what to do for step 3.
VintageEpicFail is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-29-2012 , 06:34   Re: TF2Items - Items with custom attributes.
#1447

Quote:
Originally Posted by VintageEpicFail View Post
I'm not that smart, no idea what to do for step 3.
If you're already using a plugin that uses TF2Items, you don't need to do anything for it.
__________________
asherkin is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 03-30-2012 , 06:49   Re: TF2Items - Items with custom attributes.
#1448

Okay, I got the things working, but only for one person.
How do you separate different people and their weapons?
I'll show you a little bit of my tf2items_weapons.txt, please tell me what I'm doing wrong

Code:
"custom_weapons_v3"
{
    "STEAM_0:1:21436823 ; STEAM_0:0:44563017 ; STEAM_0:1:40724768 ; STEAM_0:0:44511676 ; STEAM_0:1:26853749"
    {
        "219"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 17"
        }
        "98"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 9"
        }
        "97"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 8"
        }
        "263"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 10"
        }
        "102"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 15"
        }
        "95"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 1"
        }
        "177"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 17"
        }
        "55"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 14"
        }
        "671"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 16"
        }
    "139"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 13"
        }
    "342"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 8"
        }
    "614"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 14"
        }
    "*"
    {
    "261"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 13"
    }
        "54"
        {
            "quality"        "5"
            "level"            "69"
            
            "1"                "134 ; 13"
    "6"
    }
I just assumed that the ("*") thing separated them, but seemingly not.

Last edited by VintageEpicFail; 03-30-2012 at 18:40. Reason: Sorry Darth
VintageEpicFail is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 03-30-2012 , 08:50   Re: TF2Items - Items with custom attributes.
#1449

Can I get you some [CODE][/CODE] tags to go with your un-indented mess?
__________________
DarthNinja is offline
VintageEpicFail
Senior Member
Join Date: Feb 2012
Location: Straya
Old 03-31-2012 , 05:11   Re: TF2Items - Items with custom attributes.
#1450

Can someone please help?
VintageEpicFail 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 23:58.


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