View Single Post
atomen
Veteran Member
Join Date: Oct 2006
Location: Stockholm, Sweden
Old 07-27-2010 , 12:13   Re: Orpheu: Searching for functions in libraries
Reply With Quote #18

It might be better for me to do this in a separate topic but I'll let that rest for now.

Detecting shoot event properly requires a bit to much code for my taste therefore
I've been looking for an alternative (orpheu). Now I need some help.

I've found the shoot event offset (EV_HLDM_FireBullets) function name in windows.
PHP Code:
Source Code Location"cl_cll.proj / ev_hldm.cpp (Ln 353)"
Library Locationmp.dll ("cstrike/dlls")
Function 
namesub_19024C0
Hex Location
0x24C0 (correct me please
Now my question is; do I have enough data to provide myself with an orpheu function, and if so, I would be very pleased with some assistance.

EDIT: If someone wants the EV_HLDM_FireBullets declaration header:
PHP Code:
void EV_HLDM_FireBullets(int idxfloat *forwardfloat *rightfloat *upint cShotsfloat *vecSrcfloat *vecDirShootingfloat flDistanceint iBulletTypeint iTracerFreqint *tracerCountfloat flSpreadXfloat flSpreadY
EDIT 2: In my bold attempt creating a JSON file for the firebullets function I've might come up with something usable. Inspect and give judgement!
PHP Code:
{
    
"name" "EV_HLDM_FireBullets",
    
"library" "mod",
    
"arguments" :
    [
        {
            
"type" "int"
        
},
        {
            
"type" "float *"
        
},
        {
            
"type" "float *"
        
},
        {
            
"type" "float *"
        
},
        {
            
"type" "int"
        
},
        {
            
"type" "float *"
        
},
        {
            
"type" "float *"
        
},
        {
            
"type" "float"
        
},
        {
            
"type" "int"
        
},
        {
            
"type" "int"
        
},
        {
            
"type" "int *"
        
},
        {
            
"type" "float"
        
},
        {
            
"type" "float"
        
}
    ],
    
"identifiers" :
    [
        {
            
"os" "windows",
            
"mod" "cstrike",
            
"value" 0x24C0
        
},
    ]

__________________

Last edited by atomen; 07-27-2010 at 12:31. Reason: I like, I like it a lot
atomen is offline
Send a message via MSN to atomen