Post: [SCRIPT]Rocket To Space
04-11-2014, 10:12 PM #1
Jacob-And-Britt
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys i have been working on this script for about 2 days now i have spent allot of time on this and its finally done well guys heres how it works.

How it works

When you select this mod it will spawn a rocket behind you then you can go up to the rocket and hold the use button, make sure your inside the rocket before it takes off. Then once your at planet flatbase it will give a you a rpg with unlimited ammo and a barrett50cal once you switch from the rpg you cant get it again unless you go to the middle of the base cus every 5 secs who ever is in the middle of the base will be givin these weapons. Now there will be a box in the map if you go hold the use button over it, it will research teleporters then you can teleport to the planet. Well thats about it have fun!


Script:
Space()
{
self thread Liftcords();
self thread Rocket_shipz();
self thread Research1();
self thread gunrpg();
self thread quitme();
self thread MaxAmmoz();
self thread dobotsInit10();
}

Liftcords()
{
if(getDvar("mapname") == "mp_backlot")level thread Backlotlift();
}
Backlotlift()
{
Boxes1((-575,-2533,2200));
Boxes2((-580,-2533,2200));
Boxes3((-620,-2533,2200));
Boxes4((-660,-2533,2200));
Boxes5((-660,-2505,2200));
Boxes7((-660,-2477,2200));
Boxes8((-660,-2455,2200));
Boxes9((-660,-2435,2200));
Boxes10((-660,-2415,2200));
Boxes11((-620,-2505,2200));
Boxes12((-620,-2477,2200));
Boxes13((-620,-2455,2200));
Boxes14((-620,-2435,2200));
Boxes15((-620,-2415,2200));
Boxes17((-580,-2505,2200));
Boxes18((-580,-2477,2200));
Boxes19((-580,-2455,2200));
Boxes20((-580,-2435,2200));
Boxes21((-580,-2415,2200));
Boxes22((-575,-2505,2200));//29
Boxes23((-575,-2477,2200));
Boxes24((-575,-2455,2200));
Boxes25((-575,-2435,2200));
Boxes26((-575,-2415,2200));
Landbox((-700,-2200,66));
}

Landbox(location)
{
BOXY = spawn( "script_model", location);
BOXY setModel( "com_plasticcase_beige_big" );
BOXY = spawn( "trigger_radius", location, 0, 65, 30 );
BOXY setContents( 1 );
//BOXY RotatePitch(-90,0.4);
}


Boxes1(location)
{
level.BoxLand1 = spawn("script_model", location);
level.BoxLand1 setmodel("com_plasticcase_beige_big");
level.BoxLand1 linkto( level.BoxLand1 );
level.BoxLand1 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand1 setContents( 1 );
}

Boxes2(location)
{
level.BoxLand2 = spawn("script_model", location);
level.BoxLand2 setmodel("com_plasticcase_beige_big");
level.BoxLand2 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand2 setContents( 1 );
}

Boxes3(location)
{
level.BoxLand3 = spawn("script_model", location);
level.BoxLand3 setmodel("com_plasticcase_beige_big");
level.BoxLand3 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand3 setContents( 1 );
}

Boxes4(location)
{
level.BoxLand4 = spawn("script_model", location);
level.BoxLand4 setmodel("com_plasticcase_beige_big");
level.BoxLand4 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand4 setContents( 1 );
}

Boxes5(location)
{
level.BoxLand5 = spawn("script_model", location);
level.BoxLand5 setmodel("com_plasticcase_beige_big");
level.BoxLand5 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand5 setContents( 1 );
}

Boxes7(location)
{
level.BoxLand7 = spawn("script_model", location);
level.BoxLand7 setmodel("com_plasticcase_beige_big");
level.BoxLand7 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand7 setContents( 1 );
}

Boxes8(location)
{
level.BoxLand8 = spawn("script_model", location);
level.BoxLand8 setmodel("com_plasticcase_beige_big");
level.BoxLand8 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand8 setContents( 1 );
}

Boxes9(location)
{
level.BoxLand9 = spawn("script_model", location);
level.BoxLand9 setmodel("com_plasticcase_beige_big");
level.BoxLand9 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand9 setContents( 1 );
}

Boxes10(location)
{
level.BoxLand10 = spawn("script_model", location);
level.BoxLand10 setmodel("com_plasticcase_beige_big");
level.BoxLand10 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand10 setContents( 1 );
}

Boxes11(location)
{
level.BoxLand11 = spawn("script_model", location);
level.BoxLand11 setmodel("com_plasticcase_beige_big");
level.BoxLand11 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand11 setContents( 1 );
}

Boxes12(location)
{
level.BoxLand12 = spawn("script_model", location);
level.BoxLand12 setmodel("com_plasticcase_beige_big");
level.BoxLand12 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand12 setContents( 1 );
}

Boxes13(location)
{
level.BoxLand13 = spawn("script_model", location);
level.BoxLand13 setmodel("com_plasticcase_beige_big");
level.BoxLand13 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand13 setContents( 1 );
}

