Raised This Month: $ Target: $400
 0% 

Some orpheu questions.


Post New Thread Reply   
 
Thread Tools Display Modes
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
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 06-23-2014 , 12:26   Re: Some orpheu questions.
Reply With Quote #2

Here is all offsets from CGameRules (MultiPlayer)
OFFSETS

I don't found your needed offsets in this list so i think not exists.
I found another offsets but i don't know if it works:
PHP Code:
bomb defusingbool                        m_bStartDefuse;       /*   404     1 */ 
bomb plantingbool    m_bStartedArming;       /*   336     1 */ from CBasePlayerWeapon (CC4

Last edited by DWIGHTpN; 06-23-2014 at 12:27.
DWIGHTpN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-23-2014 , 13:29   Re: Some orpheu questions.
Reply With Quote #3

I know this, is from Arkshine. I tested them but they don't work. Someone know if this offsets exists, and if so, what value they have ?

Last edited by HamletEagle; 06-23-2014 at 13:29.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-23-2014 , 15:16   Re: Some orpheu questions.
Reply With Quote #4

They are original offsets. You probably missed the point they are linux-based value. You need to do some math to test under windows.
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-24-2014 , 03:58   Re: Some orpheu questions.
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
They are original offsets. You probably missed the point they are linux-based value. You need to do some math to test under windows.
I know.
linux offset + 8 = windows offset or maybe I'm wrong.Could you tell me if this is true ?
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-24-2014 , 04:10   Re: Some orpheu questions.
Reply With Quote #6

You know, but it doesn't mean you test it properly. Values are extracted from binary file. If something doesn't work, it's because of your code or because you have no idea how to test it.
__________________
Arkshine is offline
Old 06-24-2014, 04:17
HamletEagle
This message has been deleted by HamletEagle.
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-24-2014 , 05:17   Re: Some orpheu questions.
Reply With Quote #7

Still no succes. Here is my complete signature file, tell me if it's correct.

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_bStartDefuse", -not working
        
"type"        "byte",
        
"memoryType"  "data",
        
"identifiers" 
        [
            {
                
"os"    "windows",
                
"mod"   "cstrike",
                
"value" 412
            
},
            {
                
"os"    "linux",
                
"mod"   "cstrike",
                
"value" 404
            
}
        ]
    },
   {
        
"name"        "m_bStartedArming", - not working
        
"type"        "byte",
        
"memoryType"  "data",
        
"identifiers" 
        [
            {
                
"os"    "windows",
                
"mod"   "cstrike",
                
"value" 344
            
},
            {
                
"os"    "linux",
                
"mod"   "cstrike",
                
"value" 336
            
}
        ]
    },      
    {
        
"name"        "m_bBombDropped",
        
"type"        "byte",
        
"memoryType"  "data",
        
"identifiers" 
        [
            {
                
"os"    "windows",
                
"mod"   "cstrike",
                
"value" 8
            
},
            {
                
"os"    "linux",
                
"mod"   "cstrike",
                
"value" 4
            
}
        ]
    }


Last edited by HamletEagle; 06-24-2014 at 05:18.
HamletEagle is offline
Old 06-24-2014, 05:29
Arkshine
This message has been deleted by Arkshine. Reason: nvm
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-24-2014 , 05:36   Re: Some orpheu questions.
Reply With Quote #8

The two offsets not working are grenade offsets. You see well they are not in the full CHalfLifeMultiplay list.
__________________
Arkshine is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-24-2014 , 05:40   Re: Some orpheu questions.
Reply With Quote #9

So the offsets that I'm looking for doesn't really exists and I have to find another way without them or without orpheu. I think this is solved.
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-24-2014 , 05:49   Re: Some orpheu questions.
Reply With Quote #10

You have events to hook that. Not sure what is the point of using offset only, this doesn't make sense. There is already a tutorial about it.
__________________

Last edited by Arkshine; 06-24-2014 at 05:50.
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 11:55.


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