Originally Posted by
kill3ill
Hey Mitch, i look for a way for a long time to run a cod4 cracked server and never found anything in internet!! Sorry for my noob question, but how do u use this php codes u just gave here??
Thanks for your help,
ps: sorry for my bad english, i'm french
Kill3ill
The code is supposed to be adding to libcod. See https://github.com/kungfooman/libcod. (you will need to be able to edit your start up line for this to work. Also linux only)
But i never got around to test that code.
In https://github.com/kungfooman/libcod...er/libcod.cpp:
Add after 'char * hook_AuthorizeState( int arg ) { **** }' (line 1446)
PHP Code:
int hook_StateCompare(char * state, char * base)
{
if ((CvarVariableValue == NULL || CvarVariableValue("sv_cracked") == 1) && strcmp (state, "deny") == 0) // when sv_cracked 1 and deny state
{
if(strcmp(base, "accept") == 0) // when compare value is accept return true
return 0;
else
return 1; // when compare to value is deny return false
}
return strcmp(state, base);
}
Add this before #ifdef IS_JAVA_ENABLED (line 2022)
PHP Code:
#if COD_VERSION == COD4_1_7
cracking_hook_call(0x0816FF42, (int)hook_StateCompare);
cracking_hook_call(0x081701D6, (int)hook_StateCompare);
#endif
Note: This code hasn't be tested so it might be that it could crash your game server. (cod4_lnxded)
Edit: try this binary at http://znation.nl/libcod/