SA-MP/saco/game/playerped.h

96 lines
1.8 KiB
C
Raw Normal View History

2024-02-15 22:23:36 +08:00
#pragma once
#include "game.h"
#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:
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();
float GetTargetRotation();
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);
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;
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;
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
};
//-----------------------------------------------------------