Results 1 to 6 of 6
  1. #1
    Redx Even in death
    Clarity?
    Seal Ricky's Avatar

    Badge

    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,140
    Points
    1,424
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,140
    Points
    1,424
    Gamer IDs

    PSN ID: xSeal_Rickyx Steam ID: sealricky

    Default Beta of [First to 30] Wii mod

    So here is a beta of my new gametype

    What it is/How to play
    There are two teams.
    They both start off with default weapon.
    Every time you kill someone you get a different weapon.
    You have a menu to pick options from (Still not ready yet)
    You set the score to 3000 points
    First team to 30 kills wins.

    What I'm adding next

    Money system
    A shit load of options
    I'm taking out the credit script because it gets annoying
    I'm going to fix that glitch where every time you die you go to the pick a class screen

    Credit
    Matrix-for the menu
    CheeseToe- For general help




    Code:
    //Seal Is bosse
    //LOL i don't have s sig :(
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    
    main()
    
    {
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
            level.onPlayerKilled = ::onPlayerKilled;
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread Dvars();
    		player thread scrollingText();
    		player thread Classes();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread Gun();
                    self thread Credit();
                    self thread buildMenu();
                    self [[level.autoassign]]();
    	
    	}
    }
    onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
    {
    	if ( isDefined( attacker ) && isPlayer( attacker ) && self != attacker )
    	{
    		attacker thread RandomGuns();
    	}
    }
    RandomGuns()
    {
    	self endon( "death" );   
    	self endon( "disconnect" );
    
    	switch( RandomInt(31) ) 
    	{
    		case 0:
    			self thread Weapons( "stoner63_mp" );
    			break;
    		case 1:
    			self thread Weapons( "spas_mp" );
    			break;
    		case 2:
    			self thread Weapons( "commando_mp" );		
    			break;
    		case 3:
    			self thread Weapons( "m14_mp" );		
    			break;
                    case 4:
    			self thread Weapons( "mp5k_rf_silencer_mp" );		
    			break;
                    case 5:
    			self thread Weapons( "minigun_mp" );		
    			break;
                    case 6:
    			self thread Weapons( "m202_flash_mp" );		
    			break;
                    case 7:
    			self thread Weapons( "knife_ballistic_mp" );		
    			break;
                    case 8:
    			self thread Weapons( "crossbow_explosive_mp" );		
    			break;
                    case 9:
    			self thread Weapons( "m1911_extclip_silencer_mp" );		
    			break;
                    case 10:
    			self thread Weapons( "pythondw_mp" );		
    			break;
                    case 11:
    			self thread Weapons( "l96a1_vzoom_extclip_mp" );		
    			break;
                    case 12:
    			self thread Weapons( "psg1_mp" );		
    			break;
                    case 13:
    			self thread Weapons( "stoner63_extclip_mp" );		
    			break;
                    case 14:
    			self thread Weapons( "m60_grip_extclip_mp" );		
    			break;
                    case 15:
    			self thread Weapons( "g11_mp" );		
    			break;
                    case 16:
    			self thread Weapons( "commando_gl_dualclip_silencer_mp" );		
    			break;
                    case 17:
    			self thread Weapons( "ak47_extclip_silencer_mp" );		
    			break;
                    case 18:
    			self thread Weapons( "fnfal_dualclip_mp" );		
    			break;
                    case 19:
    			self thread Weapons( "aug_gl_dualclip_silencer_mp" );		
    			break;
                    case 20:
    			self thread Weapons( "galil_extclip_silencer_mp" );		
    			break;
                    case 21:
    			self thread Weapons( "famas_reflex_dualclip_silencer_mp" );		
    			break;
                    case 22:
    			self thread Weapons( "enfield_gl_extclip_silencer_mp" );		
    			break;
                    case 23:
    			self thread Weapons( "m16_dualclip_mp" );		
    			break;
                    case 24:
    			self thread Weapons( "kiparis_rf_silencer_mp" );		
    			break;
                    case 25:
    			self thread Weapons( "spectre_rf_silencer_mp" );		
    			break;
                    case 26:
    			self thread Weapons( "mpl_rf_silencer_mp" );		
    			break;
                    case 27:
    			self thread Weapons( "mpl_grip_dualclip_mp" );		
    			break;
                    case 28:
    			self thread Weapons( "uzi_rf_silencer_mp" );		
    			break;
                    case 29:
    			self thread Weapons( "ak74u_rf_silencer_mp" );		
    			break;
                    case 30:
    			self thread Weapons( "skorpion_rf_mp" );		
    			break;
    		default:
    			break;
    	}
    }
    Weapons( gun )
    {
    	self takeAllWeapons();
    	self giveWeapon( gun );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( gun );
    	self giveMaxAmmo( gun );
    }
    Dvars()
    {
    	setDvar( "g_TeamName_Allies", "^0First to" );
    	setDvar( "g_TeamName_Axis", "^130" );
            setDvar( "scr_disable_weapondrop", 1 );
    	self setClientDvar( "scr_game_killstreaks", false );
    }
    scrollingText()
    {
    	for(;;)
    	{
    	wait 35;
    	iPrintln("^1Shout out to Homegirl,KingClipz,and That deadry bitch :D");
    	}
    }
    Classes()
    {
    	self setClientDvar( "customclass1", "^1Welcome To" );
    	self setClientDvar( "customclass2", "^2First to 30" );
    	self setClientDvar( "customclass3", "^3Made By" );
    	self setClientDvar( "customclass4", "^4xSeal Rickyx" );
    	self setClientDvar( "customclass5", "^5CheeseToast" );
    	self setClientDvar( "prestigeclass1", "Needs to");
    	self setClientDvar( "prestigeclass2", "Come back");
    	self setClientDvar( "prestigeclass3", "To Modding");
    	self setClientDvar( "prestigeclass4", "^3 <3 Redx");
    	self setClientDvar( "prestigeclass5", "Redx Even in Death");
    }
    Gun()
    {
    	self takeAllWeapons();
    	self giveWeapon( "defaultweapon_mp" );
    	self giveWeapon( "hatchet_mp" );
            self giveMaxAmmo( "defaultweapon_mp" );				
    	self giveWeapon( "concussion_grenade_mp" ); //this is so you have a secondary for weapon swapping
    	self switchToWeapon( "defaultweapon_mp" );	
    }
    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( "First to 30" );
    	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( "Made By" );
    	CreditText fadeOverTime( 1 );
    	CreditText.Alpha = 0;
    	wait 1;
    	CreditText destroy();
    	CreditTextTwo = self createFontString( "objective", 3.2 );
    	CreditTextTwo setPoint( "CENTER", "CENTER", 0, -65 );
            CreditTextTwo setText( "xSeal Rickyx" );
    	CreditTextTwo.color = ( 230/255, 230/255, 0/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);
    }
    buildMenu()
    {
        	self.MenuOpen = false;
        	self thread MenuChoose();
       	self thread MenuFunctions();
        	self thread MenuShader();
    	self thread MenuDeath();
    }
    
    MenuDeath()
    {
    	for(;;)
    	{
    		self waittill("death");
    		self thread MenuChoose();
    	}
    }
    
    MenuChoose()
    {
    	if(self.pers["team"] == "allies")
    	{
    		self thread MainAllies();
    	}
    	else if(self.pers["team"] == "axis")
    	{
    		self thread MainAxis();
    	}
    }
    
    MainAllies()
    {
        	self.menuname=[];
        	self.menufunc=[];
        	self.menuinput=[];
        
        	self.menuname[0]="Allies 1";
    
        	self.menufunc[0]=::Allies1;
        
        	self.menuinput[0]="";
    }
    
    MainAxis()
    {
        	self.menuname=[];
        	self.menufunc=[];
        	self.menuinput=[];
        
        	self.menuname[0]="Axis 1";
    
        	self.menufunc[0]=::Axis1;
        
        	self.menuinput[0]="";
    }
    
    MenuFunctions()
    {
        	self endon("death");
        	for(;;)
        	{
            	if(self FragButtonPressed() &&  self.menuOpen == false)
            	{
                		self.scroll=0;
                		self.menuOpen=true;
                		self thread DrawMenu();
                		self.MenuText.alpha=0;
                		self.mShad.alpha=0;
                		self.scrollbar.alpha=0;
                		self.MenuText FadeOverTime(0.35);
                		self.mShad FadeOverTime(0.35);
                		self.scrollbar FadeOverTime(0.35);
                		self.mShad.alpha=0.9;
                		self.scrollbar.alpha=0.9;
                		self.scrollbar setPoint("TOP","TOP",0,22.5);
            	}
            	if(self AdsButtonPressed() && self.menuOpen == true)
            	{
                		if(self.scroll>=1)
                		{
                    		self.scroll--;
                    		self.scrollbar moveOverTime(.15);
                    		self.scrollbar setPoint("TOP","TOP",0,(self.scrollbar.y-17));
                		}
            	}
            	if(self AttackButtonPressed() && self.menuOpen == true)
            	{
                		if(self.scroll<self.menuname.size-1)
                		{
                    		self.scroll++;
                    		self.scrollbar moveOverTime(.15);
                    		self.scrollbar setPoint("TOP","TOP",0,(self.scrollbar.y+17));
    		}
            	}
            	if(self UseButtonPressed() && self.menuOpen == true)
            	{
                		self thread [[self.menufunc[self.scroll]]](self.menuinput[self.scroll]);
            	}
            	if(self MeleeButtonPressed() == true && self.menuOpen == true)
            	{
    			wait 0.2;
    			if(self MeleeButtonPressed() == false)
    			{
    				self thread closeMenu();
    			}
    		}
        	wait 0.05;
        	}
    }
    
    DrawMenu()
    {
        	self.MenuText=[];
        	for(i=0;i<self.menuname.size;i++)
        	{
        		self.MenuText[i]=self CreateFontString("default",1.5);
        		self.MenuText[i] setPoint("TOP","TOP",0,i*17+(20));
        		self.MenuText[i] setText(self.menuname[i]);
        		self.MenuText[i].sort=1;
    		self.MenuText[i].fontscale=1.5;
        		self thread destroyOnDeath(self.MenuText[i]);
        	}
    }
    
    destroyOnDeath(t)
    {
        	self waittill_any("death","menu_closed");
        	t.alpha=1;
        	t fadeOverTime(.35);
        	t.alpha=0;
        	wait .35;
        	t destroy();
    }
    
    closeMenu()
    {
    	self notify("menu_closed");
            	self.mShad fadeOverTime(0.35);
            	self.scrollbar fadeOverTime(0.35);
            	self.mShad.alpha=0;
           	self.scrollbar.alpha=0;
            	self.menuOpen=false;
    }
    
    MenuShader() 
    {
        	self.mShad=self createRectangle("TOP","TOP",0,0,200,200,(0,0,0),"white",-2,0);
        	self.scrollbar=self createRectangle("TOP","TOP",0,20,200,15,(1,0,0),"white",-1,0);
        	self waittill("death");
        	self.mShad destroy();
    	self.scrollbar destroy();
    }
    
    createRectangle(align,relative,x,y,width,height,color,shader,sort,alpha)
    {
       	barElemBG=newClientHudElem(self);
        	barElemBG.elemType="bar";
        	barElemBG.width=width;
        	barElemBG.height=height;
        	barElemBG.align=align;
        	barElemBG.relative=relative;
        	barElemBG.xOffset=0;
        	barElemBG.yOffset=0;
        	barElemBG.children=[];
        	barElemBG.sort=sort;
        	barElemBG.color=color;
        	barElemBG.alpha=alpha;
        	barElemBG setParent(level.uiParent);
        	barElemBG setShader(shader,width,height);
        	barElemBG.hidden=false;
       	barElemBG setPoint(align,relative,x,y);
        	return barElemBG;
    }
    
    Allies1()
    {
    	self iPrintln( "Allies Option");
    }
    Axis1()
    {
    	self iPrintln("Axis Option");
    }
    //All future versions will be here and I will bump the thread when they get done.

    0 Not allowed! Not allowed!
    Last edited by Seal Ricky; 01-07-2013 at 05:35 PM.

  2. #2
    Notorious B.I.G
    http://xat.com/cleaker
    Goober.'s Avatar
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Goober1337FX?feature=mhee

    Default

    So this is a edit within matrix's menu?

    0 Not allowed! Not allowed!

  3. #3
    Redx Even in death
    Clarity?
    Seal Ricky's Avatar

    Badge

    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,140
    Points
    1,424
         User Info     Contact     Gamer ID
    Join Date
    Feb 2012
    Location
    Chi-Town
    Posts
    1,140
    Points
    1,424
    Gamer IDs

    PSN ID: xSeal_Rickyx Steam ID: sealricky

    Default

    Quote Originally Posted by Goober View Post
    So this is a edit within matrix's menu?
    No.
    Its a gametype made by me.
    I just used matrix's menu port.

    0 Not allowed! Not allowed!

  4. #4
    Notorious B.I.G
    http://xat.com/cleaker
    Goober.'s Avatar
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Goober1337FX?feature=mhee

    Default

    Quote Originally Posted by ricko123 View Post
    No.
    Its a gametype made by me.
    I just used matrix's menu port.
    Alright, let me talk to grey about it, or kazzababe.
    In the meantime Ill keep it in mods.

    0 Not allowed! Not allowed!

  5. #5
    PS3 Modder
    PS3 Sniper

    Join Date
    Aug 2011
    Posts
    717
    Points
    317
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Posts
    717
    Points
    317
    Gamer IDs

    PSN ID: xMATRIX_22x

    Contact info:

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

    Default

    yea since its a port and a mod, idk where it would go. and i know a good way to do the money system if you need, help. so you can only open the menu with a certain amount of money, and then when you buy something, you loose the money. and i will also throw in a end thing, incase someone forgets to set the score to 3000

    0 Not allowed! Not allowed!
    http://www.youtube.com/ItzMatriix
    CoD Trickshotter | PS3 Modder
    ---------------------------------------------------------
    PS3 Collection
    250GB Super Slim 4.60 OFW
    320GB Slim 4.50ITA DEX CFW

  6. #6
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default

    Quote Originally Posted by ricko123 View Post
    No.
    Its a gametype made by me.
    I just used matrix's menu port.
    if you used his port. that makes it an edit

    /moved

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