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

Solved Stripping attributes off of weapons?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-07-2014 , 11:28   Stripping attributes off of weapons?
Reply With Quote #1

How would I go about stripping attributes off of weapons, I have tried the following:
TF2_SetNumAttributes(hItem,0);
and:
TF2_SetNumAttributes(hItem,15);
for(new i=0,i<16,i++){
TF2_SetAttribute(hItem,i,330,1.0);
}

Last edited by WildCard65; 02-07-2014 at 15:52.
WildCard65 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-07-2014 , 12:23   Re: Stripping attributes off of weapons?
Reply With Quote #2

As long as you have OVERRIDE_ATTRIBUTES set, the former will work fine. Make sure you're using the latest snapshot build, the current release can't remove attributes - and I can't currently push a new release due to an unknown issue I haven't had time to look into yet.

http://builds.limetech.org/?project=tf2items
__________________

Last edited by asherkin; 02-07-2014 at 12:23.
asherkin is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-07-2014 , 12:33   Re: Stripping attributes off of weapons?
Reply With Quote #3

ok, I'll get the current snapshot when I can access my laptop I'm running the server on to update tf2items
WildCard65 is offline
Reply



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