Raised This Month: $ Target: $400
 0% 

TF2 Get all attributes from item


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
marih
Junior Member
Join Date: Aug 2013
Old 02-27-2015 , 20:28   TF2 Get all attributes from item
Reply With Quote #1

I'm making a plugin that change player item's unusual effect(attribute 134), quality, index.
In the plugin, there is "g_hItem = TF2Items_CreateItem(OVERRIDE_ITEM_DEF | OVERRIDE_ITEM_QUALITY | OVERRIDE_ATTRIBUTES | PRESERVE_ATTRIBUTES)" and change player's item to g_hItem which is given replacement index, unusual attribute, item quality using

PHP Code:
TF2Items_OnGiveNamedItem(clientString:classname[], iItemDefinitionIndex, &Handle:hItem);
hItem g_hItem
I can get myitem that changed index and so on. But the new item's attributes(except unusual because i added) are same as old one.
I wanna make the new item have new attributes that replacement item index has not the original index has.

Sorry for my bad english.
marih is offline
 



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 06:57.


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