diff --git a/saco/game/playerped.cpp b/saco/game/playerped.cpp index c3fbb83..1b296ef 100644 --- a/saco/game/playerped.cpp +++ b/saco/game/playerped.cpp @@ -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; diff --git a/saco/game/playerped.h b/saco/game/playerped.h index 94e6d7d..f3d0907 100644 --- a/saco/game/playerped.h +++ b/saco/game/playerped.h @@ -53,6 +53,7 @@ public: WORD GetAmmo(); int GetFightingStyle(); + void SetFightingStyle(int iStyle); float GetTargetRotation(); void SetTargetRotation(float fRotation); diff --git a/saco/game/scripting.h b/saco/game/scripting.h index 6798d28..3be99b9 100644 --- a/saco/game/scripting.h +++ b/saco/game/scripting.h @@ -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" };