mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-27 08:20:35 +00:00
95 lines
1.8 KiB
C++
95 lines
1.8 KiB
C++
|
|
#pragma once
|
|
|
|
#include "game.h"
|
|
#include "aimstuff.h"
|
|
#include "entity.h"
|
|
|
|
struct struc_97
|
|
{
|
|
char _gap0[52];
|
|
};
|
|
|
|
//-----------------------------------------------------------
|
|
|
|
class CPlayerPed : public CEntity
|
|
{
|
|
public:
|
|
|
|
void ResetPointers();
|
|
void SetInitialState();
|
|
|
|
BYTE GetSpecialKey();
|
|
|
|
CAMERA_AIM * GetCurrentAim();
|
|
void SetCurrentAim(CAMERA_AIM *pAim);
|
|
|
|
void HideMarker();
|
|
BYTE GetCurrentWeapon();
|
|
int GetCurrentVehicleID();
|
|
BOOL IsOnScreen();
|
|
float GetHealth();
|
|
void SetHealth(float fHealth);
|
|
float GetArmour();
|
|
void SetArmour(float fArmour);
|
|
DWORD GetStateFlags();
|
|
void SetStateFlags(DWORD dwStateFlags);
|
|
BOOL IsDead();
|
|
BOOL IsInVehicle();
|
|
BYTE GetActionTrigger();
|
|
void SetActionTrigger(BYTE byteTrigger);
|
|
|
|
WORD GetAmmo();
|
|
|
|
void GiveWeapon(int iWeaponID, int iAmmo);
|
|
void SetArmedWeapon(int iWeaponType, bool bUnk);
|
|
WEAPON_SLOT_TYPE * GetCurrentWeaponSlot();
|
|
WEAPON_SLOT_TYPE * FindWeaponSlot(DWORD dwWeapon);
|
|
BOOL HasAmmoForCurrentWeapon();
|
|
|
|
void SetImmunities(BOOL bBullet, BOOL bFire, BOOL bExplosion, BOOL bDamage, BOOL bUnknown);
|
|
|
|
void StartGoggles();
|
|
void StopGoggles();
|
|
BOOL HasGoggles();
|
|
|
|
void SetAnimationSet(PCHAR szAnim);
|
|
void SetMoney(int iAmount);
|
|
|
|
CPlayerPed();
|
|
|
|
//char _gap0[813];
|
|
//char _gap0[741];
|
|
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;
|
|
DWORD m_dwArrow;
|
|
char _gap2D1[1];
|
|
int field_2D2;
|
|
char _gap2D6[8];
|
|
int field_2DE;
|
|
int field_2E2;
|
|
BOOL m_bGoggleState;
|
|
char _gap2EA[8];
|
|
int field_2F2;
|
|
char field_2F6;
|
|
char field_2F7;
|
|
char field_2F8;
|
|
int field_2F9;
|
|
char _gap2FD[48];
|
|
|
|
};
|
|
|
|
//-----------------------------------------------------------
|