Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Test(uint64_t entitylist)
- {
- if (entitylist)
- {
- FCameraCacheEntry CameraCache;
- Vector3 Position;
- uint64_t actor_list = mem->RPM<uint64_t>(entitylist);
- int actor_count = mem->RPM<uint32_t>(entitylist + 0x8);
- cout << dec << "actor count: " << actor_count << endl;
- for (int i = 0; i < actor_count; i++)
- {
- uint64_t entity = mem->RPM<uint64_t>(actor_list + (i * 0x8));
- if (entity > 0)
- {
- cout << "entity is ok: " << hex << entity << endl;
- int id = DecryptObjectId(entity + ACTORID);
- cout << dec << "i'M A NIGGA: " << id << endl;
- if (id == 115652 || id == 115655 || id == 145988 || id == 145990)
- {
- cout << hex << "Entity: 0x" << entity << endl;
- cout << "Correct ID: " << dec << id << endl;
- float health = mem->RPM<float>(entity + HEALTH);
- cout << dec << "Entity Health: " << to_string(health) << endl;
- if (health > 0.0f)
- {
- CameraCache.POV.FOV = mem->RPM<float>(playercameramanager + OFFSET_FOV);
- CameraCache.POV.Location = mem->RPM<Vector3>(playercameramanager + OFFSET_LOCATION);
- CameraCache.POV.Rotation = mem->RPM<Vector3>(playercameramanager + OFFSET_ROTATION);
- cout << "FOV: " << CameraCache.POV.FOV << endl;
- uint64_t rootcomp = DecryptGeneral(entity + ROOTCOMPONENT);
- Position = mem->RPM<Vector3>(rootcomp + 0x20C);
- cout << "Pos.x: " << to_string(Position.x) << " Pos.y: " << to_string(Position.y) << " Pos.z: " << to_string(Position.z) << endl;
- Vector3 Scr = WorldToScreen(Position, CameraCache);
- DrawLine(1600 / 2, 900 / 2, Scr.x, Scr.y, 255, 0, 0, 255); //I was too lazy to calculate center
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement