Ответить 
 
Оценка темы:
  • 13 голосов - 2.31 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
minimap spot
26.11.2014, 02:15 AM (Последний раз это сообщение было изменено: 26.11.2014 02:17 AM mohammed zakir.)
Сообщение: #1
minimap spot
I found this code on the Internet
says is spot minimap
but I can not compile
someone who knows could compile it? the code is right?
Thank you for your help

Code C++
if (GetAsyncKeyState(VK_A) & 0x8000)
{
ClientSpottingTargetComponent* pCSTC = soldier->m_pClientSpottingTargetComponent;
if (IsValidPtr(pCSTC))
{
pCSTC->activeSpotType = ClientSpottingTargetComponent::SpotType_Active;
}
}

Offset of ClientSpottingTargetComponent in soldier is 0xB90 (for other players)

Class :

PHP Code:
class ClientSpottingTargetComponent
{
public:

enum SpotType
{
SpotType_None,
SpotType_Active,
SpotType_Passive,
SpotType_Radar,
SpotType_Unspottable
//....
};

class SpottingTargetComponentData
{
public:
char pad_0x0[0x70];
float m_ActiveSpottedTime; //+0x70
float m_PassiveSpottedTime; //+0x74
float m_ActiveSpottedTimeMultiplier; //+0x78
float m_PassiveSpottedTimeMultiplier;//+0x7C
float m_SpotOnFireMultiplier; //+0x80
float m_RadarSpottedSpeedThresholdOverride; //+0x84
bool m_TargetBoundingBoxCenter; //+0x88
bool m_CalculateAngleOutsideBoundingSphere; //+0x89
};

char _0x0[0x10];
SpottingTargetComponentData* m_spottingTargetData; //0x10
char _0x18[0x38];
SpotType activeSpotType; //0x50
};

class ClientSoldierEntity : public ClientCharacterEntity, // +0x000
public SoldierEntity // +0x280
{
public:

class BreathControlHandler
{
public:
char _0x0000[56];
float m_breathControlTimer; //0x0038
float m_breathControlMultiplier; //0x003C
float m_breathControlPenaltyTimer; //0x0040
float m_breathControlpenaltyMultiplier; //0x0044
float m_breathControlActive; //0x0048
float m_breathControlInput; //0x004C
float m_breathActive; //0x0050
char _0x0054[4];
float m_Enabled; //0x0058
};

class SprintInputHandler
{
public:
int m_currentState; //0x0000
float m_doubleTapTimer; //0x0004
float m_sprintReleaseTimer; //0x0008
int m_waitForSprintRelease; //0x000C
};

char pad_0x03B0[216];
__int64 m_pVehicleEntry; //0x0488
ClientSoldierPrediction* m_pPredictedController; //0x0490
char pad_0x0498[64];
float m_authorativeYaw; //0x04D8
float m_authorativePitch; //0x04DC
int m_aimingEnabled; //0x04E0
float m_cachedPitch; //0x04E4
__int64 m_soldierSound; //0x04E8
int m_poseType; //0x04F0
char pad_0x04F4[92];
ClientSoldierWeaponsComponent* m_soldierWeaponsComponent; //0x0550
__int64 m_bodyComponent; //0x0558
ClientRagDollComponent* m_ragdollComponent; //0x0560
BreathControlHandler* m_breathControlHandler; //0x0568
char pad_0x0570[16];
SprintInputHandler* m_sprintInputHandler; //0x0580
int padThis; //0x0588
float m_timeSinceLastSprinted; //0x058C
BYTE m_sprinting; //0x0590
BYTE m_occluded; //0x0591
char pad_0x0592[286];
ClientCharacterEntity* m_pClientCharacterEntity; //0x06B0
BYTE pad22[0x4D8]; //0x06B8
ClientSpottingTargetComponent* m_pClientSpottingTargetComponent; //0xB90
...

Now i will work on SendSpot on x64 ...

if someone want to work on that, i don't have time at moment.
Code C++
bool SpotPlayer(ClientPlayer* pLocalPlayer, ClientPlayer* pTargetPlayer)
{
if (!pLocalPlayer || !pTargetPlayer) return false;

ClientSoldierEntity* p_LocalSoldier = pLocalPlayer->GetClientSoldier();
if (!IsValidPtr(p_LocalSoldier)) return false;

typedef void(__thiscall* SendClientSpottingMessage)(ClientSpottingComponent*, ClientPlayer*, ClientSpottingTargetComponent::SpotType type, eastl::fixed_vector<WeakPtr<ClientSoldierEntity>, 8,0>*, ClientSoldierEntity* unknown); // i didn't changed this from bf3
SendClientSpottingMessage sendClientSpottingMessage = (SendClientSpottingMessage)0x14023cf40;

ClientSpottingComponent* pSpottingComponent = (ClientSpottingComponent*)p_LocalSoldier->m_pClientSpottingTargetComponent; //for the local Soldier m_pClientSpottingTargetComponent offset -> ClientSpottingComponent

eastl::fixed_vector<fb::WeakPtr<ClientSoldierEntity>, 8,0>* soldiersToSpotArray= new eastl::fixed_vector<fb::WeakPtr<ClientSoldierEntity>, 8,0>;
//...
sendClientSpottingMessage(pSpottingComponent, pLocalPlayer, ClientSpottingTargetComponent::SpotType::SpotType_Active, soldiersToSpotArray, 0);
//..
delete soldiersToSpotArray;
}

Я нашел этот код в Интернете
говорит, пятно на мини-
но я не могу составить
кто-то, кто знает, может скомпилировать его?код правильный?
спасибо за помощь

DarkExaByte отредактировал 26.11.2014 10:44 AM это сообщение по причине:

Перенесено

Like Пост Цитировать это сообщение в ответе
Ответить 




Просматривают: Гости: 1


Обратная связь и сотрудничество | Dark Team | Вернуться в начало | Вернуться к содержанию | Мобильная Версия | RSS Синдикация