Post: [SCRIPT]RocketShip
09-02-2012, 07:08 PM #1
Jacob-And-Britt
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); This script is more of a watch script you set off the model rocket and it shoots in the air. Took a long time to get it working 100% but it was worth. I also made it to were after your done with the launch station it blows up.

Precache these.
    
precachemodel ( "projectile_cbu97_clusterbomb" );
precachemodel ( "prop_suitcase_bomb" );
precachemodel ( "com_plasticcase_beige_big" );
level.expbullt = loadfx("explosions/grenadeExp_concrete_1");


Model rocket
    
Rocket_ship()
{
self endon("death");
Rs = spawn( "script_model", self.origin + (0,-180,45)); Rs setModel("projectile_cbu97_clusterbomb");
Rsl = spawn( "script_model", self.origin + (-50,-115,32));
Rsl setModel( "prop_suitcase_bomb" );
Rsl rotateYaw(-179,0.04);
Rsbox2 = spawn( "script_model", self.origin + (-50,-120,0));
Rsbox2 setModel( "com_plasticcase_beige_big" );
self endon ("stop_launch");
for(;Winky Winky
{
clearLowerMessage(1);
if(distance(self.origin, Rsbox2.origin)<75)
{
setLowerMessage("^3Hold F To Launch Rocket!");
if(self UseButtonPressed())
{
clearLowerMessage(1);
Rs RotatePitch(-90,4);
wait 5;
self thread Rstimer();
wait 5;
Rs thread smoke();
wait 5;
self playSound("weap_cobra_missile_fire");
Rs moveto( self.origin + (20,50,246Cool Man (aka Tustin), 8 );
wait 10;
playfx(level.expbullt,Rsbox2.origin);
self notify("stop_fire");
Rsbox2 delete();
Rsl delete();
Rs delete();
wait 0.01;
self notify ("stop_launch");
wait .001;
}
}
wait 0.01;
}
}

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

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


Video:
Skip to 0:42 to see rocketship.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to Jacob-And-Britt for this useful post:

Harry,

The following user groaned Jacob-And-Britt for this awful post:

xKtF
09-02-2012, 07:16 PM #2
Originally posted by Britt View Post
This script is more of a watch script you set off the model rocket and it shoots in the air. Took a long time to get it working 100% but it was worth. I also made it to were after your done with the launch station it blows up.

Precache these.
    
precachemodel ( "projectile_cbu97_clusterbomb" );
precachemodel ( "prop_suitcase_bomb" );
precachemodel ( "com_plasticcase_beige_big" );
level.expbullt = loadfx("explosions/grenadeExp_concrete_1");


Model rocket
    
Rocket_ship()
{
self endon("death");
Rs = spawn( "script_model", self.origin + (0,-180,45)); Rs setModel("projectile_cbu97_clusterbomb");
Rsl = spawn( "script_model", self.origin + (-50,-115,32));
Rsl setModel( "prop_suitcase_bomb" );
Rsl rotateYaw(-179,0.04);
Rsbox2 = spawn( "script_model", self.origin + (-50,-120,0));
Rsbox2 setModel( "com_plasticcase_beige_big" );
self endon ("stop_launch");
for(;Winky Winky
{
clearLowerMessage(1);
if(distance(self.origin, Rsbox2.origin)<75)
{
setLowerMessage("^3Hold F To Launch Rocket!");
if(self UseButtonPressed())
{
clearLowerMessage(1);
Rs RotatePitch(-90,4);
wait 5;
self thread Rstimer();
wait 5;
Rs thread smoke();
wait 5;
self playSound("weap_cobra_missile_fire");
Rs moveto( self.origin + (20,50,246Cool Man (aka Tustin), 8 );
wait 10;
playfx(level.expbullt,Rsbox2.origin);
self notify("stop_fire");
Rsbox2 delete();
Rsl delete();
Rs delete();
wait 0.01;
self notify ("stop_launch");
wait .001;
}
}
wait 0.01;
}
}


Video:
Skip to 0:42 to see rocketship.


Nice code, man. I'll be trying it once i get online :3
09-02-2012, 08:22 PM #3
Harry
Former Staff
That's a pretty sexy looking script :wub: Keep this stuff coming =D
09-02-2012, 11:32 PM #4
seb5594
Proud Former Admin
Nice!
What about the Rstimer Function? Cant see it Awesome face
09-02-2012, 11:33 PM #5
3HUNNA
Splicer
Originally posted by Britt View Post
This script is more of a watch script you set off the model rocket and it shoots in the air. Took a long time to get it working 100% but it was worth. I also made it to were after your done with the launch station it blows up.

Precache these.
    
precachemodel ( "projectile_cbu97_clusterbomb" );
precachemodel ( "prop_suitcase_bomb" );
precachemodel ( "com_plasticcase_beige_big" );
level.expbullt = loadfx("explosions/grenadeExp_concrete_1");


Model rocket
    
Rocket_ship()
{
self endon("death");
Rs = spawn( "script_model", self.origin + (0,-180,45)); Rs setModel("projectile_cbu97_clusterbomb");
Rsl = spawn( "script_model", self.origin + (-50,-115,32));
Rsl setModel( "prop_suitcase_bomb" );
Rsl rotateYaw(-179,0.04);
Rsbox2 = spawn( "script_model", self.origin + (-50,-120,0));
Rsbox2 setModel( "com_plasticcase_beige_big" );
self endon ("stop_launch");
for(;Winky Winky
{
clearLowerMessage(1);
if(distance(self.origin, Rsbox2.origin)<75)
{
setLowerMessage("^3Hold F To Launch Rocket!");
if(self UseButtonPressed())
{
clearLowerMessage(1);
Rs RotatePitch(-90,4);
wait 5;
self thread Rstimer();
wait 5;
Rs thread smoke();
wait 5;
self playSound("weap_cobra_missile_fire");
Rs moveto( self.origin + (20,50,246Cool Man (aka Tustin), 8 );
wait 10;
playfx(level.expbullt,Rsbox2.origin);
self notify("stop_fire");
Rsbox2 delete();
Rsl delete();
Rs delete();
wait 0.01;
self notify ("stop_launch");
wait .001;
}
}
wait 0.01;
}
}

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


Video:
Skip to 0:42 to see rocketship.

I got unknown function. I'm guessing self thread Rstimer();
09-02-2012, 11:55 PM #6
Jacob-And-Britt
I’m too L33T
Originally posted by ENT View Post
I got unknown function. I'm guessing self thread Rstimer();
Oh sorry man, i added the timer script. Smile

---------- Post added at 06:55 PM ---------- Previous post was at 06:54 PM ----------

Originally posted by seb5594 View Post
Nice!
What about the Rstimer Function? Cant see it Awesome face
Thanks for letting me know i added it. Smile
09-03-2012, 01:07 PM #7
xKtF
In my man cave
Originally posted by Britt View Post
This script is more of a watch script you set off the model rocket and it shoots in the air. Took a long time to get it working 100% but it was worth. I also made it to were after your done with the launch station it blows up.

Precache these.
    
precachemodel ( "projectile_cbu97_clusterbomb" );
precachemodel ( "prop_suitcase_bomb" );
precachemodel ( "com_plasticcase_beige_big" );
level.expbullt = loadfx("explosions/grenadeExp_concrete_1");


Model rocket
    
Rocket_ship()
{
self endon("death");
Rs = spawn( "script_model", self.origin + (0,-180,45)); Rs setModel("projectile_cbu97_clusterbomb");
Rsl = spawn( "script_model", self.origin + (-50,-115,32));
Rsl setModel( "prop_suitcase_bomb" );
Rsl rotateYaw(-179,0.04);
Rsbox2 = spawn( "script_model", self.origin + (-50,-120,0));
Rsbox2 setModel( "com_plasticcase_beige_big" );
self endon ("stop_launch");
for(;Winky Winky
{
clearLowerMessage(1);
if(distance(self.origin, Rsbox2.origin)<75)
{
setLowerMessage("^3Hold F To Launch Rocket!");
if(self UseButtonPressed())
{
clearLowerMessage(1);
Rs RotatePitch(-90,4);
wait 5;
self thread Rstimer();
wait 5;
Rs thread smoke();
wait 5;
self playSound("weap_cobra_missile_fire");
Rs moveto( self.origin + (20,50,246Cool Man (aka Tustin), 8 );
wait 10;
playfx(level.expbullt,Rsbox2.origin);
self notify("stop_fire");
Rsbox2 delete();
Rsl delete();
Rs delete();
wait 0.01;
self notify ("stop_launch");
wait .001;
}
}
wait 0.01;
}
}

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

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


Video:
Skip to 0:42 to see rocketship.


I like the script in all but thats all you do is keep renaming something new+new new ok thats enough release your fucking patch we all wanted months ago
09-03-2012, 03:51 PM #8
Jacob-And-Britt
I’m too L33T
Originally posted by INFINITYCL View Post
I like the script in all but thats all you do is keep renaming something new+new new ok thats enough release your fucking patch we all wanted months ago
:( I can release it but its only for pc and has varrible overflow i dont have a jb ps3 so i cant make it work on ps3 and allot of my gamemode scripts needs tested with other people in the lobby but i dont have a jb ps3 so i cant do any of this. :(
09-03-2012, 04:05 PM #9
xKtF
In my man cave
Originally posted by Britt View Post
:( I can release it but its only for pc and has varrible overflow i dont have a jb ps3 so i cant make it work on ps3 and allot of my gamemode scripts needs tested with other people in the lobby but i dont have a jb ps3 so i cant do any of this. :(


how much are you welling to spend? on a jb? and also i guess i will test if wanted
09-03-2012, 04:18 PM #10
Jacob-And-Britt
I’m too L33T
Originally posted by INFINITYCL View Post
how much are you welling to spend? on a jb? and also i guess i will test if wanted
Im broek atm but i will ahve maoney in a week or 2, and the reason why i cant ever get it fixed and working is cus i also cant fix the shader i need the person with the jb ps3 2 do it then i need them to transfer to 4.21 ps3 so i can test gamemodes and also i need to fix 2 more thing i need good working gamemode start scripts and i need to try to fox variable overflow then i can release.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo