Results 1 to 4 of 4
  1. #1
    Tig O Bitties
    Grey's Avatar
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Candy Mountain
    Posts
    2,935
    Points
    2,964

    Contact info:

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

    Default [MW3][Beta]Freeze Tag

    So i decided to remake my freeze tag from black ops. Right now all i have put together is the ability for players to freeze and unfreeze eachother...play in TDM

    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    main()
    {
    	thread init();
    }
    
    init()
    {
    	level thread onPlayerConnect();
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread OnPlayerSpawned();
    		player thread teamCrap();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread teamJunk();
    		self thread TextCrap( "^3Freeze Tag By G-rey" );
    		self.maxhealth = 99999999999;
    		self.health = self.maxhealth;
    	}
    }
    
    teamJunk()
    {
    	if( self.pers["team"] == "allies" )
    	{
    		self thread Freeze();
    		wait 5;
    		self thread TextCrap( "^1You are a FREEZER" );
    	}
    	else if( self.pers["team"] == "axis" )
    	{
    		self thread unFreeze();
    		wait 5;
    		self thread TextCrap( "^2You are a UNFREEZER" );
    	}
    }
    
    teamCrap()
    {
    	self [[level.autoassign]]();
    }
    
    Freeze()
    {
            self endon("death");
    	self endon("disconnect");
    
    	self takeAllWeapons();
    	self GiveWeapon( "iw5_usp45" );
    	self giveMaxAmmo( "iw5_usp45" );
            self switchToWeapon( "iw5_usp45" );
    	self iPrintlnBold( "^3Shoot to Freeze" );
    
            for(;;)
            {
                    self waittill( "weapon_fired" );
    
                    if( self getCurrentWeapon() == "iw5_usp45" )
                    {
                            freeze = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
                            angles = self getPlayerAngles();
                            freeze = spawn( "script_model", trace );
                            freeze.angles = (0, angles[1], 0);
    			self thread freezeem();
                            wait 0.02;
                            self thread freezeDestroy(freeze);
                    }
            }
    }
    
    freezeDestroy(entity)
    {
            self waittill_any("death", "round_end_done", "disconnect");
            entity delete();
            entity destroy();
    }
    
    freezeem()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for(;;) 
    	{
    		while(self AttackButtonPressed() && self.freeze == 0) 
    		{ 
    			trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self); 
    			while(self AttackButtonPressed()) 
    			{ 
    				trace["entity"] freeze_player_controls( true );
    				wait 0.05;
    				self.freeze = 1;
    			} 
    		} 
    		wait 0.05; 
    	}
    }
    
    unFreeze()
    {
            self endon("death");
    	self endon("disconnect");
    
    	self takeAllWeapons();
    	self GiveWeapon( "iw5_44magnum" );
    	self giveMaxAmmo( "iw5_44magnum" );
            self switchToWeapon( "iw5_44magnum" );
    	self iPrintlnBold( "^3Shoot to unfreeze" );
    
            for(;;)
            {
                    self waittill( "weapon_fired" );
    
                    if( self getCurrentWeapon() == "iw5_44magnum" )
                    {
                            freeze = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*100000,1,self)["position"];
                            angles = self getPlayerAngles();
                            freeze = spawn( "script_model", trace );
                            freeze.angles = (0, angles[1], 0);
    			self thread freezeem();
                            wait 0.02;
                            self thread freezeDestroy(freeze);
                    }
            }
    }
    
    unfreezeDestroy(entity)
    {
            self waittill_any("death", "round_end_done", "disconnect");
            entity delete();
            entity destroy();
    }
    
    unfreezeem()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	for(;;) 
    	{
    		while(self self.freeze == 1 && self AttackButtonPressed()) 
    		{ 
    			trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self); 
    			while(self AttackButtonPressed()) 
    			{ 
    				trace["entity"] freeze_player_controls( false );
    				wait 0.05; 
    				self.freeze = 0;
    			} 
    		} 
    		wait 0.05; 
    	}
    }
    
    TextCrap( text )
    {
    	Credit = self createFontString( "objective", 1.5 );
    	Credit setPoint( "CENTER", "CENTER", 0, 0 );
    	Credit setText( text );
    	wait 5;
    	Credit Destroy();
    }

    0 Not allowed! Not allowed!

  2. #2
    Member DaSkull's Avatar
    Join Date
    Oct 2011
    Location
    up yo moms pussy
    Posts
    173
    Points
    535
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Location
    up yo moms pussy
    Posts
    173
    Points
    535
    Gamer IDs

    Gamertag: DevilKingSkull

    Default

    nice job bro

    0 Not allowed! Not allowed!

  3. #3
    Nooblet Jigsaw's Avatar
    Join Date
    Nov 2011
    Posts
    10
    Points
    18
         User Info     Contact     Gamer ID
    Join Date
    Nov 2011
    Posts
    10
    Points
    18

    Default

    syntax and everything else looks good to me... can't wait to try it out!

    0 Not allowed! Not allowed!

  4. #4
    Diehard
    Join Date
    Aug 2011
    Location
    San Francisco
    Posts
    471
    Points
    1,201
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    San Francisco
    Posts
    471
    Points
    1,201

    Contact info:

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

    Default

    I've seen this in some mod menus before, but I'm guessing this one is available for players instead of the admin? I don't know, stupid question. c:

    0 Not allowed! Not allowed!

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