Post: Useful gsc scripts C++
12-23-2010, 05:51 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So I found some useful scripts that can help you create your cod4 patch_mp.ff.

It's better to start off with a clean patch.^^
Use Tupac17's Re-compress & decompress the Cod4 tutorial to create your own Cod4 patch.^^

To unlock all the camos.

    CamoUnlocks()
{
self endon( "disconnect" );

unlockCamo = [];

unlockCamo[0] = "m16 camo_blackwhitemarpat";
unlockCamo[1] = "m16 camo_stagger";
unlockCamo[2] = "m16 camo_tigerred";
unlockCamo[3] = "ak47 camo_blackwhitemarpat";
unlockCamo[4] = "ak47 camo_stagger";
unlockCamo[5] = "ak47 camo_tigerred";
unlockCamo[6] = "m4 camo_blackwhitemarpat";
unlockCamo[7] = "m4 camo_stagger";
unlockCamo[8] = "m4 camo_tigerred";
unlockCamo[9] = "g3 camo_blackwhitemarpat";
unlockCamo[10] = "g3 camo_stagger";
unlockCamo[11] = "g3 camo_tigerred";
unlockCamo[12] = "g36c camo_blackwhitemarpat";
unlockCamo[13] = "g36c camo_stagger";
unlockCamo[14] = "g36c camo_tigerred";
unlockCamo[15] = "m14 camo_blackwhitemarpat";
unlockCamo[16] = "m14 camo_stagger";
unlockCamo[17] = "m14 camo_tigerred";
unlockCamo[18] = "mp44 camo_blackwhitemarpat";
unlockCamo[19] = "mp44 camo_stagger";
unlockCamo[20] = "mp44 camo_tigerred";
unlockCamo[21] = "mp5 camo_blackwhitemarpat";
unlockCamo[22] = "mp5 camo_stagger";
unlockCamo[23] = "mp5 camo_tigerred";
unlockCamo[24] = "skorpion camo_blackwhitemarpat";
unlockCamo[25] = "skorpion camo_stagger";
unlockCamo[26] = "skorpion camo_tigerred";
unlockCamo[27] = "uzi camo_blackwhitemarpat";
unlockCamo[28] = "uzi camo_stagger";
unlockCamo[29] = "uzi camo_tigerred";
unlockCamo[30] = "ak74u camo_blackwhitemarpat";
unlockCamo[31] = "ak74u camo_stagger";
unlockCamo[32] = "ak74u camo_tigerred";
unlockCamo[33] = "p90 camo_blackwhitemarpat";
unlockCamo[34] = "p90 camo_stagger";
unlockCamo[35] = "p90 camo_tigerred";
unlockCamo[36] = "dragunov camo_blackwhitemarpat";
unlockCamo[37] = "dragunov camo_stagger";
unlockCamo[38] = "dragunov camo_tigerred";
unlockCamo[39] = "m40a3 camo_blackwhitemarpat";
unlockCamo[40] = "m40a3 camo_stagger";
unlockCamo[41] = "m40a3 camo_tigerred";
unlockCamo[42] = "barrett camo_blackwhitemarpat";
unlockCamo[43] = "barrett camo_stagger";
unlockCamo[44] = "barrett camo_tigerred";
unlockCamo[45] = "remington700 camo_blackwhitemarpat";
unlockCamo[46] = "remington700 camo_stagger";
unlockCamo[47] = "remington700 camo_tigerred";
unlockCamo[48] = "m21 camo_blackwhitemarpat";
unlockCamo[49] = "m21 camo_stagger";
unlockCamo[50] = "m21 camo_tigerred";
unlockCamo[51] = "m1014 camo_blackwhitemarpat";
unlockCamo[52] = "m1014 camo_stagger";
unlockCamo[53] = "m1014 camo_tigerred";
unlockCamo[54] = "winchester1200 camo_blackwhitemarpat";
unlockCamo[55] = "winchester1200 camo_stagger";
unlockCamo[56] = "winchester1200 camo_tigerred";
unlockCamo[57] = "rpd camo_blackwhitemarpat";
unlockCamo[58] = "rpd camo_stagger";
unlockCamo[59] = "rpd camo_tigerred";
unlockCamo[60] = "saw camo_blackwhitemarpat";
unlockCamo[61] = "saw camo_stagger";
unlockCamo[62] = "saw camo_tigerred";
unlockCamo[63] = "m60e4 camo_blackwhitemarpat";
unlockCamo[64] = "m60e4 camo_stagger";
unlockCamo[65] = "m60e4 camo_tigerred";
unlockCamo[66] = "ak47 camo_gold";
unlockCamo[67] = "uzi camo_gold";
unlockCamo[68] = "dragunov camo_gold";
unlockCamo[69] = "m1014 camo_gold";
unlockCamo[70] = "m60e4 camo_gold";
unlockCamo[71] = "m4 camo_brockhaurd";
unlockCamo[72] = "m4 camo_bushdweller";
unlockCamo[73] = "g3 camo_brockhaurd";
unlockCamo[74] = "g3 camo_bushdweller";
unlockCamo[75] = "m14 camo_brockhaurd";
unlockCamo[76] = "m14 camo_bushdweller";
unlockCamo[77] = "g36c camo_brockhaurd";
unlockCamo[78] = "g36c camo_bushdweller";
unlockCamo[79] = "mp44 camo_brockhaurd";
unlockCamo[80] = "mp44 camo_bushdweller";
unlockCamo[81] = "ak74u camo_brockhaurd";
unlockCamo[82] = "ak74u camo_bushdweller";
unlockCamo[83] = "uzi camo_brockhaurd";
unlockCamo[84] = "uzi camo_bushdweller";
unlockCamo[85] = "p90 camo_brockhaurd";
unlockCamo[86] = "p90 camo_bushdweller";
unlockCamo[87] = "m60e4 camo_brockhaurd";
unlockCamo[88] = "m60e4 camo_bushdweller";
unlockCamo[89] = "m1014 camo_brockhaurd";
unlockCamo[90] = "m1014 camo_bushdweller";
unlockCamo[91] = "remington700 camo_brockhaurd";
unlockCamo[92] = "remington700 camo_bushdweller";
unlockCamo[93] = "barrett camo_brockhaurd";
unlockCamo[94] = "barrett camo_bushdweller";
unlockCamo[95] = "dragunov camo_brockhaurd";
unlockCamo[96] = "dragunov camo_bushdweller";
unlockCamo[97] = "m21 camo_brockhaurd";
unlockCamo[98] = "m21 camo_bushdweller";

for(i = 0; i < unlockCamo.size; i++)
{
self thread maps\mp\gametypes\_rank::unlockCamo( unlockCamo[ i ] );
wait .1;
}
self iprintln( "Done unlocking Camo's" );
}


