Raised This Month: $ Target: $400
 0% 

About orpheu..? cs.i386.dll differ from mp.dll?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hzqst
Senior Member
Join Date: Jul 2008
Old 05-13-2010 , 11:58   About orpheu..? cs.i386.dll differ from mp.dll?
Reply With Quote #1

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
hzqst is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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