Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
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
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-13-2010 , 12:07   Re: About orpheu..? cs.i386.dll differ from mp.dll?
Reply With Quote #2

http://forums.alliedmods.net/showpos...43&postcount=4

You can see also my plugin which hook SetAnimation().
__________________
Arkshine is offline
Reply



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