ExistedGit / Dota2Cheat

A dota 2 cheat project aiming to provide an educational example to new developers
GNU General Public License v3.0
126 stars 42 forks source link

VisibleByEnemy #214

Open robbyz512 opened 4 days ago

robbyz512 commented 4 days ago

I made this cheat a few years ago https://github.com/robbyz512/dota2-visionBox

was excited to see you found a solution for me to update my script again but when searching the values here VisibleByEnemy they only work in demo/local games. Wondering how you got it working in matchmaking?

ExistedGit commented 4 days ago

I remember that one. The problem is that I don't think you can do it externally. While the m_iTaggedAsVisibleByTeam netvar does get updated on the player, it gets overwritten by some kind of flag(4) within the same frame. What I do is put a listener on the framestage before C_DOTA_BaseNPC::OnDataChanged, where I can catch that single moment where the netvar has values 22/30(like before).

The values you got when searching are probably from server.dll's CDOTA_BaseNPC instance, which I imagine stores the correct value all the time.

ExistedGit commented 4 days ago

What you could do is maybe try and patch out the section of OnDataChanged that resets m_iTaggedAsVisibleByTeam and what you did before would suffice

12Reddit12 commented 4 days ago

I remember that one. The problem is that I don't think you can do it externally. While the m_iTaggedAsVisibleByTeam netvar does get updated on the player, it gets overwritten by some kind of flag(4) within the same frame. What I do is put a listener on the framestage before C_DOTA_BaseNPC::OnDataChanged, where I can catch that single moment where the netvar has values 22/30(like before).

The values you got when searching are probably from server.dll's CDOTA_BaseNPC instance, which I imagine stores the correct value all the time.

Использую твой чит, но так-же получаю в пробе героя значения 22/30. а в игре например турбо бывает получаются значения 22/30 а бывает просто 8 и все герои подсвечиваются что их видно якобы. То-есть не всегда работает правильно VBE, Ещё проблема с tptracker и particle maphack крашит функа WorldToMap CDOTAPanoramaMinimapRenderer not found in minimap element's CPanel2D!. Ещё после добавления SendMove для CastTarget и тд. Не работает каст. ability id всегда 4. и по этому авто каст сломался, я вернул PrepareUnitOrders. Ещё в катке на стадии выбора героя если что то купить то SendMove вызов оригинальной функи крашит.