Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jan 2015
    Posts
    71
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    71
    Points
    138

    Contact info:

    Youtube Channel: http://www.youtube.com/user/nicisthatdeal

    Default [SC7E52]mp Raygun 4 all



    cred to JellyInjector for raygun i just made it so all players can have it and i chang the loadfx to ("misc/fx_equip_tac_insert_light_red") and dont chang the guns
    or you will get
    G_spawn error : no free entities
    win you shoot
    sorry 4 crap vid and nuketown is bord i made it 4 but host has no raygun
    can be played on most maps
    nova gas is nuke explosion and i owe some creds will add win i get all right
    and cred to Dr.GiggleZ for his help
    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    main()
    {
    	thread init();
    }
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	level.onPlayerKilled = ::onPlayerKilled;
    	setDvar( "didyouknow", "^3KrooKlyN's ^2Gametype^1 Edit" );
    	level thread doSpawner();
    	level thread spawnBox();
    	level thread SpawnDoor();
    	level thread SpawnWindow();
    	
    	level.matchHasntStarted = 1;
    	wait level.prematchPeriod;
    	level.matchHasntStarted = 0;
    
    	
    	wait 2;
    
    	level.fx_tabun_0 = level._effect["fx_fire_player_sm_smk_2sec"];
    	level.fx_tabun_1 = level._effect["character_fire_death_sm"];
    	level.fx_tabun_2 = level._effect["character_fire_death_torso"];
    	level.fx_tabun_3 = "napalmground_sm_mp";
    	level.fx_tabun_single = "napalmground_lg_mp";
    	PreCacheItem( level.fx_tabun_0 );
    	PreCacheItem( level.fx_tabun_1 );
    	PreCacheItem( level.fx_tabun_2 );
    	PreCacheItem( level.fx_tabun_3 );
    	PreCacheItem( level.fx_tabun_single );	
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		player thread onPlayerSpawned();
    		//player thread doVision();
    	}
    }
    onPlayerConnected()
    {    
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread checkDistance();
    		player thread DoMoney();
    		player thread doIntro();
    	}
    }
    doIntro()
    {
    	self waittill( "spawned_player" );
    	while(level.matchHasntStarted)
    		wait 0.1;
    	wait 0.8;
    	self thread scrollFadeText( 4, "CENTER", "CENTER", 0, 0, "", "KrooKlyN's Raygun Fight" );
    }
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread spawnStuff();
    		self thread humanHealth();
    		self thread ShowAmount();
    		self thread RayGun();
    	}
    }
    scrollFadeText( fontscale, pos1, pos2, x, y, color, text )
    {
    	message = [];
    	txt = GetSubStr(text,0);
    	for(i=0;i<txt.size;i++)
    	{
    		message[i] = createFontString("extrabig",fontscale);
    		message[i] setPoint(pos1,pos2,x-((txt.size/2)*(fontscale*6))+((fontscale*6)*i),y);
    		message[i].glow = 1; 
    		message[i].glowColor = ( 1, 0, 1 ); 
    		message[i].glowAlpha = 1; ; 
    		message[i] setText(color+txt[i]);
    		message[i].alpha = 0;
    	}
    	for(i=0;i<message.size;i++)
    	{
    		message[i] doFade(0.3,1);
    		wait 0.3;
    		message[i] doFade(0.5,0);
    	}
    	wait 0.7;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(1,1);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(2,0);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] destroy();
    }
    
    doFade( time, alpha )
    {
    	self FadeOverTime(time);
    	self.alpha = alpha;
    }
    Timer()
    {
            self endon ( "disconnect" );
    
            displayText = self createFontString( "objective", 4.6 );
            displayText setPoint( "CENTER", "TOP",0, -15 );
            displayText.glow = 1; 
            displayText.glowColor = ( 2, 4, 6 ); 
            displayText.glowAlpha = 1; ; 
    
            for( ;; )
            { 
            displayText setText("^0KrooKlyN's ^1Raygun ^3Fight");
            wait 0.1;
            displayText setText("^1KrooKlyN's ^3Raygun ^0Fight");
            wait 0.1;
    	displayText setText("^3KrooKlyN's ^0Raygun ^1Fight");
            wait 0.1;
            displayText setText("^1KrooKlyN's ^3Raygun ^0Fight");
            wait 0.1;                                             
           }
    }
    onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
    {
    	if ( isDefined( attacker ) && isPlayer( attacker ) && self != attacker )
    	{
    		attacker thread DeadP();
    	}
    }
    DeadP()
    {
    	self.money += 125;
    }
    spawnStuff()
    {	
    	
    	self.maxhealth = 300;
    	self.health = self.maxhealth;
    }
    ShowAmount()
    {
    	self endon ( "death" );
    	self.amount = self createFontString( "default", 1.5 );
    	self.amount setPoint( "LEFT", "LEFT", -10, -50 );
    	for(;;)
    	{
    		self.amount setText( "^3$Money$: ^1"+ self.money );
    		wait 0.5;
    	}
    }
    RayGun()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    	self takeAllWeapons();
    	self giveWeapon( "frag_grenade_mp" ); 					
    	self giveWeapon( "tabun_gas_mp" );
    	self giveWeapon( "knife_ballistic_mp" );
    	self giveWeapon( "knife_mp" );
    	self GiveWeapon( "ithaca_mp" );
    	self switchToWeapon( "ithaca_mp" );
    	self giveMaxAmmo( "ithaca_mp" );
    	self SetWeaponAmmoStock( "tabun_gas_mp", 2 );
    	for(;;)
    	{
    		self waittill("weapon_fired");
    		self thread Rayz(self getTagOrigin("tag_eye"), aim(), self GetPlayerAngles() );
    	}
    }
    Rayz(start, end, angle )
    {
    	dot = loadfx("misc/fx_equip_tac_insert_light_red");
    	for(i=0;;i++)
    	{
    		org = start+(anglesToForward(angle)*(i*13));
    		playfx(dot,org);
    		if(distance(org,end) < 7 || i > 165)
    		{
    			radiusdamage(org,100,75,25,self);
    			break;
    		}
    	}
    }
    aim()
    {
    	location = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
    	return location;
    }
    fx_fucntion(input)
    {
    	self endon("death");
    	self endon("disconnect");
    	self endon("fx_fucntion_stop");
    	level.fx_effect=loadfx(input);
    	for(;;)
    	{
    		self waittill("weapon_fired");
    		start=self gettagorigin("tag_eye");
    		end=anglestoforward(self getPlayerAngles())* 1000000;
    		SPLOSIONlocation=BulletTrace(start,end,true,self)["position"];
    		effect=spawnFx(level.fx_effect,SPLOSIONlocation);
    		triggerFx(effect);
    	}
    	wait 0.1;
    }
    DoMoney()
    {
    	self.money = 5500;
    }
    humanHealth()
    {
    	self.healthBar = self createBar( ( 1, 1, 1 ), 200, 13 );
    	self.healthBar setPoint( "CENTER", "BOTTOM", 0, -4 );
    	self.healthText = self createFontString( "objective", 1.5 );
    	self.healthText setPoint( "CENTER", "BOTTOM", 0, -20 );
    	self.healthText setText( "^1Max Health: " + self.maxhealth);
    	for(;;)
    	{
    		self.healthBar updateBar( self.health / self.maxhealth );
    		wait 0.001;
    	}
    }
    doSpawner() 
    {
    	level.bunkerrr[0] = spawnRow( -1228, 808, 500 );
    	level.bunkerrr[1] = spawnRow( -1193, 873, 500 );
    	level.bunkerrr[2] = spawnRow( -1158, 938, 500 );
    	level.bunkerrr[3] = spawnRow( -1123, 1003, 500 );
    	level.bunkerrr[4] = spawnRow( -1088, 1068, 500 );
    	level.bunkerrr[6] = spawnRow( -1228, 808, 535 );
    	level.bunkerrr[7] = spawnRow( -1088, 1068, 535 );
    	level.bunkerrr[8] = spawnRow( -1228, 808, 570 );
    	level.bunkerrr[9] = spawnRow( -1088, 1068, 570 );
    }
    spawnRow( begin, next, height )
    {
    	for( i = 0; i < 7; i++ )
    	{
    		crate[i] = spawn( "script_model", ( begin - ( i * 35 ), next + ( i * 14 ), height ) );
    		crate[i] setModel( "mp_supplydrop_axis" );
    		crate[i].angles = ( 0, 156, 0 );
    		wait 0.01;
    	}
    }
    doMVars() 
    {
    	self endon ( "disconnect" );	
    	
    	self setPerk("specialty_lightweight");
    }
    doVision()
    {
    	self setClientDvar( "r_filmTweakInvert", "0" );
    	self setClientDvar( "r_filmUseTweaks", "1" );
    	self setClientDvar( "r_filmTweakEnable", "1" );
    	self setClientDvar( "r_filmTweakLightTint", "0 0 0" );
    	self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
    	self setClientDvar( "r_filmTweakHue", "0 0 0" );
    }
    checkDistance() 
    {       
    	while( 1 )
    	{
    		wait .01;
    
    	 	if( distance( self.origin, level.mBox.origin ) < 150 )
    		{
    			self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] To Go To SkyBase" );
    
    			for(;;)
    			{
    				if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 150 && self.money >= 250 )
    				{
    					self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
    					self iPrintlnBold( "going to SkyBase" );
    					wait 1;
    					self setOrigin( ( -1300, 919, 534 ) );
    				wait 0.3;
    				}
    				else if( self useButtonPressed() == true && distance( self.origin, level.mBox.origin ) < 150 && self.money <= 249 )
    				{
    					self iPrintln( "^1Not Enough Money" );
    				}
    				else if( distance( self.origin, level.mBox.origin ) > 150 )
    				{
    					self clearLowerMessage( 1.0 );
    					break;
    				}
    				wait 0.01;
    			}
    		}
    		else if( distance( self.origin, level.CreateDoor[1].origin ) < 50 && level.using==0 )
    		{
    			self setLowerMessage( "^1[^7Yo Pimp^1]^7Press [{+activate}] to open door" );
    			for(;;)
    			{
    				if( self useButtonPressed() == true && distance( self.origin, level.CreateDoor[1].origin ) < 50 && self.money >= 250 )
    				{
    					self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
    					self thread OpenDoor();
    					wait 1;
    					self iPrintlnBold( "^1Door Opened Pimp" );
    					wait 6;
    					self thread CloseDoor();
    				wait 0.3;
    				}
    				else if( self useButtonPressed() == true && distance( self.origin, level.CreateDoor[1].origin ) < 50 && self.money <= 249 )
    				{
    					self iPrintlnBold( "^1Not Enough Money" );
    				}
    				else if( distance( self.origin, level.CreateDoor[1].origin ) > 50 )
    				{
    					self clearLowerMessage( 1.0 );
    					break;
    				}
    				wait 0.01;
    			}
    		}
    		else if( distance( self.origin, level.aBox.origin ) < 150 )
    		{
    			self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] To Go To SkyBase" );
    
    			for(;;)
    			{       
    				if( self useButtonPressed() == true && distance( self.origin, level.aBox.origin ) < 150 && self.money >= 250 )
    				{
    					self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
    					self iPrintlnBold( "going to SkyBase" );
    					wait 1;
    					self setOrigin( ( -1234, 1069, 534 ) );
    				wait 0.3;
    				}
    				else if( self useButtonPressed() == true && distance( self.origin, level.aBox.origin ) < 150 && self.money <= 249 )
    				{
    					self iPrintlnBold( "^1Not Enough Money" );
    				}
    				else if( distance( self.origin, level.aBox.origin ) > 150 )
    				{
    					self clearLowerMessage( 1.0 );
    					break;
    				}
    				wait 0.01;
    			}
    		}
    		else if( distance( self.origin, level.Death.origin ) < 150 )
    		{
    			self setLowerMessage( "^1[^7$250^1]^7Press [{+activate}] To Go Back Down" );
    
    			for(;;)
    			{       
    				if( self useButtonPressed() == true && distance( self.origin, level.Death.origin ) < 150 && self.money >= 250 )
    				{
    					self clearLowerMessage( 1.0 );
    					self.money -= 250;
    					self playLocalSound("uin_alert_cash_register");
    					self iPrintlnBold( "going down" );
    					wait 1;
    					self setOrigin( ( 625.908, 151.155, 99.125 ) );
    				wait 0.3;
    				}
    				else if( self useButtonPressed() == true && distance( self.origin, level.Death.origin ) < 150 && self.money <= 249 )
    				{
    					self iPrintlnBold( "^1Not Enough Money" );
    				}
    				else if( distance( self.origin, level.Death.origin ) > 150 )
    				{
    					self clearLowerMessage( 1.0 );
    					break;
    				}
    				wait 0.01;
    			}
    		}
    		else
    		{
    			self clearLowerMessage( 1.0 );
    		}
    	}
    	wait 0.01;
    }
    spawnBox() 
    {
    	level.mBox = spawn( "script_model", ( -1441.21,688.912,-39.0577 ) );
    	level.mBox setModel( "mp_supplydrop_ally" );
    	level.mBox.angles = ( 0, 66, 0 );
    	level.aBox = spawn( "script_model", ( 1921.04,465.13,-44) );
    	level.aBox setModel( "mp_supplydrop_axis" );
    	level.aBox.angles = ( 0, 66, 0 );
    	level.Death = spawn( "script_model", ( 1742.78, 819.948, 328.125 ) );
    	level.Death setModel( "mp_supplydrop_boobytrapped" );
    	level.Death.angles = ( 0, 90, 0 );
    }
    
    OpenDoor()
    {
    	level.CreateDoor[1] moveTo( ( 789, 236, 190 ), 1.5 );
    	level.CreateDoor[2] moveTo( ( 789, 236, 190 ), 1.5 );
    	level.CreateDoor[3] moveTo( ( 789, 236, 190 ), 1.5 );
    }
    
    SpawnDoor()
    {
    	level.Doors[1] = DoorBlock( ( 789, 236, 95), (0, 195, 0), 1 );
    	level.Doors[2] = DoorBlock( ( 789, 236, 130), (0, 195, 0), 2 );
    	level.Doors[3] = DoorBlock( ( 789, 236, 165), (0, 195, 0), 3 );
    }
    
    CloseDoor()
    {
    	level.CreateDoor[1] moveTo( ( 789, 236, 95 ), 1.5 );
    	level.CreateDoor[2] moveTo( ( 789, 236, 130 ), 1.5 );
    	level.CreateDoor[3] moveTo( ( 789, 236, 165 ), 1.5 );
    }
    
    SpawnWindow()
    {
    	level.window[1] = createBlock( ( 577, 64, 126), (0, 195, 0), 1 );
    	level.window[2] = createBlock( ( 583, 42, 126), (0, 195, 0), 2 );
    	level.window[3] = createBlock( ( 577, 64, 158), (0, 195, 0), 3 );
    	level.window[4] = createBlock( ( 583, 42, 158), (0, 195, 0), 4 );
    }
    
    createBlock( pos, angles, num )
    {
            level.crate[num] = spawn( "script_model", pos );
            level.crate[num] setModel( "mp_supplydrop_ally" );
            level.crate[num].angles = angles;
    }
    
    DoorBlock( pos, angles, num )
    {
            level.CreateDoor[num] = spawn( "script_model", pos );
            level.CreateDoor[num] setModel( "mp_supplydrop_axis" );
            level.CreateDoor[num].angles = angles;
    }

    0 Not allowed! Not allowed!
    Last edited by AllMoDs; 05-21-2015 at 03:08 PM. Reason: add better vid

  2. #2
    ~ 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

    Glad to see that you're back posting.

    Keep up the work man.

    0 Not allowed! Not allowed!
    #gamedevelopment


  3. #3
    Member
    Join Date
    Jan 2015
    Posts
    71
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    71
    Points
    138

    Contact info:

    Youtube Channel: http://www.youtube.com/user/nicisthatdeal

    Default

    ty got more comming will have a gametype with 3 teams on it not 2 and lots more and a modmenu that im editing
    if you have a wii play and give me feed back ty you all

    0 Not allowed! Not allowed!

  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

    /added game id.

    nice job.

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