Merge pull request #284 from oneechanhax/master

More Multi-Hack + Namestealer no team fix
This commit is contained in:
oneechanhax 2017-08-16 21:39:54 -05:00 committed by GitHub
commit ddf4caf14d
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

@ -342,8 +342,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()) {