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(client, String: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.