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

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
snowyiet
Member
Join Date: Jan 2010
Old 01-02-2011 , 02:22   Re: TF2Items - Items with custom attributes.
#641

Is it possible to set custom viewmodels using this?
snowyiet is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-02-2011 , 02:46   Re: TF2Items - Items with custom attributes.
#642

No.
__________________
asherkin is offline
desynced
Member
Join Date: Feb 2010
Old 01-05-2011 , 17:51   Re: TF2Items - Items with custom attributes.
#643

Code:
L 01/05/2011 - 16:48:17: [SM] Native "TF2Items_GetItemIndex" reported: Invalid TF2ItemType handle 496c0114 (error 3)
L 01/05/2011 - 16:48:17: [SM] Displaying call stack trace for plugin "tf2items_manager.smx":
L 01/05/2011 - 16:48:17: [SM]   [0]  Line 214, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::FindItemOnArray()
L 01/05/2011 - 16:48:17: [SM]   [1]  Line 186, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::FindItem()
L 01/05/2011 - 16:48:17: [SM]   [2]  Line 76, D:\srcds\orangebox\tf\addons\sourcemod\scripting\tf2items_manager.sp::TF2Items_OnGiveNamedItem()
Dont know why this is flying by in the console 100mph. And its on a linux server, so D:\srcds\orangebox\tf\addons\sourcemod\script ing\ isnt even a path on the server.
desynced is offline
Thraka
AlliedModders Donor
Join Date: Aug 2005
Old 01-06-2011 , 13:37   Re: TF2Items - Items with custom attributes.
#644

desynced, dont worry about the path, thats the path of the coder's file on his system so he can find it to fix the problem.
Thraka is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-06-2011 , 13:55   Re: TF2Items - Items with custom attributes.
#645

It's because you have reloaded the extension, this invalidates all the handles the manager plugin has cached.
__________________
asherkin is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-08-2011 , 09:32   Re: TF2Items - Items with custom attributes.
#646

1.4.3 Released.
  • Added TF2Items_OnGiveNamedItem_Post that gives you the entity index.
  • If the original items quailty was 0, it wont be changed to avoid deletion.
  • Fixed null entity bug (thanks to voogru).

Also, in two days, it's a year since TF2Items was released \o/ .

EDIT:
Don't use the classname, item def index, level or quality from the _Post forward, I missed an important bit of code and they could be wrong.
You can just use the netprops until the next update, as you are given the entity index.
__________________

Last edited by asherkin; 01-08-2011 at 14:19.
asherkin is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 01-08-2011 , 11:52   Re: TF2Items - Items with custom attributes.
#647

good job.
__________________
Leonardo is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 01-08-2011 , 17:57   Re: TF2Items - Items with custom attributes.
#648

ash, I put the release up on the server, then whenever i spawned, no weapons. locker touch, no weapons. Doesn't seem to affect bots.
I unloaded giveweapon, randomizer, other tf2items plugins. Still happened. Unloaded tf2items, loaded up that beta you gave me. Worked perfectly. Loaded up the plugins. Worked perfectly. Unloaded everything, reloaded 1.4.3 release. No weapons.

:C

Both windows and linux.
Also, there's no "kill" blocking extension (/plugin), but I can't kill myself with kill or explode in console. IDK if it's TF2Items.

Can I have the beta you gave me yesterday, for linux?
__________________
Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.

Last edited by FlaminSarge; 01-08-2011 at 23:46.
FlaminSarge is offline
HollowRyo
Junior Member
Join Date: Jan 2011
Location: United States
Old 01-08-2011 , 23:54   Re: TF2Items - Items with custom attributes.
#649

I have a quick question.

I'm trying to host a server via hamachi so my friends and I can mess around with custom TF2 items.

However, when we join, we start with no items at all

Could someone please tell me how to fix this?

The extra plugins I'm using are:
Visibleweapons
TF2items
TF2autoitems
TF2_giveweapons

Last edited by HollowRyo; 01-08-2011 at 23:56. Reason: Clarification
HollowRyo is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-09-2011 , 00:00   Re: TF2Items - Items with custom attributes.
#650

See the post above yours.
__________________
asherkin is offline
Closed Thread


Thread Tools
Display Modes

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 22:13.


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