Raised This Month: $32 Target: $400
 8% 

On respawn, TF2Items_OnGiveNamedItem fired for one of three tf_wearables


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-01-2012 , 16:55   On respawn, TF2Items_OnGiveNamedItem fired for one of three tf_wearables
Reply With Quote #1

I was doing some messing around with TF2Items_OnGiveNamedItem on tf_wearable items, when I noticed that it is called for the second misc slot's tf_wearable on every respawn or resupply cabinet touch.

Is it supposed to happen on every respawn/resupply? If so, why are the head and first misc slot items not firing for this?

I don't have the code on me right now (I'm at work, code's at home), I'll post it later.

Note: This is on a Windows server.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-01-2012 at 16:57.
Powerlord is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 06-01-2012 , 17:32   Re: On respawn, TF2Items_OnGiveNamedItem fired for one of three tf_wearables
Reply With Quote #2

Sounds like your Bug Report should be filed with Valve, not Asher.
__________________
DarthNinja is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-01-2012 , 18:32   Re: On respawn, TF2Items_OnGiveNamedItem fired for one of three tf_wearables
Reply With Quote #3

Quote:
Originally Posted by DarthNinja View Post
Sounds like your Bug Report should be filed with Valve, not Asher.
This.

Valve optimized it to only recreate changed items, guess they always treat the 2nd misc slot as changed.
__________________
asherkin is offline
Reply


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 01:36.


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