Raised This Month: $ Target: $400
 0% 

[TF2] What is this HUD message?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-30-2015 , 14:05   [TF2] What is this HUD message?
Reply With Quote #1

See picture below.



This only appears if a client is given a weapon via TF2Items. If they switch to a weapon they legally own (in their backpack) then it disappears. Anyone have any idea or any clue why Valve bothered coding up such a pointless feature?

The text basically displays the name of the item they have equipped.

Spoiler
Attached Images
File Type: jpg wat.jpg (42.5 KB, 890 views)
Potato Uno is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 08-30-2015 , 14:16   Re: [TF2] What is this HUD message?
Reply With Quote #2

read the tf2 update news
__________________
Chdata is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-30-2015 , 14:20   Re: [TF2] What is this HUD message?
Reply With Quote #3

Not helpful, especially since the only relevant things are the MvM exploit fixes.
Potato Uno is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 08-30-2015 , 15:26   Re: [TF2] What is this HUD message?
Reply With Quote #4

This hud is actually used for dropped weapon, "Updated several HUD elements to include the name of the weapon's owner when a player is carrying a weapon they picked-up"

In game it show, "Eyelander dropped by Benoist3012", but it seem this hud appear also for given weapon, probably because you haven't it in your loadout.
__________________
Benoist3012 is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 08-30-2015 , 16:18   Re: [TF2] What is this HUD message?
Reply With Quote #5

You might be able to get rid of it if you set m_iAccountID to the players accountid on the given weapon, but i don't know what makes up the id
__________________
Pelipoika is offline
Akuba
Senior Member
Join Date: Oct 2013
Old 08-30-2015 , 17:37   Re: [TF2] What is this HUD message?
Reply With Quote #6

For me, I would love to have this thing popping up for all my weapons. Valve should add a option for that.
Akuba is offline
Pelipoika
Veteran Member
Join Date: May 2012
Location: Inside
Old 08-30-2015 , 18:12   Re: [TF2] What is this HUD message?
Reply With Quote #7

Quote:
Originally Posted by Akuba View Post
For me, I would love to have this thing popping up for all my weapons. Valve should add a option for that.
This accomplishes that, i tested

PHP Code:
#pragma semicolon 1

#include <sdktools>

public void OnPluginStart()
{
    
HookEvent("post_inventory_application"Event_PlayerSpawnEventHookMode_Post);
}

public 
void Event_PlayerSpawn(Handle event, const char[] namebool dontBroadcast)
{
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    
    for(
int i 07i++)
    {
        
int weapon GetPlayerWeaponSlot(clienti);
        if(
IsValidEntity(weapon))
            
SetEntProp(weaponProp_Send"m_iAccountID"0);
    }

Doesn't seem to be a good idea to do it for other weapons than Primary, Secondary and Melee
__________________

Last edited by Pelipoika; 08-30-2015 at 18:18. Reason: PHP Looks better than CODE
Pelipoika is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-30-2015 , 18:25   Re: [TF2] What is this HUD message?
Reply With Quote #8

I'm not bothered by that HUD message (it's mostly unnoticeable in MvM anyway, with the money HUD blocking it) but I thought Valve was introducing some tracking mechanism "let's catch all the servers that give out economy items and ban them!" or something.

As for m_iAccountID, its value is the value on the player's steam3 ID. So if a client's steam ID is [U:1:123456789], then m_iAccountID will be an integer of 123456789. You would need to do some voo-doo magic with GetClientAuthId(...), then an ExplodeString along the ":", then StringToInt index 2 of that split.

Last edited by Potato Uno; 08-30-2015 at 18:28.
Potato Uno is offline
Akuba
Senior Member
Join Date: Oct 2013
Old 08-30-2015 , 18:39   Re: [TF2] What is this HUD message?
Reply With Quote #9

Quote:
Originally Posted by Potato Uno View Post
"let's catch all the servers that give out economy items and ban them!"
If that happens, rip tf2 for me.

And thanks @PeliPoika for that code snipped.

Last edited by Akuba; 08-30-2015 at 18:41.
Akuba is offline
rswallen
SourceMod Donor
Join Date: Jun 2013
Location: 127.0.0.1
Old 08-30-2015 , 19:00   Re: [TF2] What is this HUD message?
Reply With Quote #10

Quote:
Originally Posted by Potato Uno View Post
As for m_iAccountID, its value is the value on the player's steam3 ID. So if a client's steam ID is [U:1:123456789], then m_iAccountID will be an integer of 123456789. You would need to do some voo-doo magic with GetClientAuthId(...), then an ExplodeString along the ":", then StringToInt index 2 of that split.
Or just use GetSteamAccountID(int client)
__________________
rswallen 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 12:48.


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