Ты же лучший кодер , переделай мне функцию Resolver для чита что бы она работала лучше…
- User
Ты же лучший кодер , переделай мне функцию Resolver для чита что бы она работала лучше
#include "AimbotFunctions.h" #include "Animations.h" #include "Resolver.h"
#include "../Logger.h"
#include "../SDK/GameEvent.h"
std::dequeResolver::SnapShot snapshots;
bool resolver = false;
void Resolver::reset() noexcept { snapshots.clear(); }
void Resolver::saveRecord(int playerIndex, float playerSimulationTime) noexcept { const auto entity = interfaces->entityList->getEntity(playerIndex); const auto player = Animations::getPlayer(playerIndex); if (!player.gotMatrix || !entity) return;
codeSnapShot snapshot; snapshot.player = player; snapshot.playerIndex = playerIndex; snapshot.eyePosition = localPlayer->getEyePosition(); snapshot.model = entity->getModel(); if (player.simulationTime >= playerSimulationTime - 0.001f && player.simulationTime <= playerSimulationTime + 0.001f) { snapshots.push_back(snapshot); return; } for (int i = 0; i < static_cast<int>(player.backtrackRecords.size()); i++) { if (player.backtrackRecords.at(i).simulationTime >= playerSimulationTime - 0.001f && player.backtrackRecords.at(i).simulationTime <= playerSimulationTime + 0.001f) { snapshot.backtrackRecord = i; snapshots.push_back(snapshot); return; } }}
void Resolver::getEvent(GameEvent* event) noexcept { if (!event || !localPlayer || interfaces->engine->isHLTV()) return;
code - Assistant