AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   About orpheu..? cs.i386.dll differ from mp.dll? (https://forums.alliedmods.net/showthread.php?t=126776)

hzqst 05-13-2010 11:58

About orpheu..? cs.i386.dll differ from mp.dll?
 
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");
 
OrpheuRegisterHookSetAnimation"SetAnimation" );  
}
public 
OnSetAnimation(const player, const animation ){
 
server_print"Player %d - Anim %d"playeranimation );


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

Arkshine 05-13-2010 12:07

Re: About orpheu..? cs.i386.dll differ from mp.dll?
 
http://forums.alliedmods.net/showpos...43&postcount=4 :roll:

You can see also my plugin which hook SetAnimation().


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

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