Results 1 to 1 of 1

Thread: Script Help

  1. #1
    ✝ Pursuit of Happiness ✝ Sh0x's Avatar

    Badge

    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,838
    Points
    3,175
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,838
    Points
    3,175
    Gamer IDs

    Gamertag: iiSh0x

    Contact info:

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

    Default Script Help

    Nevermind, but here is a preview of my racetrack.

    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    main()
    {
    	thread init();
    
    }
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    	thread doMap();
    
    }
    onPlayerConnect()
    {
    	for(;
    	;
    	)
    	{
    		level waittill( "connecting", player );
    		player thread onPlayerSpawned();
    
    	}
    
    }
    onPlayerConnected()
    {
    	for(;
    	;
    	)
    	{
    		level waittill( "connected", player );
    
    	}
    
    }
    onPlayerSpawned()
    {
    	for(;
    	;
    	)
    	{
    		self waittill( "spawned_player" );
    		self thread doSettings();
    		self thread doVars();
    
    	}
    
    }
    doVars()
    {
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_scorelimit", 0 );
    	setDvar( "scr_" + getDvar( "g_gametype" ) + "_timelimit", 0 );
    	setDvar("scr_rcbomb_notimeout", 1 );
    
    }
    doSettings()
    {
    	self setLowerMessage( "Welcome to zSh0x's RC-XD Race Track" );
    	wait 10;
    	self setLowerMessage( "" );
    	while(1)
    	{
    		self maps\mp\gametypes\_hardpoints::giveKillstreak( "rcbomb_mp", "rcbomb_mp", true, false );
    		wait 30;
    
    	}
    
    }
    createGreen( pos, angle )
    {
    	crateG = spawn( "script_model", pos );
    	crateG setModel( "mp_supplydrop_ally" );
    	crateG.angles = angle;
    
    }
    doMap()
    {
    	createGreen( ( -1960, -518, 59 ), ( 0, 90, 0 ) );
    	createGreen( ( -1413, -639, -5 ), ( 0, 90, 0 ) );
    	createGreen( ( -1315, -501, -12 ), ( 0, 90, 0 ) );
    	createGreen( ( -1247, -496, -12 ), ( 0, 90, 0 ) );
    	createGreen( ( -1198, -500, -12 ), ( 0, 90, 0 ) );
    	createGreen( ( -1126, -496, -12 ), ( 0, 90, 0 ) );
    	createGreen( ( -1117, -494, -12 ), ( 0, 90, 0 ) );
    	wait 1;
    	createGreen( ( -189, -1154, 0 ), ( 0, 90, 0 ) );
    	createGreen( ( 153, -728, -2 ), ( 0, 90, 0 ) );
    	createGreen( ( 88, -722, -2 ), ( 0, 90, 0 ) );
    	createGreen( ( 16, -726, -2 ), ( 0, 90, 0 ) );
    	createGreen( ( -33, -728, -2 ), ( 0, 90, 0 ) );
    	wait 1;
    	createGreen( ( 1221, -592, 10 ), ( 0, 60, 0 ) );
    	createGreen( ( 1152, -522, 10 ), ( 0, 60, 0 ) );
    	createGreen( ( 1099, -468, 10 ), ( 0, 60, 0 ) );
    	createGreen( ( 1063, -417, 10 ), ( 0, 90, 0 ) );
    	wait 1;
    	createGreen( ( 1473, -580, 6 ), ( 0, 120, 0 ) );
    	createGreen( ( 1527, -547, 6 ), ( 0, 120, 0 ) );
    	createGreen( ( 1584, -518, 6 ), ( 0, 120, 0 ) );
    	createGreen( ( 1634, -500, 6 ), ( 0, 120, 0 ) );
    	createGreen( ( 1679, -435, 6 ), ( 0, 120, 0 ) );
    	createGreen( ( 1722, -339, 6 ), ( 0, 120, 0 ) );
    	wait 1;
    	createGreen( ( 1962, -155, 15 ), ( 0, 0, 0 ) );
    	createGreen( ( 1967, -90, 9 ), ( 0, 0, 0 ) );
    	createGreen( ( 1972, -12, 3 ), ( 0, 0, 0 ) );
    	createGreen( ( 1971, 72, -2 ), ( 0, 0, 0 ) );
    	createGreen( ( 1969, 122, 6 ), ( 0, 0, 0 ) );
    	wait 1;
    	createGreen( ( 1567, 574, -19 ), ( 0, 90, 0 ) );
    	createGreen( ( 1524, 574, -19 ), ( 0, 90, 0 ) );
    	createGreen( ( 1315, 960, 0 ), ( 0, 90, 0 ) );
    	createGreen( ( 944, 973, -6 ), ( 0, 90, 0 ) );
    	createGreen( ( 852, 963, -6 ), ( 0, 90, 0 ) );
    	createGreen( ( 766, 957, -6 ), ( 0, 90, 0 ) );
    	wait 1;
    	createGreen( ( 1333, 411, 7 ), ( 0, 120, 0 ) );
    	createGreen( ( 1276, 369, -2 ), ( 0, 120, 0 ) );
    	createGreen( ( 1244, 333, -3 ), ( 0, 120, 0 ) );
    	createGreen( ( 328, -19, 0 ), ( 0, 60, 0 ) );
    
    }

    0 Not allowed! Not allowed!
    Last edited by Sh0x; 08-11-2012 at 12:09 AM.





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