PDA

View Full Version : [Solved] Stripping attributes off of weapons?


WildCard65
02-07-2014, 11:28
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);
}

asherkin
02-07-2014, 12:23
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

WildCard65
02-07-2014, 12:33
ok, I'll get the current snapshot when I can access my laptop I'm running the server on to update tf2items