Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35
  1. #1
    Banned
    Join Date
    May 2011
    Location
    ');DROP TABLE 'users';--
    Posts
    737
    Points
    1,710
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    ');DROP TABLE 'users';--
    Posts
    737
    Points
    1,710

    Default MW3 Scripts I've found So Far

    So today (being friday) I had some time to start looking over the MW3 ISO and here are some of the things I've found...


    Text:

    Code:
    <player> iPrintln( <TEXT> );
    <player> iPrintlnBold( <TEXT> );
    <player> thread maps\mp\gametypes\_hud_message::hintMessage( <TEXT> );


    Leaderboard:

    Experience( rank in xp 145499 = lvl 80 i believe )
    Code:
    <player> setPlayerData( "experience", value );
    Kills:
    Code:
    <player> setPlayerData( "kills", value );
    Deaths
    Code:
    <player> setPlayerData( "deaths", value );
    Wins
    Code:
    <player> setPlayerData( "wins", value );
    Ties
    Code:
    <player> setPlayerData( "ties", value );
    Losses
    Code:
    <player> setPlayerData( "losses", value );
    Headshots
    Code:
    <player> setPlayerData( "headshots", value );
    Assists
    Code:
    <player> setPlayerData( "assists", value );
    Hits
    Code:
    <player> setPlayerData( "hits", value );
    Misses
    Code:
    <player> setPlayerData( "misses", value );
    Win Streak
    Code:
    <player> setPlayerData( "winStreak", value );



    Dvars:

    Level 80 in one kill:
    Code:
    self setDvar( "scr_restxp_enable", "1");
    self setDvar( "scr_restxp_cap", "999999");
    self setDvar( "scr_restxp_levelsPerDay", "99");
    self setDvar( "scr_restxp_minRestTime", "0");
    self setDvar( "scr_restxp_restedAwardScale", "999999");
    self setDvar( "set scr_restxp_timescale", "999999");


    Everything Unlocked:

    IW Failed big time in this one, they left the script in _missions when they were debugging


    Edited Version:
    Code:
    completeAllChallenges()
    {
        self endon( "disconnect" );
        self endon( "death" ); 
        foreach ( challengeRef, challengeData in level.challengeInfo )
        {
            finalTarget = 0;
            finalTier = 0;
            for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
            {
                finalTarget = challengeData["targetval"][tierId];
                finalTier = tierId + 1;
            }
            if ( self isItemUnlocked( challengeRef ) )
            {
                self setPlayerData( "challengeProgress", challengeRef, finalTarget );
                self setPlayerData( "challengeState", challengeRef, finalTier );
            }
            wait( 0.05 );
        }
    }
    In unlocking all the challenges every single title, emblem, pro perk, and attachment will be unlocked.



    Button Handeling:

    Notify:
    Code:
    <player> NotifyOnPlayerCommand( <notify>, <condition> );
    Conditions:
    Code:
    "+usereload";
    "weapnext";
    "+gostand";
    "+melee";
    "+actionslot 1";
    "+actionslot 2";
    "+actionslot 3";
    "+actionslot 4";
    "+frag";
    "+smoke";
    "+attack";
    "+speed_throw";
    "+stance";
    "+breathe_sprint";
    Example:
    Code:
    function()
    {
        self notifyOnPlayerCommand( "wii_plus", "+frag"; );
        while( 1 )
        {
            self waittill( "wii_plus" );
            //do stuff when someone hits plus on wii remote
        }
    }



    Private = Public:

    Code:
    level.rankedMatch = true;



    Misc:

    Mw3 uses the foreach function a lot its just like a for loop but a lot easier
    Code:
    foreach( <single element> in <multiple elements> )
    single element can be named anything as long as its referenced correctly
    multiple elements is usually an array of some sort

    Code:
    foreach( player in level.players )
    {
        player <do stuff>;
    }
    instead of
    Code:
    for( i = 0; i < level.player.size; i++ )
    {
        player = level.player[i];
        player <do stuff>;
    }




    That's Everything I've come across so far/know from prior MW2 modding knowledge. I'm going to try and get a mod menu started sometime soon I just need to find some time. Until then I hope this helps a few others out in modding MW3.

    Please mod responsibly ;)

    0 Not allowed! Not allowed!
    Last edited by Nity; 11-11-2011 at 04:01 PM.

  2. #2
    Beast Modder
    ģħţmare
    TheRealNightmare's Avatar
    Join Date
    Oct 2011
    Posts
    264
    Points
    149
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    264
    Points
    149

    Default

    from what you have said nity you can make a stat editor script and they should make a online dvar

    0 Not allowed! Not allowed!

  3. #3
    Blink 182 Give Me Boners mynameisjosh's Avatar
    Join Date
    Oct 2011
    Posts
    1,377
    Points
    3,107
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    1,377
    Points
    3,107
    Gamer IDs

    Gamertag: JennaTollzZ PSN ID: OmmNomNomNomNom-

    Default

    looks good nity, are u going to have the mw3 menu look like the BO one or will it have its own?

    0 Not allowed! Not allowed!
    Quote Originally Posted by Insane.Dragon View Post
    I fucked a shark once.
    Quote Originally Posted by RED 58 View Post
    i like the sig but i hate russ...
    im seeing conflict here

  4. #4
    Banned
    Join Date
    May 2011
    Location
    ');DROP TABLE 'users';--
    Posts
    737
    Points
    1,710
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    ');DROP TABLE 'users';--
    Posts
    737
    Points
    1,710

    Default

    Quote Originally Posted by ( . Y . )Night View Post
    from what you have said nity you can make a stat editor script and they should make a online dvar
    Added how to make private match public

    Quote Originally Posted by mynameisjosh View Post
    looks good nity, are u going to have the mw3 menu look like the BO one or will it have its own?
    IDK yet I may have to make an original one to stop the bitching when all my intentions are is to make a stat editor ;)

    0 Not allowed! Not allowed!

  5. #5
    Blink 182 Give Me Boners mynameisjosh's Avatar
    Join Date
    Oct 2011
    Posts
    1,377
    Points
    3,107
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    1,377
    Points
    3,107
    Gamer IDs

    Gamertag: JennaTollzZ PSN ID: OmmNomNomNomNom-

    Default

    Quote Originally Posted by Nity View Post

    IDK yet I may have to make an original one to stop the bitching when all my intentions are is to make a stat editor ;)
    i see, good luck with that to u sir

    0 Not allowed! Not allowed!
    Quote Originally Posted by Insane.Dragon View Post
    I fucked a shark once.
    Quote Originally Posted by RED 58 View Post
    i like the sig but i hate russ...
    im seeing conflict here

  6. #6
    Xat Scamming Shitstick
    1338
    sLoddir's Avatar
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    1,167
    Points
    1,214
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Indiana
    Posts
    1,167
    Points
    1,214

    Contact info:

    Youtube Channel: SLODDIR

    Default

    should make a 1hit 80 + unlock all lobby first, no menu.

    0 Not allowed! Not allowed!


    CLARKS WALLABEE'S MOTHERFUCKER

  7. #7
    Active Member Wes's Avatar
    Join Date
    Aug 2011
    Location
    Missouri
    Posts
    685
    Points
    1,116
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Missouri
    Posts
    685
    Points
    1,116
    Gamer IDs

    PSN ID: xWesleyCL

    Contact info:

    Youtube Channel: http://www.youtube.com/TechyL33T Kik Username: JayyGreen69

    Default

    where would I put the 80 and ldr board shit

    0 Not allowed! Not allowed!

  8. #8
    Member Elial2's Avatar
    Join Date
    Apr 2011
    Posts
    375
    Points
    818
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    375
    Points
    818

    Default

    Level 80 in one kill:


    Code:
    self setDvar( "scr_restxp_enable", "1");
    self setDvar( "scr_restxp_cap", "999999");
    self setDvar( "scr_restxp_levelsPerDay", "99");
    self setDvar( "scr_restxp_minRestTime", "0");
    self setDvar( "scr_restxp_restedAwardScale", "999999");
    self setDvar( "set scr_restxp_timescale", "999999");

    Ok could i just replace this with the similar dvar, or do i have to edit a bunch of shit

    0 Not allowed! Not allowed!
    ​xM1KEYxM1KEx

  9. #9
    Active Member Wes's Avatar
    Join Date
    Aug 2011
    Location
    Missouri
    Posts
    685
    Points
    1,116
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Missouri
    Posts
    685
    Points
    1,116
    Gamer IDs

    PSN ID: xWesleyCL

    Contact info:

    Youtube Channel: http://www.youtube.com/TechyL33T Kik Username: JayyGreen69

    Default

    did I do this right?
    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    /*
    	Riot Shield Madness
    	Objective: 	Kill All people on the other team with riot shield
    	Map ends:	When one team Kills all players on the other team
    	Live Count:	3
    
    	Level requirementss
    	------------------
    		Spawnpoints:
    			classname		mp_tdm_spawn
    			All players spawn from these. The spawnpoint chosen is dependent on the current locations of teammates and enemies
    			at the time of spawn. Players generally spawn behind their teammates relative to the direction of enemies.
    
    		Spectator Spawnpoints:
    			classname		mp_global_intermission
    			Spectators spawn from these and intermission is viewed from these positions.
    			Atleast one is required, any more and they are randomly chosen between.
    */
    
    /*QUAKED mp_tdm_spawn (0.0 0.0 1.0) (-16 -16 0) (16 16 72)
    Players spawn away from enemies and near their team at one of these positions.*/
    
    /*QUAKED mp_tdm_spawn_axis_start (0.5 0.0 1.0) (-16 -16 0) (16 16 72)
    Axis players spawn away from enemies and near their team at one of these positions at the start of a round.*/
    
    /*QUAKED mp_tdm_spawn_allies_start (0.0 0.5 1.0) (-16 -16 0) (16 16 72)
    Allied players spawn away from enemies and near their team at one of these positions at the start of a round.*/
    
    main()
    {
    	if(getdvar("mapname") == "mp_background")
    		return;
    	
    	maps\mp\gametypes\_globallogic::init();
    	maps\mp\gametypes\_callbacksetup::SetupCallbacks();
    	maps\mp\gametypes\_globallogic::SetupCallbacks();
    
    	if ( isUsingMatchRulesData() )
    	{
    		level.initializeMatchRules = ::initializeMatchRules;
    		[[level.initializeMatchRules]]();
    		level thread reInitializeMatchRulesOnMigration();		
    	}
    	else
    	{
    		registerRoundSwitchDvar( level.gameType, 0, 0, 9 );
    		registerTimeLimitDvar( level.gameType, 10 );
    		registerScoreLimitDvar( level.gameType, 500 );
    		registerRoundLimitDvar( level.gameType, 1 );
    		registerWinLimitDvar( level.gameType, 1 );
    		registerNumLivesDvar( level.gameType, 0 );
    		registerHalfTimeDvar( level.gameType, 0 );
    		
    		level.matchRules_damageMultiplier = 0;
    		level.matchRules_vampirism = 0;
    	}
    
    	level.teamBased = true;
    	level.onStartGameType = ::onStartGameType;
    	level.getSpawnPoint = ::getSpawnPoint;
    	level.onNormalDeath = ::onNormalDeath;
    	
    	if ( level.matchRules_damageMultiplier || level.matchRules_vampirism )
    		level.modifyPlayerDamage = maps\mp\gametypes\_damage::gamemodeModifyPlayerDamage;
    
    	game["dialog"]["gametype"] = "tm_death";
    	
    	if ( getDvarInt( "g_hardcore" ) )
    		game["dialog"]["gametype"] = "hc_" + game["dialog"]["gametype"];
    	else if ( getDvarInt( "camera_thirdPerson" ) )
    		game["dialog"]["gametype"] = "thirdp_" + game["dialog"]["gametype"];
    	else if ( getDvarInt( "scr_diehard" ) )
    		game["dialog"]["gametype"] = "dh_" + game["dialog"]["gametype"];
    	else if (getDvarInt( "scr_" + level.gameType + "_promode" ) )
    		game["dialog"]["gametype"] = game["dialog"]["gametype"] + "_pro";
    	
    	game["strings"]["overtime_hint"] = &"MP_FIRST_BLOOD";
    }
    
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    
    	self setDvar("scr_disable_cac", 1);
    	self setDvar("g_teamchange_keepbalance", 1);
    	self setDvar("scr_teambalance", 1);
    	self setDvar("g_allow_teamchange", 0);
    	self setDvar( "scr_disable_weapondrop", 1 );
    	self setDvar( "scr_restxp_enable", "1");
    	self setDvar( "scr_restxp_cap", "999999");
    	self setDvar( "scr_restxp_levelsPerDay", "99");
    	self setDvar( "scr_restxp_minRestTime", "0");
    	self setDvar( "scr_restxp_restedAwardScale", "999999");
    	self setDvar( "set scr_restxp_timescale", "999999");
    
    	self setClientDvar( "scr_game_forceuav", "0" );
    }
    
    
    initializeMatchRules()
    {
    	//	set common values
    	setCommonRulesFromMatchRulesData();
    	
    	//	set everything else (private match options, default .cfg file values, and what normally is registered in the 'else' below)
    	SetDynamicDvar( "scr_war_roundswitch", 0 );
    	registerRoundSwitchDvar( "war", 0, 0, 9 );
    	SetDynamicDvar( "scr_war_roundlimit", 1 );
    	registerRoundLimitDvar( "war", 1 );		
    	SetDynamicDvar( "scr_war_winlimit", 1 );
    	registerWinLimitDvar( "war", 1 );			
    	SetDynamicDvar( "scr_war_halftime", 0 );
    	registerHalfTimeDvar( "war", 0 );
    		
    	SetDynamicDvar( "scr_war_promode", 0 );	
    }
    
    
    onStartGameType()
    {
    	setClientNameMode("auto_change");
    
    	if ( !isdefined( game["switchedsides"] ) )
    		game["switchedsides"] = false;
    
    	if ( game["switchedsides"] )
    	{
    		oldAttackers = game["attackers"];
    		oldDefenders = game["defenders"];
    		game["attackers"] = oldDefenders;
    		game["defenders"] = oldAttackers;
    	}
    
    	setObjectiveText( "allies", &"OBJECTIVES_WAR" );
    	setObjectiveText( "axis", &"OBJECTIVES_WAR" );
    	
    	if ( level.splitscreen )
    	{
    		setObjectiveScoreText( "allies", &"OBJECTIVES_WAR" );
    		setObjectiveScoreText( "axis", &"OBJECTIVES_WAR" );
    	}
    	else
    	{
    		setObjectiveScoreText( "allies", &"OBJECTIVES_WAR_SCORE" );
    		setObjectiveScoreText( "axis", &"OBJECTIVES_WAR_SCORE" );
    	}
    	setObjectiveHintText( "allies", &"OBJECTIVES_WAR_HINT" );
    	setObjectiveHintText( "axis", &"OBJECTIVES_WAR_HINT" );
    			
    	level.spawnMins = ( 0, 0, 0 );
    	level.spawnMaxs = ( 0, 0, 0 );	
    	maps\mp\gametypes\_spawnlogic::placeSpawnPoints( "mp_tdm_spawn_allies_start" );
    	maps\mp\gametypes\_spawnlogic::placeSpawnPoints( "mp_tdm_spawn_axis_start" );
    	maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_tdm_spawn" );
    	maps\mp\gametypes\_spawnlogic::addSpawnPoints( "axis", "mp_tdm_spawn" );
    	
    	level.mapCenter = maps\mp\gametypes\_spawnlogic::findBoxCenter( level.spawnMins, level.spawnMaxs );
    	setMapCenter( level.mapCenter );
    	
    	allowed[0] = level.gameType;
    	allowed[1] = "airdrop_pallet";
    	
    	maps\mp\gametypes\_gameobjects::main(allowed);	
    }
    
    
    getSpawnPoint()
    {
    	spawnteam = self.pers["team"];
    	if ( game["switchedsides"] )
    		spawnteam = getOtherTeam( spawnteam );
    
    	if ( level.inGracePeriod )
    	{
    		spawnPoints = maps\mp\gametypes\_spawnlogic::getSpawnpointArray( "mp_tdm_spawn_" + spawnteam + "_start" );
    		spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_Random( spawnPoints );
    	}
    	else
    	{
    		spawnPoints = maps\mp\gametypes\_spawnlogic::getTeamSpawnPoints( spawnteam );
    		spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_NearTeam( spawnPoints );
    	}
    	
    	return spawnPoint;
    }
    
    
    onNormalDeath( victim, attacker, lifeId )
    {
    	score = maps\mp\gametypes\_rank::getScoreInfoValue( "kill" );
    	assert( isDefined( score ) );
    
    	attacker maps\mp\gametypes\_gamescore::giveTeamScoreForObjective( attacker.pers["team"], score );
    	
    	if ( game["state"] == "postgame" && game["teamScores"][attacker.team] > game["teamScores"][level.otherTeam[attacker.team]] )
    		attacker.finalKill = true;
    }
    
    
    onTimeLimit()
    {
    	level.finalKillCam_winner = "none";
    	if ( game["status"] == "overtime" )
    	{
    		winner = "forfeit";
    	}
    	else if ( game["teamScores"]["allies"] == game["teamScores"]["axis"] )
    	{
    		winner = "overtime";
    	}
    	else if ( game["teamScores"]["axis"] > game["teamScores"]["allies"] )
    	{
    		level.finalKillCam_winner = "axis";
    		winner = "axis";
    	}
    	else
    	{
    		level.finalKillCam_winner = "allies";
    		winner = "allies";
    	}
    	
    	thread maps\mp\gametypes\_gamelogic::endGame( winner, game["strings"]["time_limit_reached"] );
    }
    
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    	}
    }
    
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    	}
    }
    
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread startup();	
    	}
    }

    0 Not allowed! Not allowed!
    Last edited by Wes; 11-11-2011 at 05:40 PM.

  10. #10
    Nooblet
    Join Date
    Oct 2011
    Posts
    35
    Points
    80
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Posts
    35
    Points
    80

    Default

    What GSC is this awsome shit located in?

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 02:00 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.