• The Definitive Guide To MW3 Hacks, Mods and Cheats In 2019!

    You are interested in MW3 Hacks, Mods, Cheats or Trainers. Check our guide! Click here!

Release Call of Duty: Modern Warfare 3 GSC Managed Code List

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,000
Reaction score
2,920
Points
1,103
Hey guys :handwaving:,
today I was thinking of our great sharing post in Black Ops 2 GSC modding times. So why not do that for MW3 as well. If you would like to add your own, just reply below.


IMPORTANT
You can get many codes and list from the official Infinity Loader discord:
You do not have permission to view link Log in or register now.


Lists
GSC Raw Dump


Functions

Toggle GodMode

C#:
godmode()
{
    if(!isDefined(self.godmode))
    {
        self.godmode = true;
        while(isDefined(self.godmode))
        {
            self.maxhealth = 9999;
            self.health    = self.maxhealth;
            wait .05;
        }
    }
    else
    {
        self.godmode   = undefined;
        self.maxhealth = 100;
        self.health    = self.maxhealth;
    }
}

Toggle UFO Mode
C#:
//INCLUDE: #include common_scripts\_destructible;

func_ufomode()
{
    if(!isDefined(self.gamevars["ufomode"]) || self.gamevars["ufomode"] == false)
    {
        self thread func_activeUfo();
        self.gamevars["ufomode"] = true;
        S("Press [{+frag}] To Fly");
    }
    else
    {   
        self notify("func_ufomode_stop");
        self unlink();
        self.gamevars["ufomode"] = false;
    }
    self iPrintln("UFO Mode " + toString(self.gamevars["ufomode"] ? "^2ON" : "^1OFF"));
}
func_activeUfo()
{
    self endon("func_ufomode_stop");
    UFO = spawn("script_model", self.origin);
    for(;;)
    {
        if(self FragButtonPressed())
        {
            self playerLinkTo(UFO);
            UFO moveTo(self.origin+vector_scal(anglesToForward(self getPlayerAngles()),20),.01);
        }
        else
        {
            self unlink();
        }
        wait .001;
    }
}

Give Weapon
C#:
func_giveWeapon(weapon) {
    self TakeWeapon(self GetCurrentWeapon());
    self GiveWeapon(weapon);
    self GiveMaxAmmo(weapon);
    self SwitchToWeapon(weapon);
    self iPrintln(weapon+" ^2Given");
}

Team Change
C#:
//INCLUDE #include maps/mp/gametypes/_teams
func_teamChange()
{
    self addToTeam( self.pers[ "team" ] == "allies" ? "axis" : "allies" );
    self iprintln("Team changed to ^5"+self.pers["team"]);
}

Change DVAR
C#:
setDvar(dvar, value)
{
    self setClientDvar(dvar, value);
}
 
Last edited:
Top