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

This commit is contained in:
RD42 2024-10-31 19:17:46 +08:00
parent 4c8333f443
commit 27b31e604d
3 changed files with 12 additions and 0 deletions

View File

@ -1118,6 +1118,16 @@ void CPlayerPed::ApplyAnimation( char *szAnimName, char *szAnimFile, float fT,
//-----------------------------------------------------------
BOOL CPlayerPed::IsPerformingAnimation(char *szAnimName)
{
if(m_pPed && ScriptCommand(&is_actor_performing_anim,m_dwGTAId,szAnimName)) {
return TRUE;
}
return FALSE;
}
//-----------------------------------------------------------
float CPlayerPed::GetAimZ()
{
if(m_pPed) {

View File

@ -95,6 +95,7 @@ public:
void ApplyAnimation(char *szAnimName, char *szAnimFile, float fT,
int opt1, int opt2, int opt3, int opt4, int iUnk);
BOOL IsPerformingAnimation(char *szAnimName);
CPlayerPed();

View File

@ -100,6 +100,7 @@ const SCRIPT_COMMAND request_animation = { 0x04ED, "s" };
const SCRIPT_COMMAND is_animation_loaded = { 0x04EE, "s" };
const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };
const SCRIPT_COMMAND apply_animation = { 0x0812, "issfiiiii" }; // actor,animation,library,floatunk,bool,bool,bool,bool,int
const SCRIPT_COMMAND is_actor_performing_anim = { 0x0611, "is" };
const SCRIPT_COMMAND set_actor_weapon_droppable = { 0x087e, "ii" };
const SCRIPT_COMMAND set_actor_money = { 0x03fe, "ii" };