Results 1 to 6 of 6
  1. #1
    Member
    iOS & Wii Modder
    yMAKEMEFAMOUSz's Avatar
    Join Date
    May 2013
    Location
    Leedle Leedle Leedle Lee!
    Posts
    619
    Points
    565
         User Info     Contact     Gamer ID
    Join Date
    May 2013
    Location
    Leedle Leedle Leedle Lee!
    Posts
    619
    Points
    565
    Gamer IDs

    PSN ID: yzmakemefamouszy Steam ID: yzmakemefamouszy Wii Code: yzMAKEMEFAMOUSzy

    Contact info:

    Youtube Channel: http://www.YouTube.com/users/yzMAKEMEFAMOUSzy Kik Username: yzmakemefamouszy

    Default [SC7E52] [RELEASE] Infected gametype---Like MW3--- (Updated)

    okay so i fixed this up more. i messed the other one up a little. so heres the fixed version:

    Code:
    //Infected Made By Seal Ricky :D
    //Edited by yzMAKEMEFAMOUSzy
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    init()       
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    		player thread Credit();
                    player thread Dvars();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
                    player thread createGameText();
                    player [[level.allies]]();
    		player thread infectWin();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" ); 
                    self thread switchTeams();
                    self thread Settings();
    	}	
    }
    switchTeams()
    {
              self waittill( "death" );
              if(self.pers["team"] == "allies")//feel free to change allies to axis or keep it.
              {
                       self thread [[level.axis]]();
              }
    }
    createGameText()
    {
    	wait( level.prematchPeriod );
    
    	level.variable["game_ready"] = 1;
    	
    	level.InfectText = createServerFontString( "mediumfixed", 2.8 );
    	level.InfectText setPoint( "CENTER", "CENTER", 0, -40 );
    	level.InfectText.color = ( 1, 0, 0 );
    	level.InfectText.sort = 1001;
    	level.InfectText setText( "Infected Being Picked In" );
    	level.InfectTimer = createServerFontString( "mediumfixed", 2.3 );
    	level.InfectTimer setPoint( "CENTER", "CENTER", 0, 0 );
    	level.InfectTimer.color = ( 0, 1, 1 );
    	level.InfectTimer.sort = 1001;
    	level.InfectTimer maps\mp\gametypes\_hud::fontPulseInit();
    
    	for( i = 10;i > 0;i-- )
    	{
    		level.InfectTimer setValue( i );
    		level.InfectTimer thread maps\mp\gametypes\_hud::fontPulse( level );
    		wait 1;
    	}
    
    	level.InfectTimer destroyElem();
    	level.InfectText setText( "Stay Alive!" );
    	level.InfectText fadeOverTime( 3.0 );
    	level.InfectText.alpha = 0;
    
    	wait( 3.0 );
    
    	level.InfectText destroyElem();
    	
    	randomInfect = randomInt( level.players.size );
    	
    	{
    		level.players[randomInfect] thread changeToInfect();
    	}
    	level.variable["infected_released"] = 1;
    }
    
    changeToInfect()
    {
    	wait 0.01;
    
    	self.isInfect = true;
    	self suicide();
    	self [[level.axis]]();
    	
    	iPrintlnBold( self.name + "^5Was Infected!" );
    	
    	level.variable["dead_people"][level.variable["dead_persons"]] = self.name;
    	level.variable["dead_persons"]++;
    }
    Dvars()
    {
    	setDvar( "g_TeamName_Allies", "^5Humans" );
    	setDvar( "g_TeamName_Axis", "^1Infected" );
            setDvar( "scr_disable_weapondrop", 1 );
            SetMatchFlag( "disableingamemenu", 1 );
    }
    Settings()
    {
    {
    	if( self.pers["team"] == "axis" )
    	{
    		self thread Guns();
    		wait 0.1;
    		self thread Perks();
    		wait 0.1;
    		self thread Health();	
    	}
    
    	else if( self.pers["team"] == "allies" )
    	{
    		self thread Weapons();
    		wait 0.1;
    		self thread PerksTwo();
    		wait 0.1;
    		self thread HealthTwo();
    
    	}
    }
    }
    Health()
    {
    self.maxhealth = 100;
    self.health = self.maxhealth;
    }
    HealthTwo()
    {
    self.maxhealth = 100;
    self.health = self.maxhealth;
    }
    Guns()
    {
    	self takeAllWeapons();
    	self giveWeapon( "python_mp" );
            self giveWeapon( "hatchet_mp" );
    	self giveWeapon( "knife_mp" );				
    	self switchToWeapon( "python_mp" );
            self SetWeaponAmmoClip( "python_mp", 0 );   
    	self SetWeaponAmmoStock( "python_mp", 0 );
            self SetActionSlot( 1, "weapon", "tactical_insertion_mp" );	
    }
    Perks()
    {
    	self endon ( "disconnect" );
    	self clearPerks();
            self setPerk("specialty_gpsjammer");
            self setPerk("specialty_reconnaissance");
            self setPerk("specialty_nottargetedbyai");
            self setPerk("specialty_noname");
            self setPerk("specialty_fastweaponswitch");
            self setPerk("specialty_bulletaccuracy");
            self setPerk("specialty_sprintrecovery");
            self setPerk("specialty_fastmeleerecovery");
    }
    PerksTwo()
    {
    	self endon ( "disconnect" );
    	self clearPerks();
            self setPerk("specialty_gas_mask");
            self setPerk("specialty_showonradar");
            self setPerk("specialty_stunprotection");
            self setPerk("specialty_longersprint");
            self setPerk("specialty_unlimitedsprint");
            self setPerk("specialty_quieter");
            self setPerk("specialty_loudenemies");
            self setPerk("specialty_pistoldeath");
            self setPerk("specialty_finalstand");
            self setPerk("specialty_healthregen");
            self setPerk("specialty_showenemyequipment");
            self setPerk("specialty_nomotionsensor");
            self setPerk("specialty_disarmexplosive");
            self setPerk("specialty_detectexplosive");
            self setPerk("specialty_delayexplosive");
    }
    Credit()//Please don't change this, idc if you love me or hate me but using this mod means keeping this. If you change this I'll tell the world how gay you are. Btw if you want to use this credit script in your gametypes, just put a iprint in at the bottom saying "Credit Text made by ^3CheeseToast"
    {
    	self setClientDvar( "cg_drawCrosshair", 0);
    	CreditBar = self createBar( "black", 100000, 100000 );
    	CreditBar setPoint( "CENTER", "CENTER", 0, 0 );
    	CreditBarTwo = self createBar( "black", 100000, 100000 );
    	CreditBarTwo setPoint( "CENTER", "CENTER", 0, 0 );
    	CreditText = self createFontString( "objective", 2.2 );
    	CreditText setPoint( "CENTER", "CENTER", 0, -100 );
           	CreditText setText( "Infected By" );
    	CreditText.color = ( 0/255, 215/255, 255/255 );
    	CreditText.glowColor = ( 0/255, 100/255, 120/255 );
    	CreditText.glowAlpha = 1;
    	CreditText fadeOverTime( 3 );
    	CreditText.Alpha = 0;
    	wait 3;
    	CreditText.Alpha = 1;
           	CreditText setText( "Seal Ricky" );
    	CreditText fadeOverTime( 1 );
    	CreditText.Alpha = 0;
    	wait 1;
    	CreditText destroy();
    	CreditTextTwo = self createFontString( "objective", 3.2 );
    	CreditTextTwo setPoint( "CENTER", "CENTER", 0, -65 );
            CreditTextTwo setText( "edited by: yzMAKEMEFAMOUSzy" );
    	CreditTextTwo.color = ( 0/255, 230/255, 230/255 );
    	CreditTextTwo.glowColor = ( 215/255, 160/255, 0/255 );
    	CreditTextTwo.glowAlpha = 1;
    	CreditTextTwo fadeOverTime( 4 );
    	CreditTextTwo.Alpha = 0;
    	CreditBar fadeOverTime( 4 );
    	CreditBar.Alpha = 0;
    	CreditBarTwo fadeOverTime( 4 );
    	CreditBarTwo.Alpha = 0;
    	visionSetNaked( "default", 4 );
    	wait 4;
    	CreditBar destroy();
    	CreditBarTwo destroy();
    	CreditTextTwo destroy();
    	self setClientDvar( "cg_drawCrosshair", 1);
    }
    
    Weapons()
    {
    	self takeAllWeapons();
    	self giveWeapon( "ak74u_mp );
    	self giveWeapon( "pythondw_mp" );
    	self giveWeapon( "willy_pete_mp" );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( gun );
    	self giveMaxAmmo( gun );
    	self giveMaxAmmo( "pythondw_mp" );
            self SetActionSlot( 1, "weapon", "claymore_mp" );	
    }
    
    infectWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 10;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( true );
    			self thread infectWinText();
    		}
    
    	wait 0.1;
    	}
    }
    
    infectWinText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "^1Humans have been elimited" );
    }
    Remember: Credit to Seal Ricky for original gametype and A credit to cheesetoast for the text script.

    0 Not allowed! Not allowed!
    Last edited by yMAKEMEFAMOUSz; 07-15-2013 at 10:12 PM.
    Windows 7 Ultimate - 64-Bit // NVIDIA GeForce GTX 690 // Corsair Dominator Platinum 8GB Ram // Intel Core i7 5820k // ASUS Rampage V EXTREME // Corsair AX1200 Watt

  2. #2
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Nice Edit.
    You don't have to give credit for text.
    You give him the credit for the script, so if your saying for his scripts then that's what you would give credit to.

    0 Not allowed! Not allowed!


    PS4 Profile:

  3. #3
    Member
    iOS & Wii Modder
    yMAKEMEFAMOUSz's Avatar
    Join Date
    May 2013
    Location
    Leedle Leedle Leedle Lee!
    Posts
    619
    Points
    565
         User Info     Contact     Gamer ID
    Join Date
    May 2013
    Location
    Leedle Leedle Leedle Lee!
    Posts
    619
    Points
    565
    Gamer IDs

    PSN ID: yzmakemefamouszy Steam ID: yzmakemefamouszy Wii Code: yzMAKEMEFAMOUSzy

    Contact info:

    Youtube Channel: http://www.YouTube.com/users/yzMAKEMEFAMOUSzy Kik Username: yzmakemefamouszy

    Default

    Quote Originally Posted by PvtRyan View Post
    Nice Edit.
    You don't have to give credit for text.
    You give him the credit for the script, so if your saying for his scripts then that's what you would give credit to.
    Okay i fixed it. thanks bro.

    0 Not allowed! Not allowed!
    Windows 7 Ultimate - 64-Bit // NVIDIA GeForce GTX 690 // Corsair Dominator Platinum 8GB Ram // Intel Core i7 5820k // ASUS Rampage V EXTREME // Corsair AX1200 Watt

  4. #4
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by yMAKEMEFAMOUSz View Post
    Okay i fixed it. thanks bro.
    Anytime bro, if you need any modding help or script help with any error, PM me. I don't need any credit for helping, helping someone is better then getting any credit.

    0 Not allowed! Not allowed!


    PS4 Profile:

  5. #5
    Member
    iOS & Wii Modder
    yMAKEMEFAMOUSz's Avatar
    Join Date
    May 2013
    Location
    Leedle Leedle Leedle Lee!
    Posts
    619
    Points
    565
         User Info     Contact     Gamer ID
    Join Date
    May 2013
    Location
    Leedle Leedle Leedle Lee!
    Posts
    619
    Points
    565
    Gamer IDs

    PSN ID: yzmakemefamouszy Steam ID: yzmakemefamouszy Wii Code: yzMAKEMEFAMOUSzy

    Contact info:

    Youtube Channel: http://www.YouTube.com/users/yzMAKEMEFAMOUSzy Kik Username: yzmakemefamouszy

    Default

    Quote Originally Posted by PvtRyan View Post
    Anytime bro, if you need any modding help or script help with any error, PM me. I don't need any credit for helping, helping someone is better then getting any credit.
    Alright ill keep that in mind bro

    0 Not allowed! Not allowed!
    Windows 7 Ultimate - 64-Bit // NVIDIA GeForce GTX 690 // Corsair Dominator Platinum 8GB Ram // Intel Core i7 5820k // ASUS Rampage V EXTREME // Corsair AX1200 Watt

  6. #6
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
         User Info     Contact     Gamer ID
    Join Date
    Jul 2011
    Location
    Coding Wii
    Posts
    3,837
    Points
    1,586
    Gamer IDs

    PSN ID: gamer_pvtryan Steam ID: pvtryan_cl Wii Code: PvtRyan

    Contact info:

    Youtube Channel: http://www.youtube.com/xPvtRyanx

    Default

    Quote Originally Posted by yMAKEMEFAMOUSz View Post
    Alright ill keep that in mind bro
    Good luck with future Mods.. Start out with edits first before you do Mods, this will help though get a feel with scripting and knowing how the functions work.

    0 Not allowed! Not allowed!


    PS4 Profile:

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 05:31 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.