Optimized?
    CamoUnlocks(){self endon("disconnect");unlockCamo=[];unlockCamo[0]="m16 camo_blackwhitemarpat";unlockCamo[1]="m16 camo_stagger";unlockCamo[2]="m16 camo_tigerred";unlockCamo[3]="ak47 camo_blackwhitemarpat";unlockCamo[4]="ak47 camo_stagger";unlockCamo[5]="ak47 camo_tigerred";unlockCamo[6]="m4 camo_blackwhitemarpat";unlockCamo[7]="m4 camo_stagger";unlockCamo[8]="m4 camo_tigerred";unlockCamo[9]="g3 camo_blackwhitemarpat";unlockCamo[10]="g3 camo_stagger";unlockCamo[11]="g3 camo_tigerred";unlockCamo[12]="g36c camo_blackwhitemarpat";unlockCamo[13]="g36c camo_stagger";unlockCamo[14]="g36c camo_tigerred";unlockCamo[15]="m14 camo_blackwhitemarpat";unlockCamo[16]="m14 camo_stagger";unlockCamo[17]="m14 camo_tigerred";unlockCamo[18]="mp44 camo_blackwhitemarpat";unlockCamo[19]="mp44 camo_stagger";unlockCamo[20]="mp44 camo_tigerred";unlockCamo[21]="mp5 camo_blackwhitemarpat";unlockCamo[22]="mp5 camo_stagger";unlockCamo[23]="mp5 camo_tigerred";unlockCamo[24]="skorpion camo_blackwhitemarpat";unlockCamo[25]="skorpion camo_stagger";unlockCamo[26]="skorpion camo_tigerred";unlockCamo[27]="uzi camo_blackwhitemarpat";unlockCamo[28]="uzi camo_stagger";unlockCamo[29]="uzi camo_tigerred";unlockCamo[30]="ak74u camo_blackwhitemarpat";unlockCamo[31]="ak74u camo_stagger";unlockCamo[32]="ak74u camo_tigerred";unlockCamo[33]="p90 camo_blackwhitemarpat";unlockCamo[34]="p90 camo_stagger";unlockCamo[35]="p90 camo_tigerred";unlockCamo[36]="dragunov camo_blackwhitemarpat";unlockCamo[37]="dragunov camo_stagger";unlockCamo[38]="dragunov camo_tigerred";unlockCamo[39]="m40a3 camo_blackwhitemarpat";unlockCamo[40]="m40a3 camo_stagger";unlockCamo[41]="m40a3 camo_tigerred";unlockCamo[42]="barrett camo_blackwhitemarpat";unlockCamo[43]="barrett camo_stagger";unlockCamo[44]="barrett camo_tigerred";unlockCamo[45]="remington700 camo_blackwhitemarpat";unlockCamo[46]="remington700 camo_stagger";unlockCamo[47]="remington700 camo_tigerred";unlockCamo[48]="m21 camo_blackwhitemarpat";unlockCamo[49]="m21 camo_stagger";unlockCamo[50]="m21 camo_tigerred";unlockCamo[51]="m1014 camo_blackwhitemarpat";unlockCamo[52]="m1014 camo_stagger";unlockCamo[53]="m1014 camo_tigerred";unlockCamo[54]="winchester1200 camo_blackwhitemarpat";unlockCamo[55]="winchester1200 camo_stagger";unlockCamo[56]="winchester1200 camo_tigerred";unlockCamo[57]="rpd camo_blackwhitemarpat";unlockCamo[58]="rpd camo_stagger";unlockCamo[59]="rpd camo_tigerred";unlockCamo[60]="saw camo_blackwhitemarpat";unlockCamo[61]="saw camo_stagger";unlockCamo[62]="saw camo_tigerred";unlockCamo[63]="m60e4 camo_blackwhitemarpat";unlockCamo[64]="m60e4 camo_stagger";unlockCamo[65]="m60e4 camo_tigerred";unlockCamo[66]="ak47 camo_gold";unlockCamo[67]="uzi camo_gold";unlockCamo[68]="dragunov camo_gold";unlockCamo[69]="m1014 camo_gold";unlockCamo[70]="m60e4 camo_gold";unlockCamo[71]="m4 camo_brockhaurd";unlockCamo[72]="m4 camo_bushdweller";unlockCamo[73]="g3 camo_brockhaurd";unlockCamo[74]="g3 camo_bushdweller";unlockCamo[75]="m14 camo_brockhaurd";unlockCamo[76]="m14 camo_bushdweller";unlockCamo[77]="g36c camo_brockhaurd";unlockCamo[78]="g36c camo_bushdweller";unlockCamo[79]="mp44 camo_brockhaurd";unlockCamo[80]="mp44 camo_bushdweller";unlockCamo[81]="ak74u camo_brockhaurd";unlockCamo[82]="ak74u camo_bushdweller";unlockCamo[83]="uzi camo_brockhaurd";unlockCamo[84]="uzi camo_bushdweller";unlockCamo[85]="p90 camo_brockhaurd";unlockCamo[86]="p90 camo_bushdweller";unlockCamo[87]="m60e4 camo_brockhaurd";unlockCamo[88]="m60e4 camo_bushdweller";unlockCamo[89]="m1014 camo_brockhaurd";unlockCamo[90]="m1014 camo_bushdweller";unlockCamo[91]="remington700 camo_brockhaurd";unlockCamo[92]="remington700 camo_bushdweller";unlockCamo[93]="barrett camo_brockhaurd";unlockCamo[94]="barrett camo_bushdweller";unlockCamo[95]="dragunov camo_brockhaurd";unlockCamo[96]="dragunov camo_bushdweller";unlockCamo[97]="m21 camo_brockhaurd";unlockCamo[98]="m21 camo_bushdweller";for(i=0;i < unlockCamo.size;i++){self thread mapsmpgametypes_rank::unlockCamo(unlockCamo[ i ]);wait .1;}self iprintln("Done unlocking Camo's");}

