Quote:
Originally Posted by Oshizu
From what i can tell ya weapons given from TF2Items natives are not visible even after update.
Also let's not forget about golden rule to not discuss visible items 
|
Lets be honest, this restriction was always about hats and not weapons.
Besides which, if Valve themselves had made them visible, that makes it fair game.
Right now, part of the reason that they're invisible is because we don't have the item ID fields filled in in the CEconItemView object... and have no way of seeing into players inventories to see which items they actually have.
So, even if a player HAS an item, we can't force them to equip theirs, which would make it visible.
One could argue that TF2Items should have the ability to set Item IDs in the case that a plugin has a way of looking them up (via the Steam API if their backpack is public). Which would make said item visible if the item ID is valid.
Edit: On a side note, we could also ask Asherkin to add a thing for CTFDroppedWeapon::Create, which takes a CTFPlayer*, Vector, QAngle, char*, and CEconItemView* and generates a weapon from it. The char* is presumably the weapon class and the Vector the player's position in the world when they died.
Or even CTFDroppedWeapon::SetItem(CEconItemView const*) which presumably creates a CTFDroppedWeapon directly, although it'd still need to be spawned.
__________________