AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Who can help me with orpheu? (https://forums.alliedmods.net/showthread.php?t=126389)

hzqst 05-08-2010 22:59

Who can help me with orpheu?
 
PHP Code:

 new OrpheuFunction:SetAnimation OrpheuGetFunction"SetAnimation""CBasePlayer" );
 
OrpheuRegisterHookSetAnimation"OP_SetAnimation" ); 

PHP Code:

public OP_SetAnimation(const player, ???){
 


PHP Code:

{
 
"name" "SetAnimation",
 
"class" "CBasePlayer",
 
"library" "mod",
 
"arguments" :
 [
  {
   
"type" "PLAYER_ANIM"
  
}
 ],
 
"identifiers":
 [
  {
   
"os" "windows",
   
"value" "?SetAnimation@CBasePlayer@@QAEXXZ"
  
},
  {
   
"os" "linux",
   
"value" "SetAnimation__11CBasePlayer11PLAYER_ANIM"
  
}
 ]


then I just want to hook SetAnimation

joaquimandrade 05-10-2010 07:59

Re: Who can help me with orpheu?
 
PHP Code:

 new OrpheuFunction:SetAnimation OrpheuGetFunction"SetAnimation""CBasePlayer" );
 
OrpheuRegisterHookSetAnimation"OP_SetAnimation" ); 

PHP Code:

public OP_SetAnimation(const player,const animation){
 


HTML Code:

{
    "name" : "SetAnimation",
    "class" : "CBasePlayer",
    "library" : "mod",
    "arguments" :
    [
        {
            "type" : "PLAYER_ANIM"
        }
    ],
    "identifiers":
    [
        {
            "os" : "windows",
            "value" : [0x83,0xEC,0x48,0x53,0x55,0x8B,0xE9,0x56,0x57,0x8B,0x4D,0x04,0x8B,0x81,"*","*","*","*",0x85,0xC0,0x0F,0x84,"*","*","*","*",0x8B]
        },
        {
            "os" : "linux",
            "value" : "SetAnimation__11CBasePlayer11PLAYER_ANIM"
        }
    ]
}


hzqst 05-10-2010 09:46

Re: Who can help me with orpheu?
 
I tried your code but, it still doesn't work
This is what I saw in console:
Quote:

Orpheu functions search started.
Parsing functions started.
Parsing folder "CBasePlayer" started
Parsing file "SetAnimation" started
Argument type "PLAYER_ANIM" validated
Parsing file "SetAnimation" ended
Parsing folder "CBasePlayer" ended
Parsing functions ended.
Orpheu functions search ended
and with error:

Quote:

L 05/10/2010 - 21:43:47: [ORPHEU] Function "CBasePlayer::SetAnimation" not found
L 05/10/2010 - 21:43:47: [AMXX] Run time error 10 (plugin "orpheu_animation.amxx") (native "OrpheuGetFunction") - debug not enabled!
L 05/10/2010 - 21:43:47: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).

joaquimandrade 05-10-2010 14:23

Re: Who can help me with orpheu?
 
Quote:

Originally Posted by hzqst (Post 1176400)
I tried your code but, it still doesn't work
This is what I saw in console:

and with error:

My bad:
HTML Code:


{
    "name" : "SetAnimation",
    "class" : "CBasePlayer",
    "library" : "mod",
    "arguments" :
    [
        {
            "type" : "PLAYER_ANIM"
        }
    ],
    "identifiers":
    [
        {
            "os" : "windows",
            "mod" : "cstrike",
            "value" : [0x83,0xEC,0x48,0x53,0x55,0x8B,0xE9,0x56,0x57,0x8B,0x4D,0x04,0x8B,0x81,"*","*","*","*",0x85,0xC0,0x0F,0x84,"*","*","*","*",0x8B]
        },
        {
            "os" : "linux",
            "mod" : "cstrike",
            "value" : "SetAnimation__11CBasePlayer11PLAYER_ANIM"
        }
    ]
}

It missed

HTML Code:

            "mod" : "cstrike"

Voi 11-03-2010 20:55

Re: Who can help me with orpheu?
 
How I can get current animation frame ? I need the leg ones.


All times are GMT -4. The time now is 03:43.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.