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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 04-03-2010 , 10:18   Re: [EXTENSION] TF2Items (1.3.1)
#201

The updated items will always be listed in scripts/items/items_game.txt
pheadxdll is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 04-03-2010 , 13:25   Re: [EXTENSION] TF2Items (1.3.1)
#202

I under stand that but how to I get the attributes for lets say, tf_weapon_bat from this:
Code:
        "0"
        {
            "name"    "TF_WEAPON_BAT"
            "item_class"    "tf_weapon_bat"
            "craft_class"    "weapon"
            "item_type_name"    "#TF_Weapon_Bat"
            "item_name"    "#TF_Weapon_Bat"
            "item_slot"    "melee"
            "item_quality"    "normal"
            "baseitem" "1"
            "min_ilevel"    "1"
            "max_ilevel"    "1"
            "image_inventory"    "backpack/weapons/c_models/c_bat"
            "image_inventory_size_w"        "128"
            "image_inventory_size_h"        "82"
            "model_player"    "models/weapons/w_models/w_bat.mdl"
            "used_by_classes"
            {
                "scout"    "1"
            }
        }
Because I want to add the "community sparkle" to all the items, but asherkin said that I would have to know all the regular attributes to do that!
__________________
alinayg is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 04-03-2010 , 13:42   Re: [EXTENSION] TF2Items (1.3.1)
#203

There are no attributes, so you don't need to set any.
pheadxdll is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 04-03-2010 , 13:53   Re: [EXTENSION] TF2Items (1.3.1)
#204

So I could do...
Code:
"1" //tf_weapon_bottle
    {
        "quality"    "7"
        "level"       "100"
        
        "1"        "134 ; 4"
    }
And it wont mess the weapon up?

Edit: Tested it, works fine! Thanks for the epicness
__________________

Last edited by alinayg; 04-03-2010 at 14:42.
alinayg is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 04-07-2010 , 16:28   Re: [EXTENSION] TF2Items (1.3.1)
#205

Does anyone know how the sm_givehat or sm_giveweapon_ex work and what they do? I figured that sm_givehat gives out hat's but I can only see it giving the new pyro community hat, the brainsucker. I've tried some of the other index numbers listed in the configs but all it's giving out for me is the brainsucker. lol
Sreaper is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 04-07-2010 , 19:36   Re: [EXTENSION] TF2Items (1.3.1)
#206

I submitted a feature on the bug tracker!
__________________
alinayg is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-07-2010 , 21:47   Re: [EXTENSION] TF2Items (1.3.1)
#207

Quote:
Originally Posted by Sreaper View Post
Does anyone know how the sm_givehat or sm_giveweapon_ex work and what they do? I figured that sm_givehat gives out hat's but I can only see it giving the new pyro community hat, the brainsucker. I've tried some of the other index numbers listed in the configs but all it's giving out for me is the brainsucker. lol
sm_givehat is only in the tf2items_example.sp plugin, this is just a programming example for developers.
sm_giveweapon and sm_giveweapon_ex are from tf2items_giveitem.sp, although this was started as an example, it's grown into a full plugin.
I've explained the command difference earlier in the thread.

Quote:
Originally Posted by alinayg View Post
I submitted a feature on the bug tracker!
Hotmail is refusing to accept emails from my server again, so I'm afraid you won't get email notifications of updates to the ticket.
__________________
asherkin is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 04-08-2010 , 17:33   Re: [EXTENSION] TF2Items (1.3.1)
#208

Is there a way I can just use a steam ID to associate a specific weapon rather than an admin flag? Or make one weapon usable by everyone available to the server? If there is, can someone tell me what's needed for me to achieve that?

Last edited by Sreaper; 04-09-2010 at 19:15.
Sreaper is offline
Evil-Dragon
Junior Member
Join Date: Oct 2009
Old 04-10-2010 , 11:07   Re: [EXTENSION] TF2Items (1.3.1)
#209

Hi, just a quick request for this extension. I'm currently using this extension as part of a donation package for my server. I've had a user ask me if there is anyway they can switch it off for just that user (not the whole server) without me having to keep adding and removing them from my admin file (currently putting them down with an 'o' flag for the donation stuff)

Is there already something in this extension that would allow this, e.g. a command like 'sm_tf2items_self 1/0'?
__________________
Evil-Dragon is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-10-2010 , 11:24   Re: [EXTENSION] TF2Items (1.3.1)
#210

Quote:
Originally Posted by Sreaper View Post
Is there a way I can just use a steam ID to associate a specific weapon rather than an admin flag? Or make one weapon usable by everyone available to the server? If there is, can someone tell me what's needed for me to achieve that?
All the keys in the config file are optional, including admin-flag. Just leave it out and the restriction won't be applied.

Quote:
Originally Posted by Evil-Dragon View Post
Hi, just a quick request for this extension. I'm currently using this extension as part of a donation package for my server. I've had a user ask me if there is anyway they can switch it off for just that user (not the whole server) without me having to keep adding and removing them from my admin file (currently putting them down with an 'o' flag for the donation stuff)

Is there already something in this extension that would allow this, e.g. a command like 'sm_tf2items_self 1/0'?
This isn't included in the manager plugin, you would need to commission someone to add it, or integrate tf2items with a core donation plugin if you use one.

I'm too busy to do either at the moment, but I'll keep it in mind for the next version of the manager (which is a complete rewrite, and is taking a while). It's not a use-case that had originally been considered.
__________________

Last edited by asherkin; 04-10-2010 at 11:31.
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 02:27.


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