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-03-2012, 09:40 PM #11
OmGRhys-x
Are you high?
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.



Nice Thanks 4 this workes fine on ps3, just dont need 2 precach anything lol Smile
09-03-2012, 10:04 PM #12
thanks mate, this is going in my patch..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo