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

This commit is contained in:
RD42 2024-07-14 22:50:36 +08:00
parent c1b0fbded2
commit 410d45a6da
3 changed files with 11 additions and 0 deletions

View File

@ -396,6 +396,15 @@ WEAPON_SLOT_TYPE * CPlayerPed::FindWeaponSlot(DWORD dwWeapon)
//-----------------------------------------------------------
void CPlayerPed::SetAnimationSet(PCHAR szAnim)
{
if(m_pPed) {
ScriptCommand(&set_actor_animation_set,m_dwGTAId,szAnim);
}
}
//-----------------------------------------------------------
void CPlayerPed::StartGoggles()
{
if (HasGoggles()) return;

View File

@ -53,6 +53,7 @@ public:
void StopGoggles();
BOOL HasGoggles();
void SetAnimationSet(PCHAR szAnim);
CPlayerPed();
//char _gap0[813];

View File

@ -69,6 +69,7 @@ const SCRIPT_COMMAND get_active_interior = { 0x077e, "v" };
const SCRIPT_COMMAND refresh_streaming_at = { 0x04E4, "ff" };
const SCRIPT_COMMAND set_actor_animation_set = { 0x0245, "is" };
const SCRIPT_COMMAND request_animation = { 0x04ED, "s" };
const SCRIPT_COMMAND is_animation_loaded = { 0x04EE, "s" };
const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };