Results 1 to 7 of 7
  1. #1
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

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

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

    Contact info:

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

    Default [SC7E52]Catch the Junkies

    Map:NukeTown
    Mode:Team Deathmatch
    How to Play:
    As the Junkie:You must get Killed and then after rehab you steal a pistol, and go kill the police who brought you.
    As the Police Officer:You must kill the junkies, and after they get their pistol you must save yourself and kill them once more.
    Teams:Police Officers vs. Junkies
    Bugs:The teleport for the junkies lags alil by like 7 sec, v2 will have that fixed.
    Credit:PvtRyan, I typed out everything, and made all the scripts and did the spawns for this mod to be good

    Code:
    //Catch the Junkies
    //Made By:
    //PvtRyan
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	thread setupMapLoc();
    	thread gameConfig();
    	setDvar( "onlinegame", 1 );
    	setDvar( "xblive_privatematch", 0 );
    	setDvar( "didyouknow", "You are playing: ^5Catch the Junkies" );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		
    		player thread onPlayerSpawned();
    		player thread gameDvars();
    		player [[level.axis]]();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread doCredit();
    		player thread policeWin();
    		player thread junkWin();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread junkiS();
    	}
    }
    
    gameDvars()
    {
    	setDvar( "g_TeamName_Allies", "^1Poli^7ce Off^4icers" );
    	setDvar( "g_TeamName_Axis", "^2Jun^3ki^1es" );
    	wait 0.01;
    	setDvar( "scr_disable_weapondrop", 1 );
            setDvar( "scr_disable_cac", 1 );
    	setDvar( "g_gametype", "tdm" );
    	wait 0.01;
    	setDvar( "ui_allow_teamchange", 0 );
    	setDvar("g_allow_teamchange", 0 );
    	setDvar( "scr_tdm_scorelimit", 0 );
    	setDvar( "scr_tdm_timelimit", 0 );
    	wait 0.01;
    	SetMatchTalkFlag( "EveryoneHearsEveryone", 1 );
    	SetMatchTalkFlag( "DeadChatWithDead", 1 );
    	SetMatchTalkFlag( "DeadChatWithTeam", 1 );
    	SetMatchTalkFlag( "DeadHearTeamLiving", 1 );
    	SetMatchTalkFlag( "DeadHearAllLiving", 1 );
    }
    
    junkiS()
    {
    	if( self.pers["team"] == "axis" )
    	{
    		self thread junkO();
    		wait 0.1;
    		self thread giveWep();
    		wait 0.1;
    		self thread onPlayerDeath();
    	}
    }
    
    Death()
    {	
    	self endon ( "disconnect" );
    
    	self waittill( "death" );
    
    	self [[level.spectator]]();
    }
    
    doCredit()
    {
    	self endon ( "disconnect" );
    	
    	for(;;)
    	{
    		self iPrintln("^5Catch the Junkies ^7Made By: ^5PvtRyan");//Don't Change this
    		wait 5;
    		self iPrintln("Lobby Hosted by: ^5PvtRyan");//Change this
    		wait 90;
    	}
    }
    
    onPlayerDeath()
    {
    	self waittill( "death" );
    
    	if( self.pers["team"] == "axis" )
    	{
    		self setOrigin( ( -584.692, 411.221, 79.125 ), ( 0, 0, 0 ) );
    		self iPrintln("Your in Jail -- Get Sober!!");
    		wait 10;
    		self setOrigin( ( 701.943, 176.456, 79.125 ), ( 0, 0, 0 ) );
    		self iPrintln("Your in Rehab -- Break Out");
    		self iPrintln("Steal the Cops Pistol");
    		wait 2;
    		self iPrintln("Get back at the other Police");
    		wait 10;
    		self giveWeapon( "m1911_mp" );
    		self switchToWeapon( "m1911_mp" );
    		self setOrigin( ( -11.167, 136.553, -67.4443 ), ( 0, 0, 0 ) );
    		wait 1;
    		self iPrintln("Go Fuck The Police");
    		self thread death();
    	}
    }
    
    gameConfig()
    {
    	off = createServerFontString( "extrabig", 1.8 );
    	off setPoint( "CENTER", "CENTER", 0, -40 );
    
    	for( i = 23;i > -1;i-- )
    	{
    		off setText("^1Police will arrive in ^4" + i + " ^3seconds");
    		wait 1;
    	}
    
    	off destroy();
    
    	o1 = randomInt( level.players.size );
    	o2 = randomInt( level.players.size );
    
    	if( level.players[o1] == level.players[o2] ) thread settPol();
    	level.players[o1] thread settPol();
    	level.players[o2] thread settPol();
    } 
    
    junkO()
    {
    	self setOrigin( ( -11.167, 136.553, -67.4443 ), ( 0, 0, 0 ) );
    }
    
    orig()
    {
    	self setOrigin( ( 125.71, -556.875, -59.875 ), ( 0, 0, 0 ) );
    }
    
    settPol()
    {
    	self thread orig();
    	wait 0.1;
    	self thread polweap();
    	wait 0.1;
    	self thread polHealth();
    	wait 0.1;
    	self thread death();
    }
    
    polweap()
    {
    	self [[level.allies]]();
    	self takeAllWeapons();
    	self clearPerks();
    	self giveWeapon( "m1911_mp" );
    	self switchToWeapon( "m1911_mp" );
    }
    
    polHealth()
    {
    	self.maxhealth = 250;
    	self.health = self.maxhealth;
    }
    
    giveWep()
    {
    	self takeAllWeapons();
    	self clearPerks();
    	self giveWeapon( "dog_bite_mp" );
    	self switchToWeapon( "dog_bite_mp" );
    }
    
    policeWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 20;
    	for(;;)
    	{
    		if( level.aliveCount["axis"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread policeText();
    		}
    
    	wait 0.1;
    	}
    }
    
    junkWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 30;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread junkText();
    		}
    
    	wait 0.1;
    	}
    }
    
    policeText()
    {
    	Police = self createFontString( "objective", 2 );
    	Police setPoint( "CENTER", "CENTER", 0, 0 );
    	Police setText( "Everyone Arrested" );
    }
    
    junkText()
    {
    	Police = self createFontString( "objective", 2 );
    	Police setPoint( "CENTER", "CENTER", 0, 0 );
    	Police setText( "Junkies have Escaped!" );
    }
    
    createCrate( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_boobytrapped" );
            crate.angles = angle;
    }
    
    setupMapLoc()
    {
    	switch( getDvar("mapname") ) 
    	{
    		case "mp_nuked":
    			level.crate[1] = createCrate(  ( 809.996, 247.065, 95.9105), (0, 17.4371, 0) );
    			level.crate[2] = createCrate(  ( 809.996, 247.065, 125.9105), (0, 17.4371, 0) );
    			level.crate[3] = createCrate(  ( 598.498, 32.9417, 149.419), (0, -258.27, 90) );
    			level.crate[4] = createCrate(  ( 598.498, 67.9417, 149.419), (0, -258.27, 90) );
    			level.crate[5] = createCrate(  ( 598.498, 108.9417, 149.419), (0, -258.27, 90) );
    			level.crate[6] = createCrate(  ( -753.261, 376.751, 126.2677), (0, 160.261, 0) );
    			level.crate[7] = createCrate(  ( -753.261, 376.751, 96.2677), (0, 160.261, 0) );
    			level.crate[8] = createCrate(  ( -516.068, 313.513, 144.744), (0, -109.987, 90) );
    			level.crate[9] = createCrate(  ( -516.068, 278.513, 144.744), (0, -109.987, 90) );
    			level.crate[10] = createCrate(  ( 596.484, 116.365, -12.5889), (0, -257.962, 90) );
    			level.crate[11] = createCrate(  ( 1141.85, 260.248, -11.1089), (0, -80.2173, 90) );
    			level.crate[12] = createCrate(  ( 978.172, 471.766, -11.3154), (0, -20.2417, 90) );
    			level.crate[13] = createCrate(  ( 1137.13, 299.509, 130.582), (0, -77.9102, 90) );
    			level.crate[14] = createCrate(  ( -485.787, 389.052, -12.7001), (0, -109.338, 90) );
    			level.crate[15] = createCrate(  ( -993.527, 368.935, -6.84151), (0, -203.486, 90) );
    			level.crate[16] = createCrate(  ( -986.011, 700.661, -13.4298), (0, 70.4529, 90) );
    			level.crate[17] = createCrate(  ( -1025.31, 608.799, 133.653), (0, 70.4968, 90) );
    			break;
    	}
    }

    In-Game Video

    0 Not allowed! Not allowed!
    Last edited by PvtRyan; 07-07-2013 at 09:39 PM.

  2. #2
    Wii Code Creator
    T.U.F.F. PUPPY
    T.B.W's Avatar

    Badge

    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,212
    Points
    6,669
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,212
    Points
    6,669

    Default

    Good Job man keep up the good work

    0 Not allowed! Not allowed!

  3. #3
    Art Corner Moderator MejaiDesigns's Avatar
    Join Date
    Jun 2012
    Posts
    3,997
    Points
    1,612
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Posts
    3,997
    Points
    1,612

    Contact info:

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

    Default

    I like these modes you keep making only suggestion is try making them work on other maps other then that keep up the great work man!

    0 Not allowed! Not allowed!

  4. #4
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    South Carolina
    Posts
    3,666
    Points
    2,315
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    South Carolina
    Posts
    3,666
    Points
    2,315
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default

    Nice Gametype bro, Keep posting!

    0 Not allowed! Not allowed!

  5. #5
    Nintendo Section Moderator PvtRyan's Avatar

    Badge

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

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

    Contact info:

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

    Default

    Thank you guys

    0 Not allowed! Not allowed!


    PS4 Profile:

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

    Good job. Funny game type as well. Nice

    0 Not allowed! Not allowed!
    #gamedevelopment


  7. #7
    Zonked CoolGuyJones's Avatar
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Behind you
    Posts
    1,180
    Points
    898
    Gamer IDs

    Gamertag: thatonedude19 PSN ID: CoolGuyJones420 Wii Code: Cannibal666

    Contact info:

    Kik Username: CannibalKush

    Default

    Half way threw the video it just stopped and said some shit about an error...fuck.

    0 Not allowed! Not allowed!

    Thanks for the sig/avatar Blacksun!
    #ChickenWildWings

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