AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired (https://forums.alliedmods.net/showthread.php?t=270764)

colossus 08-29-2015 00:15

Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
Please, i need that signature

CheckRoundTimeExpired

This don't work:
PHP Code:

OrpheuRegisterHook(OrpheuGetFunction("CheckFreezePeriodExpired""CHalfLifeMultiplay" ), "CheckFreezePeriodExpired"); 

PHP Code:

{
    
"name"    "CheckFreezePeriodExpired",
    
"class"   "CHalfLifeMultiplay",
    
"library" "mod",
    
"identifiers" 
    [
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "CheckFreezePeriodExpired__18CHalfLifeMultiplay"
        
},
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "_ZN18CHalfLifeMultiplay17CheckFreezePeriodExpiredEv"
        
}
    ]



SpeeDeeR 08-29-2015 05:01

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
I think this would work
PHP Code:

{

    
"name"    "HasRoundTimeExpired",
    
"class"   "CHalfLifeMultiplay",
    
"library" "mod",
    
"return"  
    {
        
"type" "bool"
    
},
    
"identifiers" 
    [
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "HasRoundTimeExpired__18CHalfLifeMultiplay"
        
}
    ]



colossus 08-29-2015 18:12

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
Quote:

Originally Posted by SpeeDeeR (Post 2337912)
I think this would work
PHP Code:

{

    
"name"    "HasRoundTimeExpired",
    
"class"   "CHalfLifeMultiplay",
    
"library" "mod",
    
"return"  
    {
        
"type" "bool"
    
},
    
"identifiers" 
    [
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "HasRoundTimeExpired__18CHalfLifeMultiplay"
        
}
    ]



I do not need that signature, I need that I indicated

Spirit_12 08-29-2015 19:31

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
Quote:

Originally Posted by SpeeDeeR (Post 2337912)
I think this would work
PHP Code:

{

    
"name"    "HasRoundTimeExpired",
    
"class"   "CHalfLifeMultiplay",
    
"library" "mod",
    
"return"  
    {
        
"type" "bool"
    
},
    
"identifiers" 
    [
        {
            
"os"    "linux",
            
"mod"   "cstrike",
            
"value" "HasRoundTimeExpired__18CHalfLifeMultiplay"
        
}
    ]



Correct signature for HasRoundTimeExpired would be

Code:

_ZN18CHalfLifeMultiplay19HasRoundTimeExpiredEv
The only signature that I could find relating to CheckFreezePeriodExpired was this one. See, if it works for you.

Code:

_ZN10CGameRules14IsFreezePeriodEv

Arkshine 08-30-2015 03:32

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
OP has already the proper symbols for linux. He's asking likely for windows, but unfortunately because of optimization at compilation, such function content is directly copied in functions where it's used, meaning you can't hook it under windows.

colossus 08-30-2015 13:43

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
I need to linux

Spirit_12 08-30-2015 13:58

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
Quote:

Originally Posted by Arkshine (Post 2338214)
OP has already the proper symbols for linux. He's asking likely for windows, but unfortunately because of optimization at compilation, such function content is directly copied in functions where it's used, meaning you can't hook it under windows.

Which file holds that signature on Linux? I tried, but couldn't find it.

colossus 09-04-2015 21:40

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
I need the that signature please, how to make that?

Spirit_12 09-05-2015 18:47

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
Did you try the one that I posed?

Arkshine 09-06-2015 04:13

Re: Wrong signature CHalfLifeMultiplay::CheckRoundTimeExpired
 
Maybe you should try explain what you're trying to do. This function can't be hooked under windows.


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

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