More Multi-Hack + Namestealer no team fix

This commit is contained in:
julianacat 2017-08-16 21:38:40 -05:00
parent 3a47e59a9c
commit c495d972cf
5 changed files with 6 additions and 2 deletions

1
build-debug-hl2dm Executable file
View File

@ -0,0 +1 @@
make -j4 GAME=hl2dm BUILD_DEBUG=1

1
build-debug-tf2c Executable file
View File

@ -0,0 +1 @@
make -j4 GAME=tf2c BUILD_DEBUG=1

1
build-hl2dm Executable file
View File

@ -0,0 +1 @@
make -j4 GAME=hl2dm NO_WARNINGS=1

1
build-tf2c Executable file
View File

@ -0,0 +1 @@
make -j4 GAME=tf2c NO_WARNINGS=1

View File

@ -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()) {