Unlock all attachments:
    

AttachmentsUnlocks()
{
self endon( "disconnect" );

unlockAttachment = [];

unlockAttachment[0] = "m4 reflex";
unlockAttachment[1] = "saw reflex";
unlockAttachment[2] = "uzi reflex";
unlockAttachment[3] = "m60e4 reflex";
unlockAttachment[4] = "g3 reflex";
unlockAttachment[5] = "ak74u reflex";
unlockAttachment[6] = "m1014 reflex";
unlockAttachment[7] = "g36c reflex";
unlockAttachment[8] = "p90 reflex";
unlockAttachment[9] = "m14 reflex";
unlockAttachment[10] = "m16 reflex";
unlockAttachment[11] = "ak47 reflex";
unlockAttachment[12] = "mp5 reflex";
unlockAttachment[13] = "skorpion reflex";
unlockAttachment[14] = "winchester1200 reflex";
unlockAttachment[15] = "rpd reflex";
unlockAttachment[16] = "m4 silencer";
unlockAttachment[17] = "mp5 silencer";
unlockAttachment[18] = "skorpion silencer";
unlockAttachment[19] = "uzi silencer";
unlockAttachment[20] = "ak74u silencer";
unlockAttachment[21] = "p90 silencer";
unlockAttachment[22] = "ak47 silencer";
unlockAttachment[23] = "m14 silencer";
unlockAttachment[24] = "g3 silencer";
unlockAttachment[25] = "g36c silencer";
unlockAttachment[26] = "m16 silencer";
unlockAttachment[27] = "mp5 acog";
unlockAttachment[28] = "skorpion acog";
unlockAttachment[29] = "uzi acog";
unlockAttachment[30] = "ak74u acog";
unlockAttachment[31] = "p90 acog";
unlockAttachment[32] = "ak47 acog";
unlockAttachment[33] = "m14 acog";
unlockAttachment[34] = "g3 acog";
unlockAttachment[35] = "g36c acog";
unlockAttachment[36] = "m16 acog";
unlockAttachment[37] = "m4 acog";
unlockAttachment[38] = "dragunov acog";
unlockAttachment[39] = "m40a3 acog";
unlockAttachment[40] = "barrett acog";
unlockAttachment[41] = "remington700 acog";
unlockAttachment[42] = "m21 acog";
unlockAttachment[43] = "rpd acog";
unlockAttachment[44] = "saw acog";
unlockAttachment[45] = "m60e4 acog";
unlockAttachment[46] = "m1014 grip";
unlockAttachment[47] = "winchester1200 grip";
unlockAttachment[48] = "rpd grip";
unlockAttachment[49] = "saw grip";
unlockAttachment[50] = "m60e4 grip";
unlockAttachment[51] = "m4 gl";
unlockAttachment[52] = "m14 gl";
unlockAttachment[53] = "g3 gl";
unlockAttachment[54] = "g36c gl";

for( i = 0; i < unlockAttachment.size; i++ )
{
self thread maps\mp\gametypes\_rank::unlockAttachment( unlockAttachment[ i ] );
wait .1;
}

self iprintln( "Done unlocking Attachment's" );
self iprintlnBold( "^1****ing Done " );

}


