2024-02-15 22:23:36 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-05-03 22:09:09 +08:00
|
|
|
#include "game.h"
|
2024-05-03 22:07:17 +08:00
|
|
|
#include "aimstuff.h"
|
2024-02-15 22:23:36 +08:00
|
|
|
#include "entity.h"
|
|
|
|
|
|
|
|
struct struc_97
|
|
|
|
{
|
|
|
|
char _gap0[52];
|
|
|
|
};
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
|
|
|
|
class CPlayerPed : public CEntity
|
|
|
|
{
|
|
|
|
public:
|
2024-05-03 21:48:31 +08:00
|
|
|
|
2024-05-05 18:29:24 +08:00
|
|
|
void ResetPointers();
|
2024-05-05 18:30:43 +08:00
|
|
|
void SetInitialState();
|
2024-05-05 18:29:24 +08:00
|
|
|
|
2024-05-05 18:32:43 +08:00
|
|
|
BYTE GetSpecialKey();
|
|
|
|
|
2024-05-05 18:34:54 +08:00
|
|
|
CAMERA_AIM * GetCurrentAim();
|
2024-05-05 18:37:07 +08:00
|
|
|
void SetCurrentAim(CAMERA_AIM *pAim);
|
2024-05-05 18:34:54 +08:00
|
|
|
|
2024-05-05 18:57:12 +08:00
|
|
|
void HideMarker();
|
2024-05-05 18:52:08 +08:00
|
|
|
BYTE GetCurrentWeapon();
|
2024-05-05 18:54:54 +08:00
|
|
|
int GetCurrentVehicleID();
|
2024-05-05 18:59:28 +08:00
|
|
|
BOOL IsOnScreen();
|
2024-05-05 19:04:57 +08:00
|
|
|
float GetHealth();
|
2024-05-05 19:06:45 +08:00
|
|
|
void SetHealth(float fHealth);
|
2024-05-05 22:10:52 +08:00
|
|
|
float GetArmour();
|
2024-05-05 22:11:39 +08:00
|
|
|
void SetArmour(float fArmour);
|
2024-05-05 22:12:31 +08:00
|
|
|
DWORD GetStateFlags();
|
2024-05-05 22:13:40 +08:00
|
|
|
void SetStateFlags(DWORD dwStateFlags);
|
2024-05-05 22:14:11 +08:00
|
|
|
BOOL IsDead();
|
2024-05-05 22:18:25 +08:00
|
|
|
BOOL IsInVehicle();
|
2024-05-05 22:16:15 +08:00
|
|
|
BYTE GetActionTrigger();
|
2024-05-05 22:16:50 +08:00
|
|
|
void SetActionTrigger(BYTE byteTrigger);
|
2024-05-05 18:52:08 +08:00
|
|
|
|
2024-05-03 21:59:22 +08:00
|
|
|
WORD GetAmmo();
|
|
|
|
|
2024-08-05 18:11:12 +08:00
|
|
|
float GetTargetRotation();
|
2024-08-05 18:12:18 +08:00
|
|
|
void SetTargetRotation(float fRotation);
|
2024-08-05 18:14:12 +08:00
|
|
|
void ForceTargetRotation(float fRotation);
|
|
|
|
|
2024-05-03 22:09:09 +08:00
|
|
|
void GiveWeapon(int iWeaponID, int iAmmo);
|
2024-05-03 22:07:17 +08:00
|
|
|
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
2024-08-13 23:12:39 +08:00
|
|
|
void ClearAllWeapons();
|
2024-05-03 21:56:41 +08:00
|
|
|
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
2024-05-03 21:54:53 +08:00
|
|
|
WEAPON_SLOT_TYPE * FindWeaponSlot(DWORD dwWeapon);
|
2024-05-03 22:10:53 +08:00
|
|
|
BOOL HasAmmoForCurrentWeapon();
|
2024-05-03 21:54:53 +08:00
|
|
|
|
2024-05-05 19:02:17 +08:00
|
|
|
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
|
|
|
|
|
2024-08-11 23:42:32 +08:00
|
|
|
BOOL IsAPassenger();
|
|
|
|
|
2024-08-11 23:44:07 +08:00
|
|
|
VEHICLE_TYPE * GetGtaVehicle();
|
|
|
|
|
2024-08-11 23:37:07 +08:00
|
|
|
void StartJetpack();
|
2024-08-11 23:36:29 +08:00
|
|
|
void StopJetpack();
|
2024-08-11 23:34:43 +08:00
|
|
|
BOOL IsInJetpackMode();
|
|
|
|
|
2024-05-03 22:10:08 +08:00
|
|
|
void StartGoggles();
|
2024-05-03 21:51:28 +08:00
|
|
|
void StopGoggles();
|
2024-05-03 21:48:31 +08:00
|
|
|
BOOL HasGoggles();
|
|
|
|
|
2024-07-14 22:50:36 +08:00
|
|
|
void SetAnimationSet(PCHAR szAnim);
|
2024-07-14 22:51:45 +08:00
|
|
|
void SetMoney(int iAmount);
|
|
|
|
|
2024-02-15 22:23:36 +08:00
|
|
|
CPlayerPed();
|
|
|
|
|
2024-07-13 23:26:40 +08:00
|
|
|
//char _gap0[813];
|
|
|
|
//char _gap0[741];
|
2024-02-15 22:23:36 +08:00
|
|
|
int field_48;
|
|
|
|
int field_4C[10];
|
|
|
|
struc_97 field_74[10];
|
|
|
|
int field_27C[10];
|
|
|
|
PED_TYPE *m_pPed;
|
|
|
|
int field_2A8;
|
|
|
|
int field_2AC;
|
|
|
|
BYTE m_bytePlayerNumber;
|
|
|
|
char _gap2B1[8];
|
|
|
|
int field_2B9;
|
|
|
|
char _gap2BD[4];
|
|
|
|
int field_2C1;
|
|
|
|
int field_2C5;
|
|
|
|
int field_2C9;
|
2024-05-05 18:57:12 +08:00
|
|
|
DWORD m_dwArrow;
|
2024-07-13 23:26:40 +08:00
|
|
|
char _gap2D1[1];
|
2024-02-15 22:23:36 +08:00
|
|
|
int field_2D2;
|
|
|
|
char _gap2D6[8];
|
|
|
|
int field_2DE;
|
|
|
|
int field_2E2;
|
2024-05-03 21:48:31 +08:00
|
|
|
BOOL m_bGoggleState;
|
2024-02-15 22:23:36 +08:00
|
|
|
char _gap2EA[8];
|
|
|
|
int field_2F2;
|
|
|
|
char field_2F6;
|
|
|
|
char field_2F7;
|
|
|
|
char field_2F8;
|
|
|
|
int field_2F9;
|
2024-07-13 23:26:40 +08:00
|
|
|
char _gap2FD[48];
|
|
|
|
|
2024-02-15 22:23:36 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|