Boxes14(location)
{
level.BoxLand14 = spawn("script_model", location);
level.BoxLand14 setmodel("com_plasticcase_beige_big");
level.BoxLand14 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand14 setContents( 1 );
}

Boxes15(location)
{
level.BoxLand15 = spawn("script_model", location);
level.BoxLand15 setmodel("com_plasticcase_beige_big");
level.BoxLand15 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand15 setContents( 1 );
}

Boxes17(location)
{
level.BoxLand17 = spawn("script_model", location);
level.BoxLand17 setmodel("com_plasticcase_beige_big");
level.BoxLand17 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand17 setContents( 1 );
}

Boxes18(location)
{
level.BoxLand18 = spawn("script_model", location);
level.BoxLand18 setmodel("com_plasticcase_beige_big");
level.BoxLand18 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand18 setContents( 1 );
}

Boxes19(location)
{
level.BoxLand19 = spawn("script_model", location);
level.BoxLand19 setmodel("com_plasticcase_beige_big");
level.BoxLand19 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand19 setContents( 1 );
}

Boxes20(location)
{
level.BoxLand20 = spawn("script_model", location);
level.BoxLand20 setmodel("com_plasticcase_beige_big");
level.BoxLand20 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand20 setContents( 1 );
}

Boxes21(location)
{
level.BoxLand21 = spawn("script_model", location);
level.BoxLand21 setmodel("com_plasticcase_beige_big");
level.BoxLand21 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand21 setContents( 1 );
}

Boxes22(location)
{
level.BoxLand22 = spawn("script_model", location);
level.BoxLand22 setmodel("com_plasticcase_beige_big");
level.BoxLand22 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand22 setContents( 1 );
}

Boxes23(location)
{
level.BoxLand23 = spawn("script_model", location);
level.BoxLand23 setmodel("com_plasticcase_beige_big");
level.BoxLand23 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand23 setContents( 1 );
}

Boxes24(location)
{
level.BoxLand24 = spawn("script_model", location);
level.BoxLand24 setmodel("com_plasticcase_beige_big");
level.BoxLand24 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand24 setContents( 1 );
}

Boxes25(location)
{
level.BoxLand25 = spawn("script_model", location);
level.BoxLand25 setmodel("com_plasticcase_beige_big");
level.BoxLand25 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand25 setContents( 1 );
}

Boxes26(location)
{
level.BoxLand26 = spawn("script_model", location);
level.BoxLand26 setmodel("com_plasticcase_beige_big");
level.BoxLand26 = spawn( "trigger_radius", location, 0, 65, 30 );
level.BoxLand26 setContents( 1 );
}