Optimized?
    AttachmentsUnlocks(){self endon("disconnect");unlockAttachment=[];unlockAttachment[0]="m4 reflex";unlockAttachment[1]="saw reflex";unlockAttachment[2]="uzi reflex";unlockAttachment[3]="m60e4 reflex";unlockAttachment[4]="g3 reflex";unlockAttachment[5]="ak74u reflex";unlockAttachment[6]="m1014 reflex";unlockAttachment[7]="g36c reflex";unlockAttachment[8]="p90 reflex";unlockAttachment[9]="m14 reflex";unlockAttachment[10]="m16 reflex";unlockAttachment[11]="ak47 reflex";unlockAttachment[12]="mp5 reflex";unlockAttachment[13]="skorpion reflex";unlockAttachment[14]="winchester1200 reflex";unlockAttachment[15]="rpd reflex";unlockAttachment[16]="m4 silencer";unlockAttachment[17]="mp5 silencer";unlockAttachment[18]="skorpion silencer";unlockAttachment[19]="uzi silencer";unlockAttachment[20]="ak74u silencer";unlockAttachment[21]="p90 silencer";unlockAttachment[22]="ak47 silencer";unlockAttachment[23]="m14 silencer";unlockAttachment[24]="g3 silencer";unlockAttachment[25]="g36c silencer";unlockAttachment[26]="m16 silencer";unlockAttachment[27]="mp5 acog";unlockAttachment[28]="skorpion acog";unlockAttachment[29]="uzi acog";unlockAttachment[30]="ak74u acog";unlockAttachment[31]="p90 acog";unlockAttachment[32]="ak47 acog";unlockAttachment[33]="m14 acog";unlockAttachment[34]="g3 acog";unlockAttachment[35]="g36c acog";unlockAttachment[36]="m16 acog";unlockAttachment[37]="m4 acog";unlockAttachment[38]="dragunov acog";unlockAttachment[39]="m40a3 acog";unlockAttachment[40]="barrett acog";unlockAttachment[41]="remington700 acog";unlockAttachment[42]="m21 acog";unlockAttachment[43]="rpd acog";unlockAttachment[44]="saw acog";unlockAttachment[45]="m60e4 acog";unlockAttachment[46]="m1014 grip";unlockAttachment[47]="winchester1200 grip";unlockAttachment[48]="rpd grip";unlockAttachment[49]="saw grip";unlockAttachment[50]="m60e4 grip";unlockAttachment[51]="m4 gl";unlockAttachment[52]="m14 gl";unlockAttachment[53]="g3 gl";unlockAttachment[54]="g36c gl";for(i=0;i < unlockAttachment.size;i++){self thread maps\mp\gametypes\_rank::unlockAttachment(unlockAttachment[ i ]);wait .1;}self iprintln("Done unlocking Attachment's");self iprintlnBold("^1****ing Done ");


Toggle through prestige's:
    
doToggle()
{
self endon("death");
self endon("disconnect");

for(;Winky Winky
{
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 0" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 1 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 1" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 2 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 2" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 3 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 3" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 4 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 4" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 5 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 5" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 6 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 6" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 7 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 7" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 8 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 8" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 9 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 9" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 10 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 10" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 11 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnBold( "Prestige 11" );
}
}
}


Optimized:
    doToggle(){self endon("death");self endon("disconnect");for(;Winky Winky{self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",0);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 0");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",1);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 1");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",2);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 2");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",3);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 3");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",4);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 4");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",5);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 5");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",6);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 6");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",7);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 7");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",Cool Man (aka Tustin);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 8");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",9);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 9");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",10);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnbold("Prestige 10");}self waittill("weapon_change");if(self GetStance()== "prone"){self maps\mp\gametypes\_persistence::statSet("plevel",11);self maps\mp\gametypes\_persistence::statSet("rank",55);self iPrintlnBold("Prestige 11");}}}


