Results 1 to 2 of 2
  1. #1
    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

    Thumbs up One in the Chamber by PvtRyan

    i just made this this morning from nuketown survival by cheesetoast
    Code:
    //Play this on Nuketown
    //PvtRyan
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    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 EndTheGame();
    		player thread doSpinningHeart();
    		player [[level.allies]]();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread Settings();
    		self setClientDvar("scr_tdm_numlives", 3 );
    		SetMatchFlag( "disableingamemenu", 1 );
    	}
    }
    
    Dvars()
    {
            setDvar( "scr_disable_cac", 1 ); 
    	wait 0.05;
    	setDvar( "scr_tdm_timelimit", 0 );
    	setDvar( "scr_disable_weapondrop", 1 );
    	setDvar( "g_allow_teamchange", 0 );
    	setDvar( "scr_tdm_scorelimit", 0 );
    	wait 0.05;
    	setDvar( "scr_game_killstreaks", 0 );
    	setDvar( "scr_tdm_timelimit", 0 );
    	setDvar( "scr_tdm_numlives", 3 );
    }
    
    Settings()
    {
    	self thread ZombieGuns();
    	wait 0.1;
    	self thread ZombieSettings();
    	wait 0.1;
    	self thread HumanHealth();
    }
    
    ZombieGuns()
    {
    	self takeAllWeapons();
    	self giveWeapon( "m1911_mp" );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( "m1911_mp" );
    	self SetWeaponAmmoClip( "m1911_mp", 1 );
    	self SetWeaponAmmoStock( "m1911_mp", 0 );	
    }
    
    ZombieSettings()
    {	
    	self endon ( "disconnect" );
     
    	self setOrigin( (  49.5369, 5.72034, -68.1609 ), ( 0, 172.017, 0  ) );
    }
    
    EndTheGame()
    {	
    	self endon ( "disconnect" );
    
    	wait 15;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 1 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread EndGameText();
    		}
    
    	wait 0.1;
    	}
    }
    
    EndGameText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "Good Game: ^3One in the Chamber" );
    }
    
    KillMoney()
    {
    	self SetWeaponAmmoClip( "m1911_mp", 1 );
    }
    
    onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
    {
    	if ( isDefined( attacker ) && isPlayer( attacker ) && self != attacker )
    	{
    		attacker thread KillMoney();
    	}
    }
    
    HumanHealth()
    {
    	self endon ( "death" );
    	for(;;)
    	{
    		if( self.health <= 49 )
    		{		
    			wait 5;
    			if( self.health <= 49 )
    			{
    				self.maxhealth = 50;
    				self.health = self.maxhealth;
    			}
    		}
    	wait 0.1;
    	}	
    }
    
    doSpinningHeart()
    {
    	spinning = self createFontString( "objective", 1.5 );
    	cx = 0;
    	cy = 0;
    	rad = 150;
    	i = 0;
    		for ( ;; )
    		{
    		xx = cx + sin(i)*rad;
    		yy = cy + cos(i)*rad;
    		spinning setPoint( "CENTER", "CENTER", xx, yy );
    		spinning.glow = 0; 
    		spinning.glowColor = ( 0, 0, 0 ); 
    		spinning.glowAlpha = 0; 
    		spinning setText( "^3One in the Chamber: ^2by ^2Name" );
    
    		wait 0.1;
    		i++;
    		}
    }

    0 Not allowed! Not allowed!


    PS4 Profile:

  2. #2
    PS3 Section Mod
    The One Who Survived
    Hotaru's Avatar
    Join Date
    Mar 2012
    Location
    Playboy Mansion with JROD
    Posts
    1,041
    Points
    2,192
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    Playboy Mansion with JROD
    Posts
    1,041
    Points
    2,192
    Gamer IDs

    PSN ID: TheNightmare500

    Default

    Why not you just use the code, but hey gj.

    0 Not allowed! Not allowed!


    GFX Battle Record:7-2

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