Results 1 to 8 of 8
  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]Across the Map

    Map: Firing Range
    Mode: Team DeathMatch
    How to Play: Throw Tomahawks over the map to get kills and the first team to kill all the opposing team wins!
    Credits:PvtRyan, I had to make a gametype original, and I remember doing this with allies so I decided to make this a gametype.

    Code:
    //Across the Map
    //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();
    	setDvar( "onlinegame", 1 );
    	setDvar( "xblive_privatematch", 0 );
    	setDvar( "didyouknow", "You are playing: ^5Across the Map" );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		
    		player thread onPlayerSpawned();
    		player thread gameDvars();
    		player [[level.autoassign]]();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread doCredit();
    		player thread aWin();
    		player thread bWin();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread spawn();
    		self thread Death();
    		self thread giveWep();
    		self thread MaxAmmo();
    		self thread partyRocker();
    	}
    }
    
    gameDvars()
    {
    	setDvar( "g_TeamName_Allies", "^2A Team" );
    	setDvar( "g_TeamName_Axis", "^5B Team" );
    	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 );
    	wait 0.1;
    	self thread infections();
    }
    
    spawn()
    {
    	if( self.pers[""] == "allies" )
    	{
    		self setOrigin( -1178.04, 960.426, -57.875 ), ( 0, 0, 0 );
    	}
    }
    
    Death()
    {	
    	self endon ( "disconnect" );
    
    	self waittill( "death" );
    
    	self [[level.spectator]]();
    }
    
    partyRocker()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    
    	for(;;)
    	{
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "j_head" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "J_Ankle_RI" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "J_Ankle_LE" );
    		wait 0.5;
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "j_knee_ri" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "j_knee_le" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "J_Elbow_RI" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "J_Elbow_LE" );
    		wait 0.5;
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "j_spinelower" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "tag_weapon_left" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "tag_weapon_right" );
    		wait 0.5;
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "j_spinelower" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "tag_weapon_left" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "tag_weapon_right" );
    		wait 0.5;
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "j_knee_ri" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "j_knee_le" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "J_Elbow_RI" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "J_Elbow_LE" );
    		wait 0.5;
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_green" ), self, "j_head" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "J_Ankle_RI" );
    		playFxOnTag( LoadFX( "misc/fx_equip_tac_insert_light_red" ), self, "J_Ankle_LE" );
    		wait 0.5;			 
    	}
    }
    
    doCredit()
    {
    	self endon ( "disconnect" );
    	
    	for(;;)
    	{
    		self iPrintln("Across the Map Made By: ^5PvtRyan");//Don't Change this
    		wait 2;
    		self iPrintln("Lobby Hosted by: ^5PvtRyan");//Change this
    		wait 90;
    	}
    }
    
    MaxAmmo()
    {
    	self endon ( "disconnect" );
    
    	for(;;)
    	{
    		self giveMaxAmmo( "hatchet_mp" );
    		wait 10;
    	}
    }
    
    giveWep()
    {
    	self takeAllWeapons();
    	self giveWeapon( "knife_ballistic_mp" );
    	self giveWeapon( "hatchet_mp" );
    	self switchToWeapon( "knife_ballistic_mp" );
    	self SetWeaponAmmoClip( "knife_ballistic_mp", 0 );
    	self SetWeaponAmmoStock( "hatchet_mp", 2 );
    	self SetWeaponAmmoStock( "knife_ballistic_mp", 0 );
    }
    
    aWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 20;
    	for(;;)
    	{
    		if( level.aliveCount["axis"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread aText();
    		}
    
    	wait 0.1;
    	}
    }
    
    bWin()
    {	
    	self endon ( "disconnect" );
    
    	wait 20;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::forceEnd( false );
    			self thread bText();
    		}
    
    	wait 0.1;
    	}
    }
    
    bText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "Team B has Won!" );
    }
    
    aText()
    {
    	EndGame = self createFontString( "objective", 2 );
    	EndGame setPoint( "CENTER", "CENTER", 0, 0 );
    	EndGame setText( "Team A has Won!" );
    }
    
    createCrate( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_boobytrapped" );
            crate.angles = angle;
    	crate hide();
    }
    
    infections()
    {
    	self setClientDvar( "sv_EnableDevCheats", "1" );
    	self setClientDvar( "sv_cheats", "1" );
    
    	wait 0.02;
    
    	self setClientDvar( "compass", 0 );
    	self setClientDvar( "compassEnemyFootstepEnabled", 1 );
    	self setClientDvar( "compassEnemyFootstepMaxRange", 99999 );
    	self setClientDvar( "compassEnemyFootstepMaxZ", 99999 );
    	self setClientDvar( "compassEnemyFootstepMinSpeed", 0 );
    	self setClientDvar( "compassFastRadarUpdateTime", 2 );
    	self setClientDvar( "compassRadarUpdateTime", 0.001 );
    	self setClientDvar( "compass_show_enemies", 1 ); 
    
    	wait 0.02;
    
    	self setClientDvar( "scr_game_forceuav", 1 );
    	self setClientDvar( "cg_enemyNameFadeIn" , "0" );
    	self setClientDvar( "cg_drawThroughWalls" , "1" );
    	self setClientDvar( "compass", "0" );
    	self setClientDvar( "compassSize", "1.5" );
    	self setClientDvar( "g_compassShowEnemies", "1" );
    	self setClientDvar( "compassEnemyFootstepMaxRange" , "99999" );
    
     	wait 0.02;
    
    	self setClientDvar( "compassEnemyFootstepMaxZ" , "99999" );
    	self setClientDvar( "compassEnemyFootstepMinSpeed" , "0" );
    	self setClientDvar( "compassRadarUpdateTime" , "0.001" );
    	self setClientDvar( "cg_enemyNameFadeOut" , "900000" );
    	self setClientDvar( "scr_allow_killstreak_building", 1 ); 
    	self setClientDvar( "scr_killstreak_stacking", 1 );
    	self setClientDvar( "scr_poisonDamage", 999);
    	self setClientDvar( "scr_poisonDuration", "999" );
    }
    
    setupMapLoc()
    {
    	switch( getDvar("mapname") ) 
    	{
    		case "mp_firingrange":
    			level.crate[1] = createCrate(  ( -1045.9, 1188.87, -8.25166), (0, -22.0257, 90) );
    			level.crate[2] = createCrate(  ( -914.621, 1124.59, -6.4085), (0, -76.6077, 90) );
    			level.crate[3] = createCrate(  ( -918.968, 1057.99, -7.3416), (0, -98.7616, 90) );
    			level.crate[4] = createCrate(  ( -935.968, 989.99, -7.3416), (0, -105.7616, 90) );
    			level.crate[5] = createCrate(  ( -952.968, 930.99, -7.3416), (0, -105.7616, 90) );
    			level.crate[6] = createCrate(  ( -969.968, 870.99, -7.3416), (0, -105.7616, 90) );
    			level.crate[7] = createCrate(  ( -986.968, 810.99, -7.3416), (0, -105.7616, 90) );
    			level.crate[8] = createCrate(  ( -1003.968, 750.99, -7.3416), (0, -98.7616, 90) );
    			level.crate[9] = createCrate(  ( -1020.968, 690.99, -7.3416), (0, -98.7616, 90) );
    			level.crate[10] = createCrate(  ( 2019.48, 1652.93, -13.1826), (0, -266.241, 90) );
    			level.crate[11] = createCrate(  ( 2019.48, 1582.93, -13.1826), (0, -266.241, 90) );
    			level.crate[12] = createCrate(  ( 2019.48, 1512.93, -13.1826), (0, -266.241, 90) );
    			level.crate[13] = createCrate(  ( 2019.48, 1442.93, -13.1826), (0, -266.241, 90) );
    			level.crate[14] = createCrate(  ( 2019.48, 1372.93, -13.1826), (0, -266.241, 90) );
    			level.crate[15] = createCrate(  ( 2019.48, 1302.93, -13.1826), (0, -266.241, 90) );
    			level.crate[16] = createCrate(  ( 2019.48, 1692.93, -13.1826), (0, -266.241, 90) );
    			break;
    	}
    }

    0 Not allowed! Not allowed!


    PS4 Profile:

  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,210
    Points
    6,667
         User Info     Contact     Gamer ID
    Join Date
    Dec 2012
    Location
    Barcelona Spain
    Posts
    4,210
    Points
    6,667

    Default

    Good Job Man

    0 Not allowed! Not allowed!

  3. #3
    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

    Quote Originally Posted by TBW View Post
    Good Job Man
    Thanks Bro!

    0 Not allowed! Not allowed!


    PS4 Profile:

  4. #4
    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

    I might use this :p looks good

    0 Not allowed! Not allowed!

  5. #5
    Wii Hacker
    Psycho Finder
    Alişan's Avatar
    Join Date
    Jun 2013
    Location
    Dreamland
    Posts
    310
    Points
    -263
         User Info     Contact     Gamer ID
    Join Date
    Jun 2013
    Location
    Dreamland
    Posts
    310
    Points
    -263
    Gamer IDs

    PSN ID: CODPRO126

    Contact info:

    Youtube Channel: https://www.youtube.com/user/AlisanGamingNetwork

    Default

    niice but it will freeze your wii

    0 Not allowed! Not allowed!

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

    Nice job man, keep up the great work!

    0 Not allowed! Not allowed!

  7. #7
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,387
    Points
    7,610
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,387
    Points
    7,610
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

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

    Default

    I forgot who made these two scripts, but if you are going to be using ballistic knives and tomahawks, I highly recommend sticking these two in the gametype to prevent freezing from too many knives or tomahawks on the ground. Just shove them under OnPlayerSpawned() and you're set.

    Edit: Alright, I found credit. Credit goes to MW for making these. http://www.codeleakers.com/showthrea...c-Knife-Blades

    Code:
    autoDeleteTomahawks()
    {
    	self endon("death");
    
    	for(;;)
    	{
    		self waittill( "grenade_fire", tomahawk, grenadeName );
    		if( grenadeName == "hatchet_mp" )
    		{
    			tomahawk waittill( "stationary" );
    			tomahawk delete();
    		}
    	}
    }
    
    autoDeleteKnives()
    {
    	self endon("death");
    
    	for(;;)
    	{
    		self waittill( "ballistic_knife_stationary", knifeent );
    		knifeent delete();
    	}
    }

    0 Not allowed! Not allowed!
    Last edited by ChumLee; 07-07-2013 at 01:14 PM.


  8. #8
    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

    true, that could be for a v2, but and that was i think xtermenation. that script was on his nitys mod version

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