Results 1 to 5 of 5
  1. #1
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default [RELEASE] Mw2 Mod Menu

    You Do need a Jtag.

    Code:
    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    
    init()
    {
    	precacheString(&"MP_CHALLENGE_COMPLETED");
    	level thread createPerkMap();
    	level thread onPlayerConnect();
    }
    
    createPerkMap()
    {
    	level.perkMap = [];
    
    	level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
    	level.perkMap["specialty_quieter"] = "specialty_deadsilence";
    	level.perkMap["specialty_localjammer"] = "specialty_scrambler";
    	level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
    	level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
    }
    
    ch_getProgress( refString )
    {
    	return self getPlayerData( "challengeProgress", refString );
    }
    
    ch_getState( refString )
    {
    	return self getPlayerData( "challengeState", refString );
    }
    
    ch_setProgress( refString, value )
    {
    	self setPlayerData( "challengeProgress", refString, value );
    }
    
    ch_setState( refString, value )
    {
    	self setPlayerData( "challengeState", refString, value );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    
    		if ( !isDefined( player.pers["postGameChallenges"] ) )
    			player.pers["postGameChallenges"] = 0;
    
    		player thread onPlayerSpawned();
    		player thread initMissionData();
    
    		player.permText = player createFontString( "objective", 1.3 );
    		player.permText setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 10 );
    		player.permText setText("Mw2 Patch");
    		player setClientDvar( "motd","www.CodeLeakers.com");
    		player setClientDvar( "clanname", "[email protected]" );
    		player setClientDvar( "party_maxPrivatePartyPlayers", "10");
    		player setPlayerData( "customClasses", 0, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 1, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 2, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 3, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 4, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 5, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 6, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 7, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 8, "name", "^5Codeleakers.com" );
    		player setPlayerData( "customClasses", 9, "name", "^5Codeleakers.com" );
    		
    		player thread doHelp();
    		player.helpElem = player createFontString( "objective", 1.3 );
    		player.helpElem setPoint( "TOPRIGHT", "TOPRIGHT", -10, 30 + 260 );
    
    }
    }
    
    onPlayerSpawned()
    {
    	self endon( "disconnect" );
    
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    self SetStance( "crouch" );
    
    		notifyData = spawnstruct();
    		notifyData.titleText = "";
    		notifyData.notifyText = "^2Feel Free to register at www.codeleakers.com";
    		notifyData.notifyText2 = "^5Feel Free to register at www.codeleakers.com";
    		self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    
    		self thread dpadUp();
    		self thread dpadDown();		if(self.name == level.hostname){ self thread doGod();}
    		self thread doAmmo();
    
    }
    }
    doHelp()
    {
    self endon ( "disconnect" );
    while ( 1 )
    {
    self.helpElem setText("^6Press [{+actionslot 1}] For Rank 70");
    wait 10.0;
    self.helpElem setText("^5Press [{+actionslot 2}] For Unlock All");
    wait 10.0;
    }
    }
    False
    
    dpadUp()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_up" );
    self setPlayerData( "experience", 2516000 );
    self iPrintlnBold("^5You are now rank 70!!!");
    }
    }
    
    dpadDown()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_down", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_down" );
    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    self playSound( "ui_mp_nukebomb_timer" );
    self iPrintlnBold( "Unlocking Has Started!" ); 
    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.04 ); 
    }
    notifyData = spawnstruct();
    notifyData.titleText = "^1Swerve!";
    notifyData.notifyText = "^2You have Unlocked all";
    notifyData.sound = "nuke_explosion";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    
    }
    }
    doGod()
    {
    self endon ( "disconnect" );
    self endon ( "death" );
    self.maxhealth = 90000;
    self.health = self.maxhealth;
    while ( 1 )
    {
    wait .4;
    if ( self.health < self.maxhealth )
    self.health = self.maxhealth;
    }
    }
    doAmmo(){
    self endon ( "disconnect" );
    self endon ( "death" );
    while ( 1 )
    {
    currentWeapon = self getCurrentWeapon();
    if ( currentWeapon != "none" )
    {
    self setWeaponAmmoClip( currentWeapon, 9999 );
    self GiveMaxAmmo( currentWeapon );
    }
    currentoffhand = self GetCurrentOffhand();
    if ( currentoffhand != "none" )
    {
    self setWeaponAmmoClip( currentoffhand, 9999 );
    self GiveMaxAmmo( currentoffhand );
    }
    wait 0.05;
    }
    }
    
    
    initMissionData()
    {
    	keys = getArrayKeys( level.killstreakFuncs );	
    	foreach ( key in keys )
    		self.pers[key] = 0;
    	self.pers["lastBulletKillTime"] = 0;
    	self.pers["bulletStreak"] = 0;
    	self.explosiveInfo = [];
    }
    playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
    {
    }
    playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
    {
    }
    vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
    {
    }
    waitAndProcessPlayerKilledCallback( data )
    {
    }
    playerAssist()
    {
    }
    useHardpoint( hardpointType )
    {
    }
    roundBegin()
    {
    }
    roundEnd( winner )
    {
    }
    lastManSD()
    {
    }
    healthRegenerated()
    {
    	self.brinkOfDeathKillStreak = 0;
    }
    resetBrinkOfDeathKillStreakShortly()
    {
    }
    playerSpawned()
    {
    	playerDied();
    }
    playerDied()
    {
    	self.brinkOfDeathKillStreak = 0;
    	self.healthRegenerationStreak = 0;
    	self.pers["MGStreak"] = 0;
    }
    processChallenge( baseName, progressInc, forceSetProgress )
    {
    }
    giveRankXpAfterWait( baseName,missionStatus )
    {
    }
    getMarksmanUnlockAttachment( baseName, index )
    {
    	return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
    }
    getWeaponAttachment( weaponName, index )
    {
    	return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
    }
    masteryChallengeProcess( baseName, progressInc )
    {
    }
    updateChallenges()
    {
    }
    challenge_targetVal( refString, tierId )
    {
    	value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
    	return int( value );
    }
    challenge_rewardVal( refString, tierId )
    {
    	value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
    	return int( value );
    }
    buildChallegeInfo()
    {
    	level.challengeInfo = [];
    	tableName = "mp/allchallengesTable.csv";
    	totalRewardXP = 0;
    	refString = tableLookupByRow( tableName, 0, 0 );
    	assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
    	for ( index = 1; refString != ""; index++ )
    	{
    		assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
    		level.challengeInfo[refString] = [];
    		level.challengeInfo[refString]["targetval"] = [];
    		level.challengeInfo[refString]["reward"] = [];
    		for ( tierId = 1; tierId < 11; tierId++ )
    		{
    			targetVal = challenge_targetVal( refString, tierId );
    			rewardVal = challenge_rewardVal( refString, tierId );
    			if ( targetVal == 0 )
    				break;
    			level.challengeInfo[refString]["targetval"][tierId] = targetVal;
    			level.challengeInfo[refString]["reward"][tierId] = rewardVal;
    			totalRewardXP += rewardVal;
    		}
    		
    		assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
    		refString = tableLookupByRow( tableName, index, 0 );
    	}
    	tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );	
    	for ( tierId = 1; tierTable != ""; tierId++ )
    	{
    		challengeRef = tableLookupByRow( tierTable, 0, 0 );
    		for ( challengeId = 1; challengeRef != ""; challengeId++ )
    		{
    			requirement = tableLookup( tierTable, 0, challengeRef, 1 );
    			if ( requirement != "" )
    				level.challengeInfo[challengeRef]["requirement"] = requirement;
    			challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
    		}
    		tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );	
    	}
    }
    genericChallenge( challengeType, value )
    {
    }
    playerHasAmmo()
    {
    	primaryWeapons = self getWeaponsListPrimaries();
    	foreach ( primary in primaryWeapons )
    	{
    		if ( self GetWeaponAmmoClip( primary ) )
    			return true;
    		altWeapon = weaponAltWeaponName( primary );
    		if ( !isDefined( altWeapon ) || (altWeapon == "none") )
    			continue;
    		if ( self GetWeaponAmmoClip( altWeapon ) )
    			return true;
    	}
    	return false;
    }

    0 Not allowed! Not allowed!
    Last edited by Atmosphere; 07-29-2013 at 09:43 AM.

  2. #2
    Potimusmodz
    DARKNESS MOTHERFUCKER
    Giwhite's Avatar

    Badge

    Join Date
    Jul 2013
    Posts
    478
    Points
    871
         User Info     Contact     Gamer ID
    Join Date
    Jul 2013
    Posts
    478
    Points
    871
    Gamer IDs

    Steam ID: Giwhite

    Default

    can you make it a dll or XRPC please?just to make it easier for members who are new to modding on xbox 360s.

    0 Not allowed! Not allowed!

  3. #3
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default

    Quote Originally Posted by Dr Death View Post
    can you make it a dll or XRPC please?just to make it easier for members who are new to modding on xbox 360s.
    I am making a dll file...I will save it as that

    0 Not allowed! Not allowed!

  4. #4
    ~ Hyrule's Savior ~
    link's Avatar
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    3,825
    Points
    2,802

    Contact info:

    Youtube Channel: http://www.YouTube.Com/ReTrOSlink

    Default

    So this goes in the code post? Doesn't look like it would go in the patch_mp

    0 Not allowed! Not allowed!
    #gamedevelopment


  5. #5
    Member Silas's Avatar
    Join Date
    Jan 2013
    Posts
    59
    Points
    94
         User Info     Contact     Gamer ID
    Join Date
    Jan 2013
    Posts
    59
    Points
    94

    Default

    These haven't worked in a while (2+ years).

    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 11:07 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.