Raised This Month: $ Target: $400
 0% 

Some orpheu questions.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-23-2014 , 09:46   Some orpheu questions.
Reply With Quote #1

I'm trying to do something with orpheu. My code is currently like this:

Code:
#include < orpheu > #include < orpheu_stocks > #include < orpheu_memory> new g_pGameRules public plugin_precache( )     OrpheuRegisterHook ( OrpheuGetFunction ("InstallGameRules") , "OnInstallGameRules", OrpheuHookPost ) public OnInstallGameRules( ) {     g_pGameRules = OrpheuGetReturn( ) }

I need to catch this:
  • Map has bomb target.
  • Bomb planted.
  • Bomb dropped.
  • Target bombed.
  • Planting event.
  • Defusing event.

I found how to do for some of them:
  • Map has bomb target - OrpheuMemoryGetAtAddress ( g_pGameRules, "m_bMapHasBombTarget" )
  • Bomb planted. - no
  • Bomb dropped. - OrpheuMemoryGetAtAddress ( g_pGameRules, "m_bBombDropped" )
  • Target bombed. - OrpheuMemoryGetAtAddress ( g_pGameRules, "m_bTargetBombed" )
  • Planting event. - no
  • Defusing event. - no

For the ones where I put "no", I can't find the needed offset. If someone know them please let me know.

My signature file looks like this:

PHP Code:
[
    {
        
"name"        "m_bTargetBombed",
        
"type"        "byte",
        
"memoryType"  "data",
        
"identifiers" 
        [
            {
                
"os"    "windows",
                
"mod"   "cstrike",
                
"value" 124
            
},
            {
                
"os"    "linux",
                
"mod"   "cstrike",
                
"value" 116
            
}
        ]
    },
 
    {
        
"name"        "m_bMapHasBombTarget",
        
"type"        "byte",
        
"memoryType"  "data",
        
"identifiers" 
        [
            {
                
"os"    "windows",
                
"mod"   "cstrike",
                
"value" 126
            
},
            {
                
"os"    "linux",
                
"mod"   "cstrike",
                
"value" 118
            
}
        ]
    },   
   
    {
        
"name"        "m_bBombDropped",
        
"type"        "byte",
        
"memoryType"  "data",
        
"identifiers" 
        [
            {
                
"os"    "windows",
                
"mod"   "cstrike",
                
"value" 16
            
},
            {
                
"os"    "linux",
                
"mod"   "cstrike",
                
"value" 8
            
}
        ]
    }


So, I need offset value for bomb planted, bomb planting, bomb defusing.

Last edited by HamletEagle; 06-23-2014 at 12:16.
HamletEagle is offline
 


Thread Tools
Display Modes

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 21:16.


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