Useful Dvars.

    self setClientDvar( "input_autoAim", "0" );
self setClientDvar( "perk_extraBreath", "1" );
self setClientDvar("cg_drawfps", "1");
self setClientDvar("cg_scoreboardMyColor", "1 0 0 1");
self setClientDvar("ui_connectScreenTextGlowColor", "1 0 0 1");
self setClientDvar( "cg_objectiveText", "^1<3 ");
self setClientDvar( "customclass1", "^3Hacked" );
self setClientDvar( "customclass2", "^1 Hacked " );
self setClientDvar( "customclass3", "^2 Hacked " );
self setClientDvar( "customclass4", "^6 Hacked " );
self setClientDvar( "customclass5", "^0 Hacked " );
self setClientDvar( "bg_fallDamageMinHeight", "1000" );
self setClientDvar( "fx_draw", "0" );
self setClientDvar( "aim_autoaim_enabled", "0" );
self setClientDvar( "aim_lockon_enabled", "0" );
self setClientDvar( "cg_drawshellshock", "0" );
self setClientDvar( "clanname", "1211" );
self setClientDvar( "motd", "^" );
self setClientDvar( "cg_fov", "80" );
self setClientDvar( "cg_scoreboardPingText", "1" );
self setClientDvar( "r_fog", "0" );
self SetActionSlot( 4, "weapon", "rpg_mp" );
self giveWeapon("rpg_mp");
self setClientDvar("scr_art_tweak", 1);
self setClientDvar( "player_meleeRange", "999" );
self setClientDvar( "cg_enemyNameFadeOut", "900000" );
self setClientDvar( "player_sprintUnlimited", "1" );
self setClientDvar( "player_sustainAmmo", "1" );
self setClientDvar( "cg_enemyNameFadeIn", "0" );
self setClientDvar("scr_art_tweak_message", 1);
self setClientDvar("r_glowUseTweaks", 1);
self setClientDvar("r_filmUseTweaks", 1);
self setWeaponAmmoClip("frag_grenade_mp", 0);
self maps\mp\gametypes\_persistence::statSet( "plevel", 10 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self setClientDvar("cg_drawfriendlynames", 0);
self setClientDvar("cg_fovScale", 1.125);
self setClientDvar("cg_hudGrenadeIconEnabledFlash", 0);
self setClientDvar("r_drawSun", 1);
self setClientDvar("r_specular", 1);
self setClientDvar("hud_fade_compass", 0);
self setClientDvar("cg_blood", 1);
self setClientDvar("r_filmusetweakcontrast", 1.25);
setDvar("bg_fallDamageMaxHeight", 9999 );
setDvar("bg_fallDamageMinHeight", 9998 );
setDvar("cg_fov", 80);
self setClientDvar( "g_speed", "210" );
self setClientDvar( "g_gravity", "500" );
setDvar("jump_height", 999);
setDvar("cg_drawfps", 1);
setDvar("com_maxfps", 125);
self GiveWeapon( "defaultweapon_mp" );
self GiveWeapon( "deserteaglegold_mp" );
setDvar("scr_forcerankedmatch", 1 );
self thread SpecialWelcome();
}


NoClip: Press L2 too use:

    Noclipv2()
{
self endon("death");
if(isdefined(self.N))
self.N delete();
self.N = spawn("script_origin", self.origin);
self.On = 0;
for(;Winky Winky
{
if(self SecondaryOffhandButtonPressed())
{
self.On = 1;
self.N.origin = self.origin;
self linkto(self.N);
}
else
{
self.On = 0;
self unlink();
}
if(self.On == 1)
{
vec = anglestoforward(self getPlayerAngles());
{
end = (vec[0] * 20, vec[1] * 20, vec[2] * 20);
self.N.origin = self.N.origin+end;
}
}
wait 0.05;
}
}


Welcoming text:

    Welcome()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("Text goes here");
wait 4;
self thread maps\mp\gametypes\_hud_message::hintMessage("^Text goes here!");
wait 4;
self iPrintln( "Text Goes here" );
wait 3;

}


