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-10-15 16:57:03 +08:00
|
|
|
void SetKeys(WORD wKeys, WORD lrAnalog, WORD udAnalog);
|
2024-10-15 16:55:38 +08:00
|
|
|
WORD GetKeys(WORD * lrAnalog, WORD * udAnalog);
|
|
|
|
|
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-10-13 21:42:33 +08:00
|
|
|
BYTE GetCameraMode() {
|
|
|
|
if(!m_bytePlayerNumber)
|
|
|
|
return GameGetLocalPlayerCameraMode();
|
|
|
|
else
|
|
|
|
return GameGetPlayerCameraMode(m_bytePlayerNumber);
|
|
|
|
};
|
|
|
|
|
2024-10-28 19:37:24 +08:00
|
|
|
void ShowMarker(int iMarkerColorID);
|
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-08-13 23:13:17 +08:00
|
|
|
void RemoveWeaponWhenEnteringVehicle();
|
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-10-31 17:22:38 +08:00
|
|
|
void PutDirectlyInVehicle(int iVehicleID, int iSeat);
|
2024-10-31 17:26:43 +08:00
|
|
|
void EnterVehicle(int iVehicleID, BOOL bPassenger);
|
2024-10-31 17:27:54 +08:00
|
|
|
void ExitCurrentVehicle();
|
2024-10-15 17:52:24 +08:00
|
|
|
void RemoveFromVehicleAndPutAt(float fX, float fY, float fZ);
|
|
|
|
|
2024-08-11 23:42:32 +08:00
|
|
|
BOOL IsAPassenger();
|
|
|
|
|
2024-08-11 23:44:07 +08:00
|
|
|
VEHICLE_TYPE * GetGtaVehicle();
|
2024-10-15 17:18:06 +08:00
|
|
|
VEHICLE_TYPE * GetGtaContactVehicle();
|
2024-10-15 17:16:42 +08:00
|
|
|
ENTITY_TYPE * GetGtaContactEntity();
|
2024-08-11 23:44:07 +08:00
|
|
|
|
2024-10-15 17:45:42 +08:00
|
|
|
int GetVehicleSeatID();
|
2024-10-15 17:56:30 +08:00
|
|
|
void TogglePlayerControllable(int iControllable);
|
|
|
|
|
2024-08-13 23:29:34 +08:00
|
|
|
float GetDistanceFromVehicle(CVehicle *pVehicle);
|
|
|
|
|
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-10-29 11:47:52 +08:00
|
|
|
void ProcessVehicleHorn();
|
|
|
|
|
2024-10-15 18:05:38 +08:00
|
|
|
void HandsUp();
|
2024-10-31 19:14:05 +08:00
|
|
|
BOOL HasHandsUp();
|
2024-10-15 18:05:38 +08:00
|
|
|
|
2024-10-15 17:11:01 +08:00
|
|
|
float GetAimZ();
|
2024-10-15 17:11:37 +08:00
|
|
|
void SetAimZ(float fAimZ);
|
2024-10-15 17:11:01 +08:00
|
|
|
|
2024-10-28 19:59:56 +08:00
|
|
|
PCHAR GetLoadedShopName();
|
2024-10-28 20:00:42 +08:00
|
|
|
void LoadShoppingDataSubsection(PCHAR szSectionName);
|
2024-10-28 20:01:44 +08:00
|
|
|
PCHAR GetShopName();
|
2024-10-28 20:02:24 +08:00
|
|
|
void SetShopName(char *szNewShopName);
|
2024-10-28 20:01:44 +08:00
|
|
|
|
2024-10-28 20:02:55 +08:00
|
|
|
void SetWeaponSkillLevel(int iSkill, float fLevel);
|
|
|
|
|
2024-10-28 20:03:31 +08:00
|
|
|
VECTOR* GetBonePosition(int iBone, VECTOR *vecPos);
|
2024-10-28 20:04:13 +08:00
|
|
|
VECTOR* GetTransformedBonePosition(int iBone, VECTOR *vecOffset);
|
2024-10-28 20:01:44 +08:00
|
|
|
|
2024-10-15 18:05:38 +08:00
|
|
|
//char _gap0[813];
|
|
|
|
//char _gap0[741];
|
|
|
|
int field_48;
|
2024-02-15 22:23:36 +08:00
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
//-----------------------------------------------------------
|