-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathasm_mcvs.cc
More file actions
71 lines (49 loc) · 1.16 KB
/
asm_mcvs.cc
File metadata and controls
71 lines (49 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#include <windows.h>
#include <iostream>
#include <thread>
#include "Addr.hh"
#include "BigWorld/bw_entities.hh"
#include "temp_overlay/overlay.h"
void TestLoop()
{
auto entitymanager = EntityManager::instance();
std::cout << entitymanager << std::endl;
while (true)
{
auto camera = CameraImpl::Instance();
bool cahedmatrix = false;
if (!camera) continue;
auto entitiesmap = entitymanager->Entities();
auto iter = entitiesmap.iter->next();
for (size_t i = 0; i < entitiesmap.num; i++)
{
auto entity = iter->entity();
iter = iter->next();
if (!entity) continue;
auto avatar = IS_A(entity, PlayerAvatar); // trash
if (!avatar) continue;
Vector2 testscreen;
auto testpos = avatar->position();
if (!camera->ProjectWorldToScreen(testpos,&testscreen,&cahedmatrix)) continue;
}
Sleep(1);
}
}
int main()
{
setlocale(LC_ALL, "Russian");
int pid = 0;
while (true)
{
if (GetAsyncKeyState(VK_F2))
{
pid = game::ReaderInit();
if (pid)
break;
}
Sleep(5);
}
//std::thread(TestLoop).join();
initoverlay(pid);
Sleep(-1);
}