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 & Location: mp.dll ("cstrike/dlls")
Function name: sub_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 idx, float *forward, float *right, float *up, int cShots, float *vecSrc, float *vecDirShooting, float flDistance, int iBulletType, int iTracerFreq, int *tracerCount, float flSpreadX, float 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
},
]
}
__________________