代码拉取完成,页面将自动刷新
This does not include code for accessing the games memory or for drawing.
Vector2 screenSize = new Vector2(1920, 1080);
Game pubg = new Game("PUBGLite-Win64-Shipping", "PUBGLite-Win64-Shipping.exe");
UWorld uWorld = pubg.UWorld();
APlayerController playerController = uWorld.OwningGameInstance().LocalPlayers().LocalPlayer().PlayerController();
APlayerCameraManager cameraManager = playerController.PlayerCameraManager();
AActor localPawn = playerController.AknowledgedPawn();
AActor[] actors = uWorld.CurrentLevel().AActors();
for (int i = 0; i < actors.Length; i++)
{
if (actors[i].TeamID != localPawn.TeamID && actors[i].Health > 0 && actors[i].ObjectID == localPawn.ObjectID)
{
if (cameraManager.WorldToScreen(actors[i].GetBoneLocation(Bones.Head), screenSize, out Vector2 headScreenLocation))
{
Vector2 rootScreenLocation = cameraManager.WorldToScreen(actors[i].GetBoneLocation(Bones.Root), screenSize);
//DrawBox(rootScreenLocation, headScreenLocation, actors[i].Health);
}
}
}
The code in the usage part is only a demonstation. I would suggest adding some error checks to your code. I have near to 0 minutes played on the game so it might have a lot of bugs. Consider it a base for you to progress on.
The people in uknowncheats.net PUBG Lite Reversal, Structs and Offsets.
master131 for the rotate code.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。