I tried IDA Pro to open them and CBasePlayer::SetAnimation was found in cs.i386.dll but not in mp.dll, why ?
and this is my method that hooks SetAnimation provided by arkshine
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <hamsandwich>
#include <orpheu>
public plugin_init(){
register_plugin( "Orpheu Example", "1.0.0", "Orpheu" );
}
public plugin_precache(){
new OrpheuFunction:SetAnimation = OrpheuGetFunctionFromClass("player", "SetAnimation", "CBasePlayer");
OrpheuRegisterHook( SetAnimation, "SetAnimation" );
}
public OnSetAnimation(const player, const animation ){
server_print( "Player %d - Anim %d", player, animation );
}
and have put this in "amxmodx\configs\orpheu\virtualFunctions\CBas ePlayer" folder
PHP Code:
{
"name" : "SetAnimation",
"class" : "CBasePlayer",
"library" : "mod",
"arguments" :
[
{
"type" : "PLAYER_ANIM"
}
],
"identifiers":
[
{
"os" : "windows",
"mod" : "cstrike",
"?SetAnimation@CBasePlayer@@QAEXXZ"
},
{
"os" : "linux",
"mod" : "cstrike",
"value" : "SetAnimation__11CBasePlayer11PLAYER_ANIM"
}
]
}
doesn't work
console said that
Code:
"?SetAnimation@CBasePlayer@@QAEXXZ" NOT FOUND