Raised This Month: $ Target: $400
 0% 

So valve has made access for everyone to grab weapons.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-06-2015 , 10:20   Re: So valve has made access for everyone to grab weapons.
Reply With Quote #3

Quote:
Originally Posted by Oshizu View Post
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.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-06-2015 at 10:30.
Powerlord is offline
 



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:11.


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