Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2015
    Posts
    71
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    71
    Points
    138

    Contact info:

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

    Default [SC7E52] AllMoDs & Dr.GiggleZ Aerial war's every one jets a jet to fight in

    cred
    Dr.GiggleZ
    and maker of Flyable Plane script Teh1337
    vid comming soon


    adding a missile lock system ( allmost dun with the script )
    adding some kind of smoke screen ( testing it )
    and more


    plays fine to kill players shoot cockpit

    t5_veh_jet_f4_gearup_mp is what you fight in plays ok


    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();
    	setDvar( "didyouknow", "^3KrooKlyN's ^2Gametype^1 Edit" );
    	
    	
    	level.matchHasntStarted = 1;
    	wait level.prematchPeriod;
    	level.matchHasntStarted = 0;
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    		player thread onPlayerSpawned();
    	}
    }
    onPlayerConnected()
    {    
    	for(;;)
    	{
    		level waittill( "connected", player );
    		player thread doIntro();
    	}
    }
    doIntro()
    {
    	self waittill( "spawned_player" );
    	while(level.matchHasntStarted)
    		wait 0.1;
    	wait 0.8;
    	self thread scrollFadeText( 4, "CENTER", "CENTER", 0, 0, "", "KrooKlyN's Aerial War's" );
    }
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread spawnStuff();
    		self thread humanHealth();
    		self thread doFlyplane();
    	}
    }
    scrollFadeText( fontscale, pos1, pos2, x, y, color, text )
    {
    	message = [];
    	txt = GetSubStr(text,0);
    	for(i=0;i<txt.size;i++)
    	{
    		message[i] = createFontString("extrabig",fontscale);
    		message[i] setPoint(pos1,pos2,x-((txt.size/2)*(fontscale*6))+((fontscale*6)*i),y);
    		message[i].glow = 1; 
    		message[i].glowColor = ( 1, 0, 1 ); 
    		message[i].glowAlpha = 1; ; 
    		message[i] setText(color+txt[i]);
    		message[i].alpha = 0;
    	}
    	for(i=0;i<message.size;i++)
    	{
    		message[i] doFade(0.3,1);
    		wait 0.3;
    		message[i] doFade(0.5,0);
    	}
    	wait 0.7;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(1,1);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(2,0);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] destroy();
    }
    
    doFade( time, alpha )
    {
    	self FadeOverTime(time);
    	self.alpha = alpha;
    }
    Timer()
    {
            self endon ( "disconnect" );
    
            displayText = self createFontString( "objective", 4.6 );
            displayText setPoint( "CENTER", "TOP",0, -15 );
            displayText.glow = 1; 
            displayText.glowColor = ( 2, 4, 6 ); 
            displayText.glowAlpha = 1; ; 
    
            for( ;; )
            { 
            displayText setText("^0KrooKlyN's ^1Aerial ^3War's");
            wait 0.1;
            displayText setText("^1KrooKlyN's ^3Aerial ^0War's");
            wait 0.1;
    	displayText setText("^3KrooKlyN's ^0Aerial ^1War's");
            wait 0.1;
            displayText setText("^1KrooKlyN's ^3Aerial ^0War's");
            wait 0.1;                                             
           }
    }
    spawnStuff()
    {	
    	
    	self.maxhealth = 100;
    	self.health = self.maxhealth;
    }
    doFlyplane()
    {
    	self endon("planeout");
    	self endon("death");
    	self.wbef = self GetWeaponsList();
    	self.bor = self.origin;
    	self thread doShoot();
    	self takeAllWeapons();
    	self.myplane = spawn("script_model", self.origin);
    	self.myplane.angles = self.angles;
    	self.myplane setModel("t5_veh_jet_f4_gearup_mp");
    	self thread delond(self.myplane);
    	self linkto(self.myplane, "tag_origin", (0, 0, 0), (0, 0, 0));
    	self setClientUIVisibilityFlag("hud_visible", 0);
    	self.mcross = self createFontString("default", 2);
    	self.mcross setPoint("CENTER", "CENTER", 0, 0);
    	self.mcross setText("^1+");
    	self thread dond(self.mcross);
    	self setLowerMessage("\n\n\n\n\n^1Press [{+frag}] to Toggle Weapons ^7|^3 Press [{+speed_throw}] to Shoot ^7|^2 Press [{+attack}] to Fly! ^7");
    	for (;;)
    	{
    		self.myplane.angles = self getplayerangles();
    		if (self AttackButtonPressed()) self.myplane moveto(self.myplane.origin + anglestoforward(self getplayerangles()) * 120, 0.015);
    		wait 0.01;
    	}
    }
    doShoot()
    {
    	self.gunselc = 0;
    	self.pguns = [];
    	self.pguns[0] = "rpg_mp";
    	self.pguns[1] = "strela_mp";
    	self.pguns[2] = "minigun_mp";
    	self.pguns[3] = "m202_flash_mp";
    	self.pguns[4] = "crossbow_explosive_mp";
    	self.pguns[5] = "l96a1_mp";
    	self.pguns[6] = "m60_mp";
    	self endon("death");
    	self endon("planeout");
    	for (;;)
    	{
    		if (self ADSButtonPressed())
    		{
    			firing = GetCursorPos();
    			MagicBullet(self.pguns[self.gunselc], self.myplane.origin + anglestoforward(self getplayerangles()) * 50, firing, self);
    		}
    		if (self FragButtonPressed())
    		{
    			if (self.gunselc == self.pguns.size - 1) self.gunselc = 0;
    			else self.gunselc++;
    			self iprintlnbold("Gun is now: ^1" + self.pguns[self.gunselc]);
    			wait 1;
    		}
    		wait 0.1;
    	}
    }
    delond(ent)
    {
    	self waittill("death");
    	ent delete();
    }
    dond(elem)
    {
    	self waittill("death");
    	elem destroy();
    }
    GetCursorPos()
    {
    	forward = self getTagOrigin("tag_eye");
    	end = self thread vector_scal(anglestoforward(self getPlayerAngles()), 1000000);
    	location = BulletTrace(forward, end, 0, self)["position"];
    	return location;
    }
    vector_scal(vec, scale)
    {
    	vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    	return vec;
    }
    humanHealth()
    {
    	self.healthBar = self createBar( ( 1, 1, 1 ), 200, 13 );
    	self.healthBar setPoint( "CENTER", "BOTTOM", 0, -4 );
    	self.healthText = self createFontString( "objective", 1.5 );
    	self.healthText setPoint( "CENTER", "BOTTOM", 0, -20 );
    	self.healthText setText( "^1Max Health: " + self.maxhealth);
    	for(;;)
    	{
    		self.healthBar updateBar( self.health / self.maxhealth );
    		wait 0.01;
    	}
    }






    plays way better you fight in
    vehicle_cobra_helicopter_mp_light


    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();
    	
    	level.matchHasntStarted = 1;
    	wait level.prematchPeriod;
    	level.matchHasntStarted = 0;
    }
    onPlayerConnect()
    {	
    	for(;;)
    	{
    	level waittill( "connecting", player );
    	player thread onPlayerSpawned();
    	}
    }
    onPlayerConnected()
    {    
    	for(;;)
    	{
    	level waittill( "connected", player );
    	player thread doIntro();
    	}
    }
    doIntro()
    {
    	self waittill( "spawned_player" );
    	while(level.matchHasntStarted)
    		wait 0.1;
    	wait 0.8;
    	self thread scrollFadeText( 4, "CENTER", "CENTER", 0, 0, "", "KrooKlyN's Aerial War's" );
    }
    onPlayerSpawned()
    {
    	for(;;)
    	{
    	self waittill( "spawned_player" );
    	self thread spawnStuff();
    	self thread doFlyplane();
    	}
    }
    scrollFadeText( fontscale, pos1, pos2, x, y, color, text )
    {
    	message = [];
    	txt = GetSubStr(text,0);
    	for(i=0;i<txt.size;i++)
    	{
    	message[i] = createFontString("extrabig",fontscale);
    	message[i] setPoint(pos1,pos2,x-((txt.size/2)*(fontscale*6))+((fontscale*6)*i),y);
    	message[i].glow = 1; 
    	message[i].glowColor = ( 1, 0, 1 ); 
    	message[i].glowAlpha = 1; ; 
    	message[i] setText(color+txt[i]);
    	message[i].alpha = 0;
    	}
    	for(i=0;i<message.size;i++)
    	{
    	message[i] doFade(0.3,1);
    	wait 0.3;
    	message[i] doFade(0.5,0);
    	}
    	wait 0.7;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(1,1);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] doFade(2,0);
    	wait 2;
    	for(i=0;i<message.size;i++)
    		message[i] destroy();
    }
    
    doFade( time, alpha )
    {
    	self FadeOverTime(time);
    	self.alpha = alpha;
    }
    Timer()
    {
            self endon ( "disconnect" );
    
            displayText = self createFontString( "objective", 4.6 );
            displayText setPoint( "CENTER", "TOP",0, -15 );
            displayText.glow = 1; 
            displayText.glowColor = ( 2, 4, 6 ); 
            displayText.glowAlpha = 1; ; 
    
            for( ;; )
            { 
            displayText setText("^0KrooKlyN's ^1Aerial ^3War's");
            wait 0.1;
            displayText setText("^1KrooKlyN's ^3Aerial ^0War's");
            wait 0.1;
    	displayText setText("^3KrooKlyN's ^0Aerial ^1War's");
            wait 0.1;
            displayText setText("^1KrooKlyN's ^3Aerial ^0War's");
            wait 0.1;                                             
           }
    }
    spawnStuff()
    {	
    	
    	self.maxhealth = 200;
    	self.health = self.maxhealth;
    }
    doFlyplane()
    {
    	self endon("planeout");
    	self.wbef = self GetWeaponsList();
    	self.bor = self.origin;
    	self thread doShoot();
    	self takeAllWeapons();
    	self hide();
    	self.myplane = spawn("script_model", self.origin);
    	self.myplane.angles = self.angles;
    	self.myplane setModel("vehicle_cobra_helicopter_mp_light");
    	self thread delond(self.myplane);
    	self linkto(self.myplane, "tag_origin", (0, 0, 0), (0, 0, 0));
    	self setClientUIVisibilityFlag("hud_visible", 0);
    	self.mcross = self createFontString("default", 2);
    	self.mcross setPoint("CENTER", "CENTER", 0, 0);
    	self.mcross setText("^1+");
    	self thread dond(self.mcross);
    	self setLowerMessage("\n\n\n\n\n^1Press [{+frag}] to Toggle Weapons ^7|^3 Press [{+speed_throw}] to Shoot ^7|^2 Press [{+attack}] to Fly!");
    	for (;;)
    	{
    		self.myplane.angles = self getplayerangles();
    		if (self AttackButtonPressed()) self.myplane moveto(self.myplane.origin + anglestoforward(self getplayerangles()) * 120, 0.015);
    		wait 0.01;
    	}
    }
    doShoot()
    {
    	self.gunselc = 0;
    	self.pguns = [];
    	self.pguns[0] = "rpg_mp";
    	self.pguns[1] = "strela_mp";
    	self.pguns[2] = "l96a1_mp";
    	self.pguns[3] = "m202_flash_mp";
    	self.pguns[4] = "m72_law_mp";
    	self endon("death");
    	self endon("planeout");
    	for (;;)
    	{
    	if (self ADSButtonPressed())
    	{
    	firing = GetCursorPos();
    	MagicBullet(self.pguns[self.gunselc], self.myplane.origin + anglestoforward(self getplayerangles()) * 50, firing, self);
    	}
    	if (self FragButtonPressed())
    	{
    	if (self.gunselc == self.pguns.size - 1) self.gunselc = 0;
    	else self.gunselc++;
    	self iprintlnbold("Gun is now: ^1" + self.pguns[self.gunselc]);
    	wait 1;
    	}
    	wait 0.1;
    	}
    }
    delond(ent)
    {
    	self waittill("death");
    	ent delete();
    }
    dond(elem)
    {
    	self waittill("death");
    	elem destroy();
    }
    GetCursorPos()
    {
    	forward = self getTagOrigin("tag_eye");
    	end = self thread vector_scal(anglestoforward(self getPlayerAngles()), 1000000);
    	location = BulletTrace(forward, end, 0, self)["position"];
    	return location;
    }
    vector_scal(vec, scale)
    {
    	vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    	return vec;
    }

    0 Not allowed! Not allowed!
    Last edited by AllMoDs; 06-05-2015 at 03:12 PM. Reason: update

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

    Well next time give credit where credit its do. you're using teh1337 or Tony's Flyable plane.

    https://www.horizonmb.com/threads/54...-Flyable-Plane!

    0 Not allowed! Not allowed!


    PS4 Profile:

  3. #3
    Member
    Join Date
    Jan 2015
    Posts
    71
    Points
    138
         User Info     Contact     Gamer ID
    Join Date
    Jan 2015
    Posts
    71
    Points
    138

    Contact info:

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

    Default

    i said will add cred to maker win i get name right
    at top of post and ty i didnt no who to cred had scripts with 2 names from 2 dif websites didnt want to cred rong person

    0 Not allowed! Not allowed!
    Last edited by AllMoDs; 06-05-2015 at 03:12 PM.

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