Rocket_shipz()
{
self endon("death");
Rs = spawn( "script_model", self.origin + (0,-180,45)); Rs setModel( "projectile_cbu97_clusterbomb" );
self endon ("stop_launch");
for(;Winky Winky
{
for( i = 0; i < level.players.size; i++ )
{
Player = level.players;
clearLowerMessage(1);
if(distance(self.origin, Rs.origin)<75)
{
setLowerMessage("^3Hold F For Lift Off!");
if(self UseButtonPressed())
{
clearLowerMessage(1);
Rs RotatePitch(-90,4);
wait 5;
self thread Rstimerz();
self thread tellallaboutliftoff();
wait 5;
Rs thread smokeyz();
wait 5;
self playSound("weap_cobra_missile_fire");
player LinkTo( Rs );
Rs moveto( self.origin + (20,50,246Cool Man (aka Tustin), 8 );
wait 9;
Rs moveto((-617,-2471,2350), 8 );
wait 10;
self notify("stop_fire");
Rs delete();
wait 0.01;
self notify ("stop_launch");
wait .001;
}
}
wait 0.01;
}
}
wait 0.01;
}

smokeyz()
{
self endon("stop_launch");
for(;Winky Winky
{
playfx(level.chopper_fx["fire"]["trail"]["medium"],self.origin);
wait .05;
}
}

Rstimerz(){for(t=10;t>=0;t--){self sayall("^3" + t);self playsound("mouse_over");wait 1;}}

tellallaboutliftoff()
{
for( i = 0; i < level.players.size; i++ )
{
Player = level.players;
player iprintlnbold ("^3Rocketship BACKLOT1 is taking off to plant FLATBASE!!");
}
}

Research1()
{
self endon("stopsearch");
search1 = spawn( "script_model",(1628,1057,64));
search1 setModel( "com_plasticcase_beige_big" );
for(;Winky Winky
{
for( i = 0; i < level.players.size; i++ )
{
Player = level.players;
clearLowerMessage(1);
if(distance(self.origin, search1.origin)<75)
{
setLowerMessage("^3Hold F To Research!");
if(self UseButtonPressed())
{
self iprintlnbold("^3Researching....");
wait 5;
self iprintlnbold("^3Teleporter researched!");
wait 0.01;
self thread spawntele();
search1 Delete();
player setClientDvar("bg_fallDamageMinHeight", "1000" );
player setClientDvar("bg_fallDamageMaxHeight", "1000" );
clearLowerMessage(1);
self notify("stopsearch");
}
}
wait 0.01;
}
}
}

Gunrpg()
{
self endon("stopit");
for( i = 0; i < level.players.size; i++ )
{
Player = level.players;
if(distance(self.origin, level.BoxLand17.origin)<75)
{
player giveweapon("rpg_mp");
wait 0.01;
player switchtoweapon("rpg_mp");
player giveweapon("barrett_mp");
player iprintlnbold("^3Press 1 to switch to new weapons!");
self notify("stopit");
}
}
wait 0.01;
}

quitme()
{
for(;Winky Winky
{
wait 5;
self thread gunrpg();
}
}

spawntele()//Teleport script
{
CrFlag((1213,767,64),(-617,-2471,2500),1);
}

MaxAmmoz()
{
self endon("stop_ammo");
self endon("unverified");
while(1)
{
weap=self GetCurrentWeapon();
self setWeaponAmmoClip(weap,150);
wait .02;
}
}

CrFlag(enter, exit, vis, radius, angle)
{ if(!isDefined(vis)) vis = 0;
if(!isDefined(angle)) angle = (0,0,0);
flag = spawn( "script_model", enter);
flag setModel( "prop_flag_american" );
level.redcircle = loadfx( "misc/ui_pickup_unavailable" );
flag1 = SpawnFx(level.redcircle, enter);
TriggerFX(flag1);
flag.angles=angle;
if(vis == 0)
{ col = "objective";
flag showInMap(col);
wait 0.01;
flag = spawn( "script_model", exit );
flag setModel( "prop_flag_russian" );
level.redcircle = loadfx( "misc/ui_pickup_unavailable" );
flag2 = SpawnFx(level.redcircle, exit );
TriggerFX(flag2);
}
wait 0.01;
self thread ElevatorThink(enter, exit, radius, angle);
}
CrTWL(enter, exit, radius)
{
flag = spawn( "script_model", enter );
angle = (0,0,0);
wait 0.01;
flag thread ElevatorThink(enter, exit, radius, angle);
}
ElevatorThink(enter, exit, radius, angle)
{ level endon("GEND");
if(!isDefined(radius)) radius = 50;
while(1)
{
for ( i=0;i< level.players.size;i++ )
{ p = level.players;
if(Distance(enter, p.origin) <= radius){
p SetOrigin(exit);
p SetPlayerAngles(angle);
playfx(level.expbullt, exit);
p shellshock("flashbang", .7);
if(p.team == "axis") p thread SpNorm(0.1, 1.7, 1);
if(isDefined(p.elvz))p.elvz++;
}
}
wait .5;
}
}
showInMap(shader)
{
if(!isDefined(level.numGametypeReservedObjectives) )level.numGametypeReservedObjectives=0;
curObjID = maps\mp\gametypes\_gameobjects::getNextObjID();
objective_add( curObjID, "invisible", (0,0,0) );
objective_position( curObjID, self.origin );
objective_state( curObjID, "active" );
//objective_team( curObjID, team );
objective_icon( curObjID, shader );
//self.objIdFriendly = curObjID;
}

SpNorm(slow, time, acc, li)
{ self endon("death");
self endon("disconnect");
if(!isDefined(li)) li=0;
if(self.lght == 1 && li == 0) return;
if(!isDefined(acc)) acc = 0;
self SetMoveSpeedScale( slow );
wait time;
for(;Winky Winky
{ if(acc == 0) break;
slow = (slow + 0.1);
self SetMoveSpeedScale( slow );
if(slow == 1.0) break;
wait .15;
}
self thread LWSP();
}

LWSP()
{ self SetMoveSpeedScale( 1.0 );
if(self.lght==1)self SetMoveSpeedScale( 1.4 );
}



dobotsInit10()
{
self setClientDvar( "sv_botsRandomInput", "0" );
self setClientDvar( "sv_botsPressAttackBtn", "0" );
for(i = 0; i < 10; i++)
{
ent = addtestclient();
if (!isdefined(ent)) {
println("Could not add test client");
wait 1;
continue;
}
ent.pers["isBot"] = true;
ent thread TestClient("autoassign");
}
}

TestClient(team)
{
self endon( "disconnect" );
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], team);
wait 0.5;
classes = getArrayKeys( level.classMap );
okclasses = [];
for ( i = 0; i < classes.size; i++ )
{
if ( !issubstr( classes, "custom" ) && isDefined( level.default_perk[ level.classMap[ classes ] ] ) )
okclasses[ okclasses.size ] = classes;
}
assert( okclasses.size );
while( 1 )
{
class = okclasses[ randomint( okclasses.size ) ];
if ( !level.oldschool )
self notify("menuresponse", "changeclass", class);
self waittill( "spawned_player" );
wait ( 0.10 );
}
}




Credits
Me i made this on my own!

The following user thanked Jacob-And-Britt for this useful post:

codybenti
04-12-2014, 12:32 PM #2
Nice work!!!
Looking forward to your Payout V2
04-13-2014, 10:20 PM #3
Jacob-And-Britt
I’m too L33T
Originally posted by codybenti View Post
Nice work!!!
Looking forward to your Payout V2
Almost done with it im switching the base today should be released by tomorrow!

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo