mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[saco] Implement/match CPlayerPed::SetAnimationSet(...)
This commit is contained in:
parent
c1b0fbded2
commit
410d45a6da
@ -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()
|
void CPlayerPed::StartGoggles()
|
||||||
{
|
{
|
||||||
if (HasGoggles()) return;
|
if (HasGoggles()) return;
|
||||||
|
@ -53,6 +53,7 @@ public:
|
|||||||
void StopGoggles();
|
void StopGoggles();
|
||||||
BOOL HasGoggles();
|
BOOL HasGoggles();
|
||||||
|
|
||||||
|
void SetAnimationSet(PCHAR szAnim);
|
||||||
CPlayerPed();
|
CPlayerPed();
|
||||||
|
|
||||||
//char _gap0[813];
|
//char _gap0[813];
|
||||||
|
@ -69,6 +69,7 @@ const SCRIPT_COMMAND get_active_interior = { 0x077e, "v" };
|
|||||||
|
|
||||||
const SCRIPT_COMMAND refresh_streaming_at = { 0x04E4, "ff" };
|
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 request_animation = { 0x04ED, "s" };
|
||||||
const SCRIPT_COMMAND is_animation_loaded = { 0x04EE, "s" };
|
const SCRIPT_COMMAND is_animation_loaded = { 0x04EE, "s" };
|
||||||
const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };
|
const SCRIPT_COMMAND release_animation = { 0x04EF, "s" };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user