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

[TF2] Fake Item Messages


Post New Thread Reply   
 
Thread Tools Display Modes
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 01-05-2012 , 00:23   Re: [TF2] Fake Item Messages
Reply With Quote #41

Quote:
Originally Posted by DarthNinja View Post
Custom items?
Sorry, custom names.
Quote:
ToDo: Add support for custom names (PlayerX has found: A Pumpkin)
Snaggle is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-05-2012 , 05:48   Re: [TF2] Fake Item Messages
Reply With Quote #42

Quote:
Originally Posted by Snaggle View Post
I know you're busy with other projects at the moment, but do you have an idea if and when you'll be able to work on the custom items?
I was waiting for a way to set colors that I was told Top Men would be adding, but it looks like that wont be for a while yet.
I'll add custom name support in a quick update later.
__________________
DarthNinja is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-08-2012 , 10:04   Re: [TF2] Fake Item Messages
Reply With Quote #43

Version 1.5.0 Released!
Quote:
  • V1.5.0
    • Custom item name/method text support!
Now you can do this


And this:

__________________

Last edited by DarthNinja; 01-08-2012 at 10:04.
DarthNinja is offline
Professor Chaos
Junior Member
Join Date: Nov 2011
Location: The People's Republic of
Old 01-08-2012 , 15:54   Re: [TF2] Fake Item Messages
Reply With Quote #44

This is great! Thanks.

The only thing it lacks is the ability to specify color when sending the command, I.E. /sm_fakeitem2 @me "has found:" "A Reason to Live" "Yellow/found"
__________________
Professor Chaos is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 01-08-2012 , 17:53   Re: [TF2] Fake Item Messages
Reply With Quote #45

Not possible, it'll use the colour of whatever the last item found was.
Snaggle is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-09-2012 , 01:11   Re: [TF2] Fake Item Messages
Reply With Quote #46

Quote:
Originally Posted by DarthNinja View Post
I was waiting for a way to set colors that I was told Top Men would be adding, but it looks like that wont be for a while yet.
I'll add custom name support in a quick update later.
Quote:
Originally Posted by Snaggle View Post
Not possible, it'll use the colour of whatever the last item found was.
Correct

If you really want to use another color, you can use sm_fakeitem to fire the event with whatever color, then if you use sm_fakeitem2 directly after, the color will be the same.
__________________
DarthNinja is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 01-09-2012 , 05:03   Re: [TF2] Fake Item Messages
Reply With Quote #47

Quote:
Originally Posted by DarthNinja View Post
Correct

If you really want to use another color, you can use sm_fakeitem to fire the event with whatever color, then if you use sm_fakeitem2 directly after, the color will be the same.
Just curious, How are you getting it to use the other valves custom colors? I thought Valve had made this difficult.

If its not how would I go about adding said colors to something like Tsunami's Advertisements...
moxie2020 is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 01-09-2012 , 05:04   Re: [TF2] Fake Item Messages
Reply With Quote #48

Is it just the item quality that does this?
moxie2020 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-09-2012 , 18:32   Re: [TF2] Fake Item Messages
Reply With Quote #49

Valve uses a single placeholder value on the client for all the item color codes. The place holder is only updated when the item_found event is fired and it uses the color that matches the quality of the last item "found".
If you try to print text and the placeholder has never been set (ie, the client hasn't seen an item_found event yet), the text will appear black.

So what this means is that while you can use the item color-code, the item color that is printed currently cannot be controlled.
__________________
DarthNinja is offline
moxie2020
Veteran Member
Join Date: Aug 2011
Old 01-09-2012 , 18:48   Re: [TF2] Fake Item Messages
Reply With Quote #50

Quote:
Originally Posted by DarthNinja View Post
Valve uses a single placeholder value on the client for all the item color codes. The place holder is only updated when the item_found event is fired and it uses the color that matches the quality of the last item "found".
If you try to print text and the placeholder has never been set (ie, the client hasn't seen an item_found event yet), the text will appear black.

So what this means is that while you can use the item color-code, the item color that is printed currently cannot be controlled.
So in order to use purple. Some one would of had to get an unusual item drop otherwise it would appear black.
moxie2020 is offline
Reply



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 09:38.


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