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

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
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:
Please, Log in or Register to view URLs content!


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