Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Member M1lkdud's Avatar
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
    Gamer IDs

    PSN ID: Moneydud1

    Contact info:

    Youtube Channel: www.youtube.com/user/SKSMarineEcho

    Default [SC7E52] Tower Defence(MIKE MYERS EDIT)

    plz look this over and tell me if you think theres an error in the script, or tell me how i can make it better

    Code:
     
    //Sorry, i couldn't fit Cheesetoast's sig in here
    //Cheesetoast:CREATOR OF THE MYERS SCRIPT.
    	
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	setDvar( "didyouknow", "Tower Defence" );
    	thread doMaps();
    	setDvar( "scr_game_killstreaks",0 );
    	setDvar( "scr_disable_cac", 1 );
    	setDvar( "g_allow_teamchange", 0 ); 	
    }
    
    onPlayerConnect()
    {
    	for(;;)
    	{
    		level waittill( "connecting", player );	
    		player thread onPlayerSpawned();
    	}
    }
    
    onPlayerConnected()
    {
    	for(;;)	
    	{
    		level waittill( "connected", player );
    		player [[level.allies]]();
    		player thread MyersBeingPicked();
    		wait 5;
    		player thread Dvars();
    		player thread cantOpenMenu();
    		wait 5;
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread doInstructions();
    		self thread Guns();
    		self thread Perks();
    		self thread Health();
    	}
    }
    
    Dvars()
    {
    
    	SetMatchFlag( "disableingamemenu", 1 );
    	setDvar( "g_TeamName_Allies", "^1Guards" );
    	setDvar( "g_TeamName_Axis", "^3Prisoners" );
    	setDvar( "scr_disable_cac", 1 );
    	setDvar( "scr_disable_weapondrop", 1 );
    	setDvar( "g_allow_teamchange", 0 );  
    }
    
    doInstructions()
    {
    	Instructions = createFontString("objective", 1.6 );
    	Instructions setPoint( "TOPRIGHT", "TOPRIGHT",0, 72+220 );
    	Instructions setText( "^2Story of a Snitch, Now He's a BITCH  " );
    	wait(2.0);
    } 
    
    cantOpenMenu()
    {
    	for(;;)
    	{
    		if(!self isHost())
    		{
    			self closeMenu();
    			self closeInGameMenu();
    		}
    		wait 0.01;
    	}
    }
    
    MyersBeingPicked()
    {
    	MichaelMyersPick = self createFontString( "objective", 2 );
    	MichaelMyersPick setPoint( "CENTER", "CENTER", 0, 30 );
    	MichaelMyersPick.color = ( 185/255, 0/255, 0/255 );
    	PickBar = self createBar((1,0,0),200,10);
    	PickBar setPoint( "CENTER", "CENTER", 0, 0 ); 
    
    	for( i = 30; i > 0; i-- )
    	{
    		MichaelMyersPick setText("^1"+i);
    		PickBar updateBar(i/30);
    		wait 1;
    	}
    
    	MichaelMyersPick destroy();
    	PickBar destroy();
    
    	Random = randomInt( level.players.size );
    	level.Myers = level.players[Random];
    	level.players[Random].myers = 1;
    
    	level.Myers [[level.axis]]();	
    	wait 5.1;
    	level.Myers [[level.axis]]();
    
    	level.Myers thread MyersPerks();
    	level.Myers thread MyersGuns();
    	level.Myers thread MyersHealth();
    	level.Myers thread MyersEnd();
    }
    
    MyersGuns()
    {
    	self takeAllWeapons();
    	self GiveWeapon( "l96a1_mp" );
    	self giveWeapon( "knife_mp" );
    	self switchToWeapon( "l96a1_mp" );
    	self SetWeaponAmmoStock( "l96a1_mp" , 0 );
    	self SetWeaponAmmoClip( "l96a1_mp" , 5 );
    }
    
    MyersHealth()
    {
    	self.maxhealth = 5;
    	self.health = self.maxhealth;
    }
    
    MyersPerks()
    {
    	level.Myers clearPerks(); 
    }
    
    MyersEnd()
    {
    	for(;;)
    	{
    		if( self getWeaponAmmoClip(self getCurrentWeapon()) == 0 && self getWeaponAmmoStock(self getCurrentWeapon()) == 0 )
    		{
    			self endon ( "disconnect" );
    			wait 5;
    			self [[level.allies]]();
    		}
    		wait 0.1;	
    	}
    }
    
    Guns()
    {
    	if(self.pers["team"] == "allies")
    	{
    		self takeAllWeapons();
    		self GiveWeapon( "knife_ballistic_mp" );
    		self giveWeapon( "knife_mp" );
    		self switchToWeapon( "knife_ballistic_mp" );
    		self SetWeaponAmmoStock( "knife_ballistic_mp" , 0 );
    		self SetWeaponAmmoClip( "knife_ballistic_mp" , 0 );
    	}
    }
    
    Health()
    {
    	if(self.pers["team"] == "allies")
    	{
    		self.maxhealth = 45;
    		self.health = self.maxhealth;  
    	}
    }
    
    Perks()
    {
    	if(self.pers["team"] == "allies")
    	{
    		self clearPerks(); 
    		self setPerk("specialty_unlimitedsprint");
    	}
    }
    
    createBlock( pos, angle )
    {
            crate = spawn( "script_model", pos );
            crate setModel( "mp_supplydrop_ally" );
            crate.angles = angle;
    }
    
    createFlag(pos, ang, num)
    {
            level.flag[num] = spawn( "script_model", pos );
            level.flag[num] setModel( "mp_flag_neutral" );
            level.flag[num].angles = ang;
    }
    
    doMaps()
    {
     	if(getDvar("mapname") == "mp_array") 
    	{
           		thread ArrayMap();
    	}
    
    	if(getDvar("mapname") == "mp_firingrange") 
    	{
            	thread FiringRange();
    	}
    
    	if(getDvar("mapname") == "mp_havoc") 
    	{
            	thread Jungle();
    	}
    }
    
    ArrayMap()
    {
    }
    
    FiringRange()
    {
    	createBlock( ( 1720, 1920, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1660, 1920, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1920, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1720, 1920, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1660, 1920, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1920, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1720, 1920, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1660, 1920, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1920, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1720, 1920, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1660, 1920, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1920, 60 ), ( 0, 90, 0 ) );
    
    	createBlock( ( 1600, 1920, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1890, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1860, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1830, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1800, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1770, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1740, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1710, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1680, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1650, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1620, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1590, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1560, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1530, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1500, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1470, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1440, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1410, -30 ), ( 0, 90, 0 ) );
    
    	createBlock( ( 1600, 1920, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1890, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1860, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1830, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1800, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1770, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1740, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1710, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1680, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1650, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1620, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1590, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1560, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1530, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1500, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1470, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1440, 0 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1410, 0 ), ( 0, 90, 0 ) );
    
    	createBlock( ( 1600, 1920, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1890, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1860, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1830, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1800, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1770, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1740, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1710, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1680, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1650, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1620, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1590, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1560, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1530, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1500, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1470, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1440, 30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1410, 30 ), ( 0, 90, 0 ) );
    
    	createBlock( ( 1600, 1920, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1890, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1860, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1830, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1800, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1770, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1740, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1710, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1680, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1650, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1620, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1590, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1560, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1530, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1500, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1470, 60 ), ( 0, 90, 0 ) );
    	createBlock( ( 1600, 1440, 60 ), ( 0, 90, 0 ) );	
    	createBlock( ( 1600, 1410, 60 ), ( 0, 90, 0 ) );
    
    	createBlock( ( 1867, 1914, -30 ), ( 0, 90, 0 ) );
    	createBlock( ( 1867, 1914, 0 ), ( 0, 90, 0 ) );
    
    	createBlock( ( 1505, 1443, 84 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1413, 84 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1383, 84 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1353, 84 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1323, 84 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1293, 84 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1443, 114 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1413, 114 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1383, 114 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1353, 114 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1323, 114 ), ( 0, 90, 0 ) );
    	createBlock( ( 1505, 1293, 114 ), ( 0, 90, 0 ) );
    
    	createFlag(( 2580, 1636, -60 ), ( 0, -170, 0 ),1);//allies
    	createFlag(( 1608, 1363, 75 ), ( 0, 12, 0 ),2);//axis
    }

    0 Not allowed! Not allowed!

  2. #2
    Notorious B.I.G
    http://xat.com/cleaker
    Goober.'s Avatar
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699
         User Info     Contact     Gamer ID
    Join Date
    Dec 2011
    Location
    A Safe Haven
    Posts
    6,713
    Points
    10,699

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Goober1337FX?feature=mhee

    Default

    What did you do? I cant tell by looking at the script

    0 Not allowed! Not allowed!

  3. #3
    [email protected]
    Guest

    Default

    nah i didnt see any errors at all

    0 Not allowed! Not allowed!

  4. #4
    Member M1lkdud's Avatar
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
    Gamer IDs

    PSN ID: Moneydud1

    Contact info:

    Youtube Channel: www.youtube.com/user/SKSMarineEcho

    Default

    i'm getting "unknown Function error" :/

    0 Not allowed! Not allowed!

  5. #5
    [email protected]
    Guest

    Default

    i found the problem lol i think this is it http://prntscr.com/mrh9j fix the t weapon line

    0 Not allowed! Not allowed!

  6. #6
    Member M1lkdud's Avatar
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
    Gamer IDs

    PSN ID: Moneydud1

    Contact info:

    Youtube Channel: www.youtube.com/user/SKSMarineEcho

    Default

    Quote Originally Posted by xT.B.Wx View Post
    i found the problem lol i think this is it http://prntscr.com/mrh9j fix the t weapon line
    its the way it was put in, it is straighten out in ff viewer, but i think it was the "Jungle" thread in doMaps, because i took out Jungle{} but not the option

    0 Not allowed! Not allowed!

  7. #7
    [email protected]
    Guest

    Default

    Quote Originally Posted by M1lkdud View Post
    its the way it was put in, it is straighten out in ff viewer, but i think it was the "Jungle" thread in doMaps, because i took out Jungle{} but not the option
    if it looks like that in ff viewer thats the problem but if it nots the problem then i dont know wat it is lol i tried helping

    0 Not allowed! Not allowed!

  8. #8
    Member M1lkdud's Avatar
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
         User Info     Contact     Gamer ID
    Join Date
    Jul 2012
    Posts
    72
    Points
    151
    Gamer IDs

    PSN ID: Moneydud1

    Contact info:

    Youtube Channel: www.youtube.com/user/SKSMarineEcho

    Default

    Quote Originally Posted by xT.B.Wx View Post
    if it looks like that in ff viewer thats the problem but if it nots the problem then i dont know wat it is lol i tried helping
    Game is working, i just messed up my spawns, but this should be a goodgametype for a one day edit

    0 Not allowed! Not allowed!

  9. #9
    [email protected]
    Guest

    Default

    Quote Originally Posted by M1lkdud View Post
    Game is working, i just messed up my spawns, but this should be a goodgametype for a one day edit
    yea i just saw i saw to where u left out the MyersEnd

    0 Not allowed! Not allowed!

  10. #10
    Nooblet
    Join Date
    Jun 2012
    Posts
    14
    Points
    20
         User Info     Contact     Gamer ID
    Join Date
    Jun 2012
    Posts
    14
    Points
    20

    Default

    Well, I just ran it through a different script checker and it said "Unknown Function - "Jungle" on Line: 210"
    So maybe take out jungle?

    0 Not allowed! Not allowed!
    DERP

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