main(){level endon("restarting");thread errorMessage();for(;;){if(getDvarInt("sv_cheats")||isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="strat")break;forceDvar("authServerName","cod4master.activision.com");forceDvar("sv_disableClientConsole","0");forceDvar("sv_fps","20");forceDvar("sv_pure","1");forceDvar("sv_maxrate","25000");forceDvar("g_gravity","800");forceDvar("g_speed","225");forceDvar("g_knockback","1000");forceDvar("g_playercollisionejectspeed","25");forceDvar("g_dropforwardspeed","10");forceDvar("g_drophorzspeedrand","100");forceDvar("g_dropupspeedbase","10");forceDvar("g_dropupspeedrand","5");forceDvar("g_useholdtime","0");if(isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="match"){forceDvar("g_maxdroppedweapons","16");if(!game["LAN_MODE"])forceDvar("g_smoothclients","1");}wait 0.1;}}forceDvar(dvar,value){val=getDvar(dvar);if(val!=value){setDvar(dvar,value);iprintln("^3"+dvar+" has been changed back to '"+value+"' (was '"+val+"')");}}errorMessage(){level endon("restarting");for(;;){if(getDvarInt("sv_cheats")||isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="strat")break;if(!getDvarInt("sv_punkbuster")&&!game["LAN_MODE"]&&!game["PROMOD_PB_OFF"])iprintlnbold("");if(getDvarInt("scr_player_maxhealth")!=100&&game["HARDCORE_MODE"]!=1&&game["CUSTOM_MODE"]!=1||getDvarInt("scr_player_maxhealth")!=30&&game["HARDCORE_MODE"]==1&&game["CUSTOM_MODE"]!=1)iprintlnbold("^1Server Violation^7: Modified Player Health");antilag=getDvarInt("g_antilag");dedicated=getDvar("dedicated");if((antilag&&dedicated=="dedicated LAN server")||(!antilag&&dedicated=="dedicated internet server"&&!game["PROMOD_PB_OFF"]))iprintlnbold("^1Server Violation^7: Modified Connection");if(isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="match"||toLower(getDvar("fs_game"))=="mods/pml220"){if(toLower(getDvar("fs_game"))!="mods/pml220")iprintlnbold("^1Server Violation^7: Invalid fs_game value");iwdnames=strToK(getDvar("sv_iwdnames")," ");iwdsums=strToK(getDvar("sv_iwds")," ");iwd_loaded=false;for(i=0;i<iwdnames.size;i++){switch(iwdnames[i]){case"iw_00":case"iw_01":case"iw_02":case"iw_03":case"iw_04":case"iw_05":case"iw_06":case"iw_07":case"iw_08":case"iw_09":case"iw_10":case"iw_11":case"iw_12":case"iw_13":break;case"z_c_r":if(isDefined(game["PROMOD_MATCH_MODE"])&&game["PROMOD_MATCH_MODE"]=="match"&&iwdsums[i]!="1988645860")iprintlnbold("^1Server Violation^7: Modified Custom IWD File While In Match Mode");break;case"pml220":if(iwdsums[i]!="1491770436")iprintlnbold("^1Server Violation^7: Modified Promod IWD Detected");iwd_loaded=true;break;default:if(!isCustomMap()||!isSubStr(iwdnames[i],level.script))iprintlnbold("^1Server Violation^7: Extra IWD Files Detected");break;}}if(!iwd_loaded)iprintlnbold("^1Server Violation^7: Promod IWD Not Loaded");}wait 2;}}isCustomMap(){switch(level.script){case"mp_backlot":case"mp_bloc":case"mp_bog":case"mp_broadcast":case"mp_carentan":case"mp_cargoship":case"mp_citystreets":case"mp_convoy":case"mp_countdown":case"mp_crash":case"mp_crash_snow":case"mp_creek":case"mp_crossfire":case"mp_farm":case"mp_killhouse":case"mp_overgrown":case"mp_pipeline":case"mp_shipment":case"mp_showdown":case"mp_strike":case"mp_vacant":return false;}return true;}