diff --git a/Application/Instances/Player.h b/Application/Instances/Player.h index b50184d..c563f54 100644 --- a/Application/Instances/Player.h +++ b/Application/Instances/Player.h @@ -67,9 +67,10 @@ class Player lifeState = ReadEntity(m_lifeState); isAlive = lifeState == 256; - isLocalPlayer = GetLocalPlayer_T() == entity; - isTeammate = isLocalPlayer || ReadLocalPlayer(m_iTeamNum) == team; + isLocalPlayer = name == "⭕⃤ ~Izo~ ⭕⃤"; + isLocalPlayer = isLocalPlayer || (GetLocalPlayer_T() == entity); crossIndex = isLocalPlayer ? ReadLocalPlayer(m_iIDEntIndex) : -1; + isTeammate = isLocalPlayer || ReadLocalPlayer(m_iTeamNum) == team; sceneNode = ReadEntity(m_pGameSceneNode); boneMatrix = Read(sceneNode + m_modelState + 0x80); diff --git a/Application/Modules/RootModule.h b/Application/Modules/RootModule.h index 229e7e4..14362fb 100644 --- a/Application/Modules/RootModule.h +++ b/Application/Modules/RootModule.h @@ -8,6 +8,7 @@ class RootModule : public Module { EspModule *Esp; AimBotModule *AimBot; + int MY_TEAM = 1; void Init() override { @@ -24,6 +25,12 @@ class RootModule : public Module void Execute() override { + // uses numpad-0 to toggle teams + if (GetAsyncKeyState(VK_NUMPAD0) & 1) + { + MY_TEAM = MY_TEAM + 1 > 3 ? 1 : MY_TEAM + 1; + } + ClientDimension = GetClientDimension(); ClientCenterPosition = GetClientCenterPosition(); VM = ReadClient(dwViewMatrix); @@ -46,6 +53,8 @@ class RootModule : public Module if (!player.isInitialized) continue; + player.isTeammate = player.isTeammate || player.team == MY_TEAM; + if (player.isLocalPlayer) MyLocalPlayer = player;