Mod leaderboards
    
Leadboards()
{
self maps\mp\gametypes\_persistence::statSet( "total_hits", amount here );
self maps\mp\gametypes\_persistence::statSet( "hits", amount here );
self maps\mp\gametypes\_persistence::statSet( "misses", amount here );
self maps\mp\gametypes\_persistence::statSet( "accuracy", amount here );
self maps\mp\gametypes\_persistence::statSet( "rankxp", amount here );
self maps\mp\gametypes\_persistence::statSet( "score", amount here );
self maps\mp\gametypes\_persistence::statSet( "kills", amount here);
self maps\mp\gametypes\_persistence::statSet( "deaths", amount here);
self maps\mp\gametypes\_persistence::statSet( "time_played_total", amount here );
self maps\mp\gametypes\_persistence::statSet( "kill_streak", amount here);
self maps\mp\gametypes\_persistence::statSet( "win_streak", amount here );
}


    dotext()
{
self endon ( "disconnect" );
self endon ( "death" );
for( ;; ) {
self iPrintln( "What you want here" );
wait 4;
}
}


    ProMod() 
{
self endon("disconnect");
self endon("death");
for(;Winky Winky
{
self waittill( "weapon_change" );
if(self GetStance() == "prone" )
{
self setClientDvar( "cg_fovscale" , "1.125" );
self setClientDvar( "cg_fov" , "85" );
self iprintln( "ProMod:ON" );
}
wait 2;
self waittill( "weapon_change" );
if(self GetStance() == "prone" )
{
self setClientDvar( "cg_fovscale" , "1" );
self setClientDvar( "cg_fov" , "65" );
self iprintln( "ProMod:OFf" );
}
wait 2;
}
}


Rep+ and
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to JOT for this useful post:

Bang Tidy, Dingus98, jkry_2_1_, OFWGKTA, Six-Tri-X, Tupac17
01-09-2011, 02:20 AM #11
jkry_2_1_
Call Me The CodFather
on promode it says promode OFf when u turn it might wanna captial that f it looks really silly in game Smile
01-10-2011, 11:19 PM #12
jkry_2_1_
Call Me The CodFather
Originally posted by TheEpic View Post
Here is a list of the common codes for CoD 4.

First, here are the binds (controller buttons) you can use

UP = DPAD_UP
LEFT = DPAD_LEFT
DOWN = DPAD_DOWN
RIGHT = DPAD_RIGHT
SELECT = BUTTON_BACK
START = BUTTON_START
TRIANGLE = BUTTON_Y
SQUARE = BUTTON_X
X = BUTTON_A
O = BUTTON_B
R1 = BUTTON_RSHLDR
L1 = BUTTON_LSHLDR
R2 = BUTTON_RTRIG
L2 = BUTTON_LTRIG
R3 = BUTTON_RSTICK
L3 = BUTTON_LSTICK

to use these, simply use:

bind DPAD_UP "god"
this will give you GOD mode

you can have multiple codes per bind, ie:

bind DPAD_DOWN "god ; player_sustainAmmo 1 ; give all"
this will give you GOD mode, unlimited ammo and all weapons.

Colours:
^1 = Red
^2 = Green
^3 = Yellow
^4 = Blue
^5 = Cyan
^6 = Pink/Magenta
^7 = White
^8 = Random
^0 = Black

So, here is a list of Codes:

Basics
god = Infinite Health
demigod = Infinate Health, but your screen still flashes red. Good for split-screen games against friends, so they can't tell you've got god mode. ;]
give all = Gives all weapons.
take all = Takes all weapons.
give ammo = Gives ammo.
noclip = Float Around
ufo = Same basic thing as noclip, but different controls.
player_sustainAmmo "1" = unlimited ammo
give health = Instant Health Regeneration.

Killstreaks
give radar_mp = UAV
give airstrike_mp = Airstrike
give helicopter_mp = Helicopter

