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

This commit is contained in:
RD42 2024-11-02 23:06:07 +08:00
parent 3bf84844a3
commit 802fe277f2
3 changed files with 12 additions and 0 deletions

View File

@ -1325,6 +1325,15 @@ int CPlayerPed::GetFightingStyle()
//-----------------------------------------------------------
void CPlayerPed::SetFightingStyle(int iStyle)
{
if (!m_pPed) return;
ScriptCommand( &set_fighting_style, m_dwGTAId, iStyle, 6 );
}
//-----------------------------------------------------------
void CPlayerPed::ProcessVehicleHorn()
{
if(!m_pPed) return;

View File

@ -53,6 +53,7 @@ public:
WORD GetAmmo();
int GetFightingStyle();
void SetFightingStyle(int iStyle);
float GetTargetRotation();
void SetTargetRotation(float fRotation);

View File

@ -114,6 +114,8 @@ const SCRIPT_COMMAND toggle_actor_cellphone = { 0x0729, "ii" };
const SCRIPT_COMMAND actor_task_handsup = { 0x5c4, "ii" };
const SCRIPT_COMMAND set_fighting_style = { 0x07fe, "iii" };
const SCRIPT_COMMAND link_vehicle_to_interior = { 0x0840, "ii" };
const SCRIPT_COMMAND create_radar_marker_icon = { 0x0570, "fffiv" };