11-23-2016, 02:54
Hello, maybe anyone here already did that with success, or maybe could help me find the function which is called when you input a command at console to let us for exemple execute a command via script.
I'm looking for this for COD4, but I believe is the same in MW2 and MW3.
for exemple...
stargame()
{
...
run_at_console(exec config.cfg);
...
}
this UNKNOW (run_at_console) function exist somewhere in the part of the code not available in the modtools files, probably is inside some of these files (includes) which we don't have.
In Quake 2 Source engine this is the real function with real code:
Cbuf_ExecuteText(EXEC_NOW, "exec file.cfg");
everything that you sent to this function, is like as someone submitting this code direct on the server's console.
I used a lot in my old mods, and I'm really in need for this in my new version of Frontlines. Any Clues?
I know many of you here did amazing work reversing MW2 and other games, you could just take a look and find that function for me?
thank you
I'm looking for this for COD4, but I believe is the same in MW2 and MW3.
for exemple...
stargame()
{
...
run_at_console(exec config.cfg);
...
}
this UNKNOW (run_at_console) function exist somewhere in the part of the code not available in the modtools files, probably is inside some of these files (includes) which we don't have.
In Quake 2 Source engine this is the real function with real code:
Cbuf_ExecuteText(EXEC_NOW, "exec file.cfg");
everything that you sent to this function, is like as someone submitting this code direct on the server's console.
I used a lot in my old mods, and I'm really in need for this in my new version of Frontlines. Any Clues?
I know many of you here did amazing work reversing MW2 and other games, you could just take a look and find that function for me?
thank you
Hajas M0Ds | www.mods.hajas.org