View Single Post
nosoop
Veteran Member
Join Date: Aug 2014
Old 07-08-2020 , 01:39   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #247

Quote:
Originally Posted by SirBlockles View Post
I wrote a custom wearable dispenser weapon with its own custom attribute, and it all works fine on that front, but... The default attributes refuse to work.
The CW3 plugin interface has issues applying attributes to non-weapon entities. Had to make a note of that for Custom Attributes myself.

Not sure since actually using CW3 is out of my expertise, but you may need to do one of the following:
  • Use the "attributes" section instead of "cw3_attributes". Internally CW3 determines the entity to apply the attribute to using GetPlayerWeaponSlot, which doesn't work on non-weapon entities (the Buff Banner counts as a weapon). CW2-style attributes operate on entities directly.
  • Use wearable_razorback for the item. I'm less certain about this one, but I'd reason it to be due to wearables normally occupying non-weapon slots.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline