2023-11-03 18:51:53 +08:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-02-21 19:18:21 +08:00
|
|
|
void ProcessLineOfSight(VECTOR *vecOrigin, VECTOR *vecLine, VECTOR *colPoint,
|
|
|
|
DWORD *pHitEntity, int bCheckBuildings, int bCheckVehicles, int bCheckPeds,
|
|
|
|
int bCheckObjects, int bCheckDummies, int bSeeThroughStuff,
|
|
|
|
int bIgnoreSomeObjectsForCamera, int bUnk1);
|
|
|
|
|
2024-05-07 22:31:48 +08:00
|
|
|
float GetNormalisation(VECTOR *vec);
|
|
|
|
|
2024-05-06 22:34:26 +08:00
|
|
|
float FloatDifference(float f1, float f2);
|
2024-05-06 22:34:58 +08:00
|
|
|
float FloatOffset(float f1, float f2);
|
2024-05-06 22:35:47 +08:00
|
|
|
float NormalizeAngle(float fAngle);
|
2024-05-06 22:34:26 +08:00
|
|
|
|
2023-11-03 18:51:53 +08:00
|
|
|
void __stdcall SetRadarColor(int nIndex,DWORD dwColor);
|
|
|
|
|
2024-02-26 23:05:29 +08:00
|
|
|
void __stdcall WorldRemoveEntity(DWORD *dwEnt);
|
|
|
|
void __stdcall WorldAddEntity(DWORD *dwEnt);
|
|
|
|
|
2024-03-16 23:29:52 +08:00
|
|
|
int __stdcall GameGetWeaponModelIDFromWeaponID(int iWeaponID);
|
2024-02-26 23:05:29 +08:00
|
|
|
void __stdcall GameDisableCheatCodes();
|
|
|
|
|
|
|
|
PED_TYPE * __stdcall GamePool_Ped_GetAt(int iID);
|
|
|
|
int __stdcall GamePool_Ped_GetIndex(PED_TYPE *pActor);
|
|
|
|
VEHICLE_TYPE * __stdcall GamePool_Vehicle_GetAt(int iID);
|
|
|
|
DWORD __stdcall GamePool_Vehicle_GetIndex(VEHICLE_TYPE *pVehicle);
|
|
|
|
ENTITY_TYPE * __stdcall GamePool_Object_GetAt(int iID);
|
2024-02-15 21:41:26 +08:00
|
|
|
PED_TYPE * __stdcall GamePool_FindPlayerPed();
|
|
|
|
|
2023-11-03 18:51:53 +08:00
|
|
|
DWORD __stdcall TranslateColorCodeToRGBA(int iCode);
|
2024-05-05 21:33:51 +08:00
|
|
|
BOOL __stdcall GameIsEntityOnScreen(DWORD * pdwEnt);
|
2024-02-15 21:56:14 +08:00
|
|
|
void __stdcall InitPlayerPedPtrRecords();
|
|
|
|
void __stdcall SetPlayerPedPtrRecord(BYTE bytePlayer, DWORD dwPedPtr);
|
|
|
|
DWORD __stdcall GetPlayerPedPtrRecord(BYTE bytePlayer);
|
|
|
|
BYTE __stdcall FindPlayerNumFromPedPtr(DWORD dwPedPtr);
|
2024-05-07 22:24:39 +08:00
|
|
|
float __stdcall SquaredDistanceBetweenHorizontalPoints(float x1, float y1, float x2, float y2);
|
2024-05-07 22:25:37 +08:00
|
|
|
float DistanceBetweenHorizontalPoints(float x1, float y1, float x2, float y2);
|
2024-05-07 22:26:45 +08:00
|
|
|
float DistanceBetweenPoints(float x1, float y1, float z1, float x2, float y2, float z2);
|
2024-05-07 22:29:56 +08:00
|
|
|
float __stdcall SquaredDistanceBetweenPoints(float x1, float y1, float z1, float x2, float y2, float z2);
|
|
|
|
float __stdcall SquaredDistanceBetweenPoints(VECTOR *vec1, VECTOR *vec2);
|
2023-11-03 18:51:53 +08:00
|
|
|
|
2024-05-07 22:30:48 +08:00
|
|
|
void __stdcall _VectorNormalise(VECTOR *vec);
|
2024-07-11 19:19:59 +08:00
|
|
|
DWORD __stdcall CRC32FromUpcaseString(char *szString);
|
2024-05-07 22:30:48 +08:00
|
|
|
|
2023-11-03 18:51:53 +08:00
|
|
|
void GameResetRadarColors();
|
2023-12-01 18:31:52 +08:00
|
|
|
|
2024-05-06 22:29:22 +08:00
|
|
|
float DegToRad(float fDegrees);
|
2024-05-06 22:30:31 +08:00
|
|
|
float InvDegToRad(float fDegrees);
|
|
|
|
|
2024-05-05 21:41:12 +08:00
|
|
|
void SaveCameraRaster(char *filename);
|
|
|
|
|
2023-12-01 18:31:52 +08:00
|
|
|
BOOL IsFileOrDirectoryExists(char * szPath);
|
2024-02-19 21:32:38 +08:00
|
|
|
|
|
|
|
DWORD unnamed_100B6100(char *szString, int nMaxLen);
|
2024-03-16 23:35:28 +08:00
|
|
|
|
2024-11-03 23:08:30 +08:00
|
|
|
bool FUNC_100B4B50(VECTOR *vecPos);
|
2024-05-05 16:39:28 +08:00
|
|
|
|
|
|
|
BUILDING_TYPE * GamePool_GetBuilding();
|
2024-05-05 16:40:42 +08:00
|
|
|
DUMMY_TYPE * GamePool_GetDummy();
|
2024-05-05 16:41:54 +08:00
|
|
|
OBJECT_TYPE * GamePool_GetObject();
|
2024-05-05 16:39:28 +08:00
|
|
|
|
2024-05-05 18:19:43 +08:00
|
|
|
void ReplaceBuildingModel(ENTITY_TYPE *pEntity, int iModelID);
|
2024-05-05 18:21:21 +08:00
|
|
|
int GetInvalidModelInfoCount();
|
2024-05-06 22:32:07 +08:00
|
|
|
|
|
|
|
bool HasCollisionLoaded(VECTOR *vec);
|
2024-05-06 22:32:46 +08:00
|
|
|
BOOL __stdcall IsATrainPart(ENTITY_TYPE *pEntity);
|
2024-07-18 22:09:30 +08:00
|
|
|
|
|
|
|
BOOL IsHexChar(char c);
|
|
|
|
BOOL IsHexChar(wchar_t c);
|
2024-07-22 18:37:27 +08:00
|
|
|
DWORD GetColorFromEmbedCode(char *szString);
|
|
|
|
DWORD GetColorFromEmbedCode(wchar_t *szString);
|
2024-07-23 18:51:42 +08:00
|
|
|
void RemoveColorEmbedsFromString(char *szString);
|
2024-08-20 23:26:04 +08:00
|
|
|
|
|
|
|
UINT GetVehicleSubtypeFromVehiclePtr(VEHICLE_TYPE *pVehicle);
|
|
|
|
|
2024-11-02 22:36:15 +08:00
|
|
|
DWORD * GetNextTaskFromTask(DWORD *task);
|
2024-11-02 22:37:47 +08:00
|
|
|
int GetTaskTypeFromTask(DWORD *task);
|
2024-11-02 22:38:54 +08:00
|
|
|
const char* GetTaskNameFromTask(DWORD *task);
|
2024-11-02 22:36:15 +08:00
|
|
|
|