From a5518503d3a8a04d40d825e57a453c01ad361829 Mon Sep 17 00:00:00 2001 From: m Date: Sat, 26 Feb 2022 13:32:30 -0600 Subject: [PATCH] use name dvar for persona name iw6x/s1x doesn't do this, maybe we missed something else? --- src/client/steam/interfaces/friends.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/steam/interfaces/friends.cpp b/src/client/steam/interfaces/friends.cpp index 5f3d5ab5..6c76f330 100644 --- a/src/client/steam/interfaces/friends.cpp +++ b/src/client/steam/interfaces/friends.cpp @@ -1,11 +1,13 @@ #include #include "../steam.hpp" +#include + namespace steam { const char* friends::GetPersonaName() { - return "1337"; + return game::Dvar_FindVar("name")->current.string; } unsigned long long friends::SetPersonaName(const char* pchPersonaName)