Weapons
give m16_mp = M16A4
give ak47_mp = AK-47
give m4_mp = M4 Carbine
give g3_mp = G3
give g36c_mp = G36C
give m14_mp = M14
give mp44_mp = MP44
give mp5_mp = MP5
give skorpion_mp = Skorpion
give uzi_mp = Mini-Uzi
give ak74u_mp = AK-74u
give p90_mp = P90
give winchester1200_mp = W1200
give m1014_mp = M1014
give saw_mp = SAW
give rpd_mp = RPD
give m60e4_mp = M60
give m40a3_mp = M40A3
give m21_mp = M21
give dragunov_mp = Dragonuv
give remington700_mp = R700
give barret_mp = Barret 50 Cal.
give beretta_mp = M9
give colt45_mp = Colt .45
give usp_mp = USP
give deserteagle_mp = Desert Eagle
give deserteaglegold_mp = Golden Desert Eagle
give frag_grenade_mp = Fragmentation Grenade
give flash_grenade_mp = Flash(bang) Grenade
give concussion_grenade_mp = Stun Grenade
give smoke_grenade_mp = Smoke Grenade
give rpg_mp = RPG-7
give c4_mp = C4
give claymore_mp = Claymore
give defaultweapon_mp = An invisble gun

MOTD/Classes/Clan Tag
set motd "TEXT HERE"
set customclass1 "TEXT HERE"
set customclass2 "TEXT HERE"
set customclass3 "TEXT HERE"
set customclass4 "TEXT HERE"
set customclass5 "TEXT HERE"
set clanName "CLAN HERE"

Knifing
set player_meleeHeight "10"
set player_meleeRange "64"
set player_meleeWidth "10"

Laser Sight
cg_laserForceOn "0" 1 is on, 0 is off
cg_laserFlarePct "0.2"
cg_laserLight "1"
cg_laserLightBeginOffset "13"
cg_laserLightBodyTweak "15"
cg_laserLightEndOffset "-3"
cg_laserLightRadius "3"
cg_laserRadius "0.8"
cg_laserRange "1500"
cg_laserRangePlayer "1500"

Sprint Speed
player_sprintSpeedScale "1.5"
player_sprintForwardMinimum "105"
player_sprintMinTime "1"
player_sprintStrafeSpeedScale "0.667"

Perk Modifiers
set perk_bulletPenetrationMultiplier "2" - Set this higher, to shoot through walls with ease. Needs 'Awesome faceeep Impact'.
set perk_extraBreath "5" - How long you can hold breath with 'Iron Lungs'. (The higher, the better.)
set perk_sprintMultiplier "2" - How long you can run for with 'Extreme Conditioning'. (The higher, the better.)
set perk_weapRateMultiplier "0.75" Using 'Awesome faceouble Tap', set this to lower, and you'll fire faster.
set perk_weapReloadMultiplier "0.5" The lower the number, the faster you reload. Requires 'Slight of Hand'.
set perk_weapSpreadMultiplier "0.65" The lower, the smaller your crosshair using 'Steady Aim'.

There's also these 3, but I have not tested; they may do somthing different to what I say they do.

perk_armorVest "75" - How much is added to your health with 'Juggernaught'?
perk_bulletDamage "40" - How much damage is added to your weapons with 'Stopping Power'?
perk_explosiveDamage "25" - How much damage is added to your explosive weapons with 'Sonic Boom'?

AimBot
set aim_autoaim_enabled "1" - Enables auto-aim.
set aim_lockon_debug "1" - Enhanced lock-on.
set aim_lockon_region_height "1000" - Area of lock-on.
set aim_lockon_region_width "1000" - Area of lock-on.
set g_compassshowenemies "1" - Show's enemies on radar.
set aim_lockon_strength "0.99" - Enhanced lock-on.
set aim_lockon_deflection "0.0005" - Enhanced lock-on.
set cg_tracerchance "1" - Shows bullet tracers.
set cg_tracerlength "5000" - Size of tracers.
set cg_tracerSpeed "750" - Size of tracers.
set cg_drawThroughWalls "1" - See peoples names through walls.
set cg_tracerwidth "4" - Size of tracers.
set cg_enemyNameFadeIn "0" - Stops name fading.
set cg_enemyNameFadeOut "1000" - Stops name fading.

