Post: [SCRIPT] Toggle Bullets (Explosives, HQ Boxes, Jets, Choppers, Normal Bullets)
10-31-2011, 02:23 AM #1
IVI40A3Fusionz
Former Gaming Squad Member
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys im here with another script which allows you to shoot 4 different types of bullets, Explosives, HQ Boxes, Jets, Chopper and Normal Bullets. I got the idea of this when i thought that instead of having 4 different options for these why dont i put them into a toggle so thats what i did and this works 100% no problems! It can be edited so you can put in what ever models or bullets you want to shoot. It could also probably be shortened a bit but im still a noob at modding so i go the long way round Winky Winky. Any way onto the scripts!

First put thread this to onplayerspawned();
    self thread Toggles();



and then put this code anywhere in the gsc,
    Toggles(){
self thread doBullets();
}



Then thread ToggleBullets in your menu!
For example mine is:
    self addoption(M ,"Toggle Bullets",::ToggleBullets);



Now finally put this anywhere in the gsc,

    doBullets(){
self endon ( "death" );
for(;Winky Winky
{
self waittill ("Bullets");
self iPrintln("^2You Can Now Shoot Explosives!");
self thread mininukes();
self.nuke = true;
self notify("stop_plane");self notify("stop_hind");self notify("stop_box");
self.plane = false;self.box = false;self.hind = false;
self waittill ("Bullets");
self iPrintln("^2You Can Now Shoot HQ Boxes!");
self thread doHq();
self.box = true;
self notify("stop_plane");self notify("stop_hind");self notify("stop_nukes");
self.nuke = false;self.plane = false;self.hind = false;
self waittill ("Bullets");
self iPrintln("^2You Can Now Shoot Jets!");
self thread doShootingAirstike();
self.plane = true;
self notify("stop_hind");self notify("stop_box");self notify("stop_nukes");
self.nuke = false;self.box = false;self.hind = false;
self waittill ("Bullets");
self iPrintln("^2You Can Now Shoot Choppers!");
self thread doShootinghinds();
self.hind = true;
self notify("stop_plane");self notify("stop_box");self notify("stop_nukes");
self.nuke = false;self.plane = false;self.box = false;
self waittill ("Bullets");
self iPrintln("^1Normal Bullets!");
self notify("stop_plane");self notify("stop_box");self notify("stop_nukes");self notify("stop_hind");
self.nuke = false;self.plane = false;self.box = false;self.hind = false;
}}


ToggleBullets(){self notify( "Bullets" );}


mininukes(){
self endon("disconnect");
self endon("stop_nukes");
self endon("death");
for(;Winky Winky
{
self waittill ( "weapon_fired" );
vec = anglestoforward(self getPlayerAngles());
end = (vec[0] * 200000, vec[1] * 200000, vec[2] * 200000);
SPLOSIONlocation = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+end, 0, self)[ "position" ];
explode = loadfx( "explosions/aerial_explosion" );
playfx(explode, SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 1500, 2500, 800, self );
earthquake (0.3, 1, SPLOSIONlocation, 30000);
}
}


doShootingAirstike(){
self endon( "disconnect" );
self endon("stop_plane");
for(;Winky Winky
{
self waittill( "begin_firing" );
eye = self getTagOrigin("tag_eye");
end = self thread vector_scal(anglestoforward(self getplayerangles()), 10000);
plane = spawn( "script_model", eye );
plane setModel( "vehicle_mig29_desert" );
plane.angles = self getPlayerAngles();
plane moveTo( end, 2.1);
}}


doHq(){
self endon("stop_box");
for(;Winky Winky
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_scal(anglestoforward(self getplayerangles()),1000000);
location = BulletTrace( forward, end, 0, self )[ "position" ];
model = spawn("script_model", location);
model.angles = (0, 90, 0);
model setModel( "com_plasticcase_beige_big" );
level.solid = spawn( "trigger_radius", ( 0, 0, 0 ), 0, 65, 30 );
level.solid.origin = location;
level.solid.angles = (0, 90, 0);
level.solid setContents( 1 );
}}


doShootinghinds(){
self endon( "disconnect" );
self endon("stop_hind");
for(;Winky Winky
{
self waittill( "begin_firing" );
eye = self getTagOrigin("tag_eye");
end = self thread vector_scal(anglestoforward(self getplayerangles()), 10000);
plane = spawn( "script_model", eye );
plane setModel( "vehicle_mi24p_hind_desert" );
plane.angles = self getPlayerAngles();
plane moveTo( end, 2.1);
}}


vector_scal(vec, scale){
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}


Video:



CREDITS:
*Me (IVI40A3Fusionz) - For putting all the codes together and making them toggles.
*The people who made the Shoot Explosives, Shoot HQ Boxes, Shoot Jets and Shoot Choppers Codes!
(adsbygoogle = window.adsbygoogle || []).push({});
11-01-2011, 12:19 AM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by .Choco View Post
I'm not hating because this script isn't much like his at all :p Nice script btw Smile


i know your not hating ^^ i can tell when people are mad/hating by the way they put words into a sentence and the vocab and grammar they use :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo