Raised This Month: $ Target: $400
 0% 

Get attributes of items as they're given


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 03-31-2012 , 18:50   Get attributes of items as they're given
Reply With Quote #1

So, I'm using the OnGiveNamedItem forward like many other people are to modify attributes of items (hats specifically, and unusual effects more specifically). However, modifying the attributes of an item will remove all attributes that it already had. Therefore, I tried to use the PRESERVE_ATTRIBUTES flag. Unfortunately, if a hat that is already unusual has its attributes modified to apply a different effect and the PRESERVE_ATTRIBUTES flag is being utilized, it'll just make the effect disappear completely.

So, I'd like to know if there's a way to grab the existing attributes of the item (i.e. paint, attributes 142 & 261) so that I can pass them along so I don't have to use PRESERVE_ATTRIBUTES.
__________________
Dr. McKay is offline
 


Thread Tools
Display Modes

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 21:14.


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