[saco] Implement/match CPlayerPed::ShowMarker(...)

This commit is contained in:
RD42 2024-10-28 19:37:24 +08:00
parent 15ab1d056a
commit 9e6ae8204f
2 changed files with 18 additions and 1 deletions

View File

@ -1,5 +1,11 @@
#include <windows.h>
#include <assert.h>
#define _ASSERT assert
#include "../main.h"
#include "game.h"
#include "util.h"
#include "keystuff.h"
#include "task.h"
@ -382,7 +388,6 @@ BYTE CPlayerPed::GetSpecialKey()
return 0;
}
//-----------------------------------------------------------
CAMERA_AIM * CPlayerPed::GetCurrentAim()
@ -419,6 +424,17 @@ int CPlayerPed::GetCurrentVehicleID()
return GamePool_Vehicle_GetIndex(pVehicle);
}
//-----------------------------------------------------------
// Shows the normal marker
void CPlayerPed::ShowMarker(int iMarkerColorID)
{
if (m_dwArrow) HideMarker();
ScriptCommand(&create_arrow_above_actor, m_dwGTAId, &m_dwArrow);
ScriptCommand(&set_marker_color, m_dwArrow, iMarkerColorID);
ScriptCommand(&show_on_radar2, m_dwArrow, 2);
}
//-----------------------------------------------------------
void CPlayerPed::HideMarker()

View File

@ -34,6 +34,7 @@ public:
return GameGetPlayerCameraMode(m_bytePlayerNumber);
};
void ShowMarker(int iMarkerColorID);
void HideMarker();
BYTE GetCurrentWeapon();
int GetCurrentVehicleID();