mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[saco] Implement/match CPlayerPed::IsPerformingAnimation(...)
This commit is contained in:
parent
4c8333f443
commit
27b31e604d
@ -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) {
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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" };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user