AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Some orpheu questions. (https://forums.alliedmods.net/showthread.php?t=242701)

HamletEagle 06-23-2014 09:46

Some orpheu questions.
 
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.

DWIGHTpN 06-23-2014 12:26

Re: Some orpheu questions.
 
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


HamletEagle 06-23-2014 13:29

Re: Some orpheu questions.
 
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 ?

Arkshine 06-23-2014 15:16

Re: Some orpheu questions.
 
They are original offsets. You probably missed the point they are linux-based value. You need to do some math to test under windows.

HamletEagle 06-24-2014 03:58

Re: Some orpheu questions.
 
Quote:

Originally Posted by Arkshine (Post 2156225)
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 ?

Arkshine 06-24-2014 04:10

Re: Some orpheu questions.
 
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.

HamletEagle 06-24-2014 05:17

Re: Some orpheu questions.
 
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
            
}
        ]
    }



Arkshine 06-24-2014 05:36

Re: Some orpheu questions.
 
The two offsets not working are grenade offsets. You see well they are not in the full CHalfLifeMultiplay list.

HamletEagle 06-24-2014 05:40

Re: Some orpheu questions.
 
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.

Arkshine 06-24-2014 05:49

Re: Some orpheu questions.
 
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.


All times are GMT -4. The time now is 21:16.

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