Compass/Minimap
compass "1"
compassClampIcons "1"
compassCoords "720 340 200"
compassECoordCutoff "37"
compassEnemyFootstepEnabled "0"
compassEnemyFootstepMaxRange "500"
compassEnemyFootstepMaxZ "100"
compassEnemyFootstepMinSpeed "140"
compassFriendlyHeight "18.75"
compassFriendlyWidth "18.75"
compassMaxRange "2500"
compassMinRadius "0.0001"
compassMinRange "0.0001"
compassObjectiveArrowHeight "20"
compassObjectiveArrowOffset "2"
compassObjectiveArrowRotateDist "5"
compassObjectiveArrowWidth "20"
compassObjectiveDetailDist "10"
compassObjectiveDrawLines "1"
compassObjectiveHeight "20"
compassObjectiveIconHeight "16"
compassObjectiveIconWidth "16"
compassObjectiveMaxHeight "70"
compassObjectiveMaxRange "2048"
compassObjectiveMinAlpha "1"
compassObjectiveMinDistRange "1"
compassObjectiveMinHeight "-70"
compassObjectiveNearbyDist "4"
compassObjectiveNumRings "10"
compassObjectiveRingSize "80"
compassObjectiveRingTime "10000"
compassObjectiveTextHeight "18"
compassObjectiveTextScale "0.3"
compassObjectiveWidth "20"
compassPlayerHeight "18.75"
compassPlayerWidth "18.75"
compassRadarLineThickness "0.4"
compassRadarPingFadeTime "4"
compassRadarUpdateTime "4"
compassRotation "1"
compassSize "1"
compassSoundPingFadeTime "2"
compassTickertapeStretch "0.5"

Ignore Flash/Stun Grenades
set cg_drawShellshock "0"
bg_shock_lookControl "1" - Set this to '0' and you proberly wont be able to look around when stunned.
bg_shock_lookControl_fadeTime "2" Set this lower and the above effect will last longer?
bg_shock_lookControl_maxpitchspeed "90" - Somthing to do with looking around, then again, what's pitch got to do with it? o.O
bg_shock_lookControl_maxyawspeed "90" - Just don't use these.
bg_shock_lookControl_mousesensitivityscale "0.5" - It says mouse, but it proberly works for PS3 too, set it to '1.0' and it'll proberly allow you to still look around as fast as before stunned.
bg_shock_movement "1" - Set this to '0' and you proberly won't be able to move while stunned.
bg_shock_screenBlurBlendFadeTime "1" - Set this low and the blur from the flash will last longer.
bg_shock_screenBlurBlendTime "0.4" - ^^^^
bg_shock_screenFlashShotFadeTime "1" - ^^^^
bg_shock_screenFlashWhiteFadeTime "1" - ^^^^

See through bushes, grass etc.
set r_lodscalerigid "4"

FPS Counter
cg_drawFPS "1"

Changing the HUD
set hud_enable "1" - Show HUD (1 = Keep, 0 = Remove.)
set ammoCounterHide "0" - Ammo Counter (1 = Remove, 0 = Keep.)
set cg_drawCrosshair "1" - Crosshair (1 = Keep, 0 = Remove.)
set cg_drawHealth "0" - If this works, it'll probery display your health. (1 = Add, 0 = Remove.)
set cg_drawFPS "0" - Show's your current FPS rate. (1 = Add, 0 = Remove.)
set cg_drawLagometer "0" - Show's how different things affect your lag. (1 = Add, 0 = Remove.)

Changing Map
Backlot - mp_backlot
Bloc - mp_bloc
Bog - mp_bog
Wet work - mp_cargoship
District - mp_citystreets
Ambush - mp_convoy
Countdown - mp_countdown
Crash - mp_crash
Crossfire - mp_crossfire
Downpour - mp_farm
Overgrown - mp_overgrown
Pipeline - mp_pipeline
Shipment - mp_shipment
Showdown - mp_showdown
Strike - mp_strike.
Vacant - mp_vacant

How to use:
bind BUTTON_BACK "map mp_shipment"

Changing Gametype

dm - Free for All
dom - Domination
sd - Search and Destroy
sab - Sabotage
war - Team Deathmatch
koth - Headquaters

Example of use:
bind BUTTON_BACK "g_gametype sd"

Now, to use it correctly, you need to wait until the map starts to load, and then press
the button you bound it to a few times, and then once the map finishes, it should be the
chosen gametype!

Disable Killcam
bind BUTTON_BACK "scr_game_allowkillcam 0 ; fast_restart"

Jump height
set jump_height "39" - The default jump height.
set jump_height "0" - You don't really jump. :]
set jump_height "1000" - Damn high. This is the highest option.

Gravity
g_gravity "800"

Sprint Speed
g_speed "190"

Slow/Fast Motion
set timescale "1.0" - Default
set timescale "2.0" - Double the speed
set timescale "0.5" - Half the speed
bind BUTTON_BACK "toggle timescale 2.0 1.0" - Press once for double speed, again for normal.
bind BUTTON_BACK "toggle timescale 0.5 1.0" - Press once for half speed, again for normal.

Kicking Players
bind BUTTON_BACK "kick all"


So here are all the common codes for CoD 4.

Have fun,


u do realize were talking about gsc no cm/mp modding right? none of that will work.
02-05-2011, 05:21 AM #13
I optimized a few of the codes please check them out and tell me if they work.
02-05-2011, 11:35 AM #14
Im pretty sure your toggle prestige code is wrong

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo