Results 1 to 6 of 6
  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

    Default Free functional mod.

    My one bug is it freezes when you beat the troll so whoever wants this can have it.
    its for black ops on nuketown and free kill cam script inside made by PvtRyan

    Code:
    //Kill the Troll
    //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: ^1Kill the Troll" );
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		
    		player thread onPlayerSpawned();
    		player thread gameDvars();
    		player thread deathSpawn();
    		player [[level.allies]]();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread trollWin();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		
    		self thread playerConfig();
    	}
    }
    
    gameDvars()
    {
    	setDvar( "g_TeamName_Allies", "Hunters" );
    	setDvar( "g_TeamName_Axis", "^1T^2r^3o^4l^5l" );
    	wait 0.01;
    	setDvar( "scr_disable_weapondrop", 1 );
            setDvar( "scr_disable_cac", 1 ); 
            setDvar( "scr_game_prematchperiod", 25 );
    	setDvar( "g_gametype", "tdm" );
    	wait 0.01;
    	setDvar( "ui_allow_teamchange", 0 );
    	setDvar("g_allow_teamchange", 0);
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
    	wait 0.01;
    	setDvar( "cg_spectateThirdPerson", "1" );
    	setDvar( "scr_game_spectatetype", "0" );
    	setDvar( "player_spectateSpeedScale", "3" );
    	wait 0.01;
    	SetMatchTalkFlag( "EveryoneHearsEveryone", 1 );
    	SetMatchTalkFlag( "DeadChatWithDead", 1 );
    	SetMatchTalkFlag( "DeadChatWithTeam", 1 );
    	SetMatchTalkFlag( "DeadHearTeamLiving", 1 );
    	SetMatchTalkFlag( "DeadHearAllLiving", 1 );
    }
    
    playerConfig()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread gamesGuns();
    		wait 25;
    		self thread switchDeath();
    	}
    }
    
    gamesGuns()
    {
    	self endon ( "team_moveon" );
    
    	self takeAllWeapons();
    	self clearPerks();
    	self takeWeapon( "knife_mp" );
    	switch( RandomInt(5) )
    	{
    		case 0:
    			self giveWeapon( "knife_ballistic_mp" );
    			self switchToWeapon( "knife_ballistic_mp" );
    			self takeWeapon( "knife_mp" );
    			self SetWeaponAmmoClip( "knife_ballistic_mp", 0 );   
    			self SetWeaponAmmoStock( "knife_ballistic_mp", 0 );	
    			wait 10;
    			self iPrintln( "^1T^2R^3O^4L^5L^6E^7D" );
    			self thread gamesGuns();
    			break;
    		case 1:
    			self giveWeapon( "m202_flash_mp" );
    			self switchToWeapon( "m202_flash_mp" );
    			self SetWeaponAmmoClip( "m202_flash_mp", 0 );   
    			self SetWeaponAmmoStock( "m202_flash_mp", 0 );
    			wait 10;
    			self iPrintln( "^1T^2R^3O^4L^5L^6E^7D" );
    			self thread gamesGuns();
    			break;
    		case 2:
    			self giveWeapon( "minigun_mp" );
    			self switchToWeapon( "minigun_mp" );
    			self SetWeaponAmmoClip( "minigun_mp", 1 );   
    			self SetWeaponAmmoStock( "minigun_mp", 0 );
    			wait 10;
    			self iPrintln( "^1T^2R^3O^4L^5L^6E^7D" );
    			self thread gamesGuns();
    			break;
    		case 3:
    			self giveWeapon( "dog_bite_mp" );
    			self switchToWeapon( "dog_bite_mp" );
    			wait 1;
    			self iPrintln( "^1T^2R^3O^4L^5L^6E^7D" );
    			self thread gamesGuns();
    			break;
    		case 4:
    			self giveWeapon( "syrette_mp" );
    			self switchToWeapon( "syrette_mp" );
    			wait 1;
    			self iPrintln( "^1T^2R^3O^4L^5L^6E^7D" );
    			self thread gamesGuns();
    			break;
    	}
    }
    
    trollGuns()
    {
    	self.maxhealth = 999999;
    	self.health = self.maxhealth;
    	self takeAllWeapons();
    	self clearPerks();
    	self giveWeapon( "m1911_mp" );
    	self switchToWeapon( "m1911_mp" );
    }
    
    gameConfig()
    {
    	wait 22;
    	troll = randomInt( level.players.size );
    	level.players[troll] [[level.axis]]();
    	level.players[troll] thread trollGuns();
    	level.players[troll] notify( "team_moveon" );
    	wait 1;
    	level.players[troll] thread trollDeath();
    }
    
    switchDeath()
    {	
    	self endon ( "disconnect" );
    	
    	self waittill( "death" );
    
    	self [[level.spectator]]();
    }
    
    createTrollKill( pos )
    {
            level.troll = spawn( "script_model", pos );
    
    	goT = loadfx( "misc/fx_ui_flagbase_gold_t5" );
    	anime = PlayLoopedFX( goT, 1, pos );
    }
    
    trollDeath()
    {
    	self waittill( "dead_troll" );
    
    	playFx( level.chopper_fx["explode"]["death"], self.origin );
    	self playSound( level.heli_sound[self.team]["crash"] );
    	self suicide();
    }
    
    killCam()
    {
    	for( i = 0; i < level.players.size; i++ )
    	{
    		level.players[i] make_final();
    		wait 1.1;
    		level.players[i] freezeControls( true );
    		level.players[i] notify( "dead_troll" );
    	}
    }
    
    make_final()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self notify( "hunters_win" );
    		self [[level.spectator]]();
    		wait 1.9;
    		self thread endGame();
    	}
    }
    
    endGame()
    {
    	if( self.pers["team"] == "spectator" )
    	{
    		self [[level.allies]]();
    		wait 0.1;
    		self [[level.allies]]();
    		self setOrigin( (  -84.3414, 259.733, -68.495), ( 0, 0, 0 ) );
    	}
    }
    
    deathSpawn()
    {
    	for(;;)
    	{
    		if( distance( self.origin, level.troll.origin ) < 60 && self.pers["team"] == "allies" && level.aliveCount["allies"] == 1 )
    		{
    			while( distance( self.origin, level.troll.origin ) < 60 )
    			{
    				if( distance( self.origin, level.troll.origin ) < 60 )
    				{
    					self thread killCam();
    					wait 12;
    					thread maps\mp\gametypes\_globallogic::endGame( self.pers["team"], "^4" + self.name + " has beaten the Troll!");
    				}
    				wait 1;
    			}
    		}
    		wait 0.1;
    	}
    }
    
    trollWin()
    {	
    	self endon ( "disconnect" );
    	self endon ( "hunters_win" );
    
    	wait 15;
    	for(;;)
    	{
    		if( level.aliveCount["allies"] == 0 )
    		{
    			thread maps\mp\gametypes\_globallogic::endGame( self.pers["team"], "Everyone had been Trolled!");
    		}
    
    	wait 0.1;
    	}
    }
    
    setupMapLoc()
    {
    	switch( getDvar("mapname") ) 
    	{
    		case "mp_nuked":
    			level.killer[1] = createTrollKill( (  -84.3414, 259.733, -68.495) );
    			break;
    	}
    }

    0 Not allowed! Not allowed!


    PS4 Profile:

  2. #2
    Banned

    Badge

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

    Default

    good job on the gametype man

    0 Not allowed! Not allowed!

  3. #3
    Suicidal Thoughts
    Atmosphere's Avatar
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
         User Info     Contact     Gamer ID
    Join Date
    Oct 2012
    Location
    Oceans Ate Alaska
    Posts
    3,648
    Points
    2,290
    Gamer IDs

    Gamertag: xINSTANT CRUSHx Steam ID: xatmospherex

    Default

    Nice release ryan?

    0 Not allowed! Not allowed!

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

    I call bullshit on the kill cam. Make a video of it. I want to see how it works. (The scripts surprisingly confuse me lol).

    Aside from that, good job man



    Ryan, can you view and post on my Pokemon hack thread I made today? I need some feedback. You don't have to if you don't want to.

    0 Not allowed! Not allowed!
    Last edited by link; 07-29-2013 at 04:59 PM.
    #gamedevelopment


  5. #5
    Rising Coder and Modder
    Rising Graphic Artist
    Griffy's Avatar

    Badge

    Join Date
    Jun 2012
    Location
    ▓░░░░ 1% Attempting to give a fuck...
    Posts
    665
    Points
    905
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Location
    ▓░░░░ 1% Attempting to give a fuck...
    Posts
    665
    Points
    905

    Default

    Quote Originally Posted by Slink View Post
    I call bullshit on the kill cam. Make a video of it. I want to see how it works. (The scripts surprisingly confuse me lol).

    Aside from that, good job man



    Ryan, can you view and post on my Pokemon hack thread I made today? I need some feedback. You don't have to if you don't want to.
    Why would he release it if it didnt work?

    0 Not allowed! Not allowed!



    ^Thanks to Tenza for the Sig^

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

    Quote Originally Posted by Slink View Post
    I call bullshit on the kill cam. Make a video of it. I want to see how it works. (The scripts surprisingly confuse me lol).

    Aside from that, good job man



    Ryan, can you view and post on my Pokemon hack thread I made today? I need some feedback. You don't have to if you don't want to.
    like i said the gametype freezes thats why i put it as a discussion for anyone to use. I will check it out, the kill cam works, ask cannibal, it views the person who is going to die and you see them explode, video would be pointless as it freezes.

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