From c495d972cf4dc21b24032be72ba77d1a5aa22051 Mon Sep 17 00:00:00 2001 From: julianacat Date: Wed, 16 Aug 2017 21:38:40 -0500 Subject: [PATCH] More Multi-Hack + Namestealer no team fix --- build-debug-hl2dm | 1 + build-debug-tf2c | 1 + build-hl2dm | 1 + build-tf2c | 1 + src/hooks/others.cpp | 4 ++-- 5 files changed, 6 insertions(+), 2 deletions(-) create mode 100755 build-debug-hl2dm create mode 100755 build-debug-tf2c create mode 100755 build-hl2dm create mode 100755 build-tf2c diff --git a/build-debug-hl2dm b/build-debug-hl2dm new file mode 100755 index 00000000..abe17898 --- /dev/null +++ b/build-debug-hl2dm @@ -0,0 +1 @@ +make -j4 GAME=hl2dm BUILD_DEBUG=1 \ No newline at end of file diff --git a/build-debug-tf2c b/build-debug-tf2c new file mode 100755 index 00000000..fd1e8b63 --- /dev/null +++ b/build-debug-tf2c @@ -0,0 +1 @@ +make -j4 GAME=tf2c BUILD_DEBUG=1 \ No newline at end of file diff --git a/build-hl2dm b/build-hl2dm new file mode 100755 index 00000000..270c6721 --- /dev/null +++ b/build-hl2dm @@ -0,0 +1 @@ +make -j4 GAME=hl2dm NO_WARNINGS=1 \ No newline at end of file diff --git a/build-tf2c b/build-tf2c new file mode 100755 index 00000000..6842ddca --- /dev/null +++ b/build-tf2c @@ -0,0 +1 @@ +make -j4 GAME=tf2c NO_WARNINGS=1 \ No newline at end of file diff --git a/src/hooks/others.cpp b/src/hooks/others.cpp index 08230f27..d3649112 100644 --- a/src/hooks/others.cpp +++ b/src/hooks/others.cpp @@ -341,8 +341,8 @@ const char* GetFriendPersonaName_hook(ISteamFriends* _this, CSteamID steamID) { // Check User settings if namesteal is allowed if (namesteal && steamID == g_ISteamUser->GetSteamID()) { - // We dont want to steal names while not in-game as there are no targets to steal from - if (g_IEngine->IsInGame()) { + // We dont want to steal names while not in-game as there are no targets to steal from. We want to be on a team as well to get teammates names + if (g_IEngine->IsInGame() && g_pLocalPlayer->team) { // Check if we have a username to steal, func automaticly steals a name in it. if (StolenName()) {