sssmm
发表于 2023-8-23 20:40:43
厉害LocalPlayer* localPlayer = Game.getLocalPlayer();
Vec3 origin = Game.getClientInstance()->levelRenderer->getOrigin();
//Loop through all our players and retrieve their information
targetList.clear();
Game.forEachEntity(findAimEntity);
if (targetList.size() > 0) {
std::sort(targetList.begin(), targetList.end(), CompareTargetEnArray());
Vec2 angle = origin.CalcAngle(*targetList->getPos());
clientMessageF(std::to_string(angle.x + angle.y).c_str());
Vec2 appl = angle.sub(localPlayer->viewAngles).normAngles();
appl.x = -appl.x;
if ((appl.x < verticalrange && appl.x > -verticalrange) && (appl.y < horizontalrange && appl.y > -horizontalrange) && GameData::canUseMoveKeys()) {
PlayerInventoryProxy* supplies = Game.getLocalPlayer()->getSupplies();
ItemStack* item = supplies->inventory->getItemStack(supplies->selectedHotbarSlot);
if (sword && !(item->getItem()->isWeapon()))
return;
if (click && !Game.isLeftClickDown())
return;
if (!lock) {
appl.x /= (100.f - verticalspeed);
appl.y /= (100.f - horizontalspeed);
if (appl.x >= 1 || appl.x <= -1) appl.div(abs(appl.x));
if (appl.y >= 1 || appl.y <= -1) appl.div(abs(appl.y));
}
if (!vertical)
appl.x = 0;
localPlayer->applyTurnDelta(&appl);
}
}
gyffgy
发表于 2023-8-23 20:59:57
[哔哩_脱单]
我不是宇哲啊
发表于 2023-8-23 21:12:14
66666666666666
我不是宇哲啊
发表于 2023-8-23 21:12:46
666666518156i,26i,25i,2
我不是宇哲啊
发表于 2023-8-23 21:13:25
66666666666666666666
萝.
发表于 2023-8-23 23:15:50
6666666666666666
凌小渡
发表于 2023-8-24 00:16:18
HZX_沙雕
发表于 2023-8-24 01:24:22
66666666666
HEclise
发表于 2023-8-24 01:35:39
intel.13900
发表于 2023-8-24 10:27:11
泰裤了 用了吊打服主66