Raised This Month: $ Target: $400
 0% 

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Onedda
Senior Member
Join Date: May 2009
Old 01-16-2010 , 06:20   Re: [EXTENSION] TF2Items
#81

Thanks Asherkin & Damizean for this, when will the item generator web site be up and running properly?
__________________
Onedda is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 01-16-2010 , 12:43   Re: [EXTENSION] TF2Items
#82

Please correct my stupidity, but what is the Sourcepawn interface for?
noodleboy347 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-16-2010 , 14:13   Re: [EXTENSION] TF2Items
#83

It's so that SourceMod plug-ins can be written that can manage items. It's pretty undocumented at the moment, but most coders can probably work it out from what little there is right now.
__________________
asherkin is offline
Citrixlemon
Junior Member
Join Date: Apr 2009
Old 01-17-2010 , 04:07   Re: [EXTENSION] TF2Items
#84

Been testing this and it runs great, many thanks! I was wondering if there would be a way to have an option to apply the attributes to the entire server via a cvar? I know you can just do CTX edits, but this extension lets you modify them on the fly, so I'd like to be able to make the changes global.
Citrixlemon is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-17-2010 , 04:25   Re: [EXTENSION] TF2Items
#85

That's the purpose of the wild card block, read the first post and the previous page for more info.
__________________
asherkin is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 01-17-2010 , 08:37   Re: [EXTENSION] TF2Items
#86

I've found a bug with the SM interface.

This works:
new Handle:hTest = TF2Items_CreateItem(OVERRIDE_ITEM_QUALITY)

This doesn't:
new Handle:hTest = TF2Items_CreateItem(OVERRIDE_ATTRIBUTES + OVERRIDE_ITEM_QUALITY)

At least, in the second example the item quality is never changed. The attributes are applied, but the quality stays the same.
Attached Files
File Type: sp Get Plugin or Get Source (item_test.sp - 160 views - 931 Bytes)
Pawn 3-pg is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-17-2010 , 08:48   Re: [EXTENSION] TF2Items
#87

They are flags, like on CVars, it should be:
Code:
new Handle:hTest = TF2Items_CreateItem(OVERRIDE_ATTRIBUTES|OVERRIDE_ITEM_QUALITY)
__________________

Last edited by asherkin; 01-17-2010 at 11:32.
asherkin is offline
Pawn 3-pg
Senior Member
Join Date: Jul 2009
Old 01-17-2010 , 12:21   Re: [EXTENSION] TF2Items
#88

Quote:
Originally Posted by asherkin View Post
They are flags, like on CVars, it should be:
Code:
new Handle:hTest = TF2Items_CreateItem(OVERRIDE_ATTRIBUTES|OVERRIDE_ITEM_QUALITY)
When dealing with flags, + and | do the same thing.

You can ignore my bug report though. I reinstalled SM and the problem went away.
Pawn 3-pg is offline
Old 01-17-2010, 12:27
asherkin
This message has been deleted by asherkin. Reason: -snip-
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 01-17-2010 , 16:35   Re: [EXTENSION] TF2Items
#89

Quote:
Originally Posted by Pawn 3-pg View Post
When dealing with flags, + and | do the same thing.

You can ignore my bug report though. I reinstalled SM and the problem went away.
This is correct, but the common usage is using the | operator. There is no real difference, but it's just how everyone handles it.
bl4nk is offline
GoldRenamon
Guest
Old 01-17-2010 , 17:06   Re: [EXTENSION] TF2Items
#90

Does anyone have the issue where it crashes your server if you try to reload the extension?
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 15:30.


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