Post: Ball Of Death [Script]
08-28-2012, 01:51 PM #1
Restxrt Modz
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({});
Sup Guys, It's Restxrt![/SIZE]
Hey guys, this is my Ball Of Death script, if you didnt saw my Project Restart look at the video below, there is the Ball Of Death in it Winky Winky

Video:



If you dont get it:
The Harrier drops a Ball (Dev Sphere), if there's a enemy close to it, he get trapped and dies. (The player who called it cant get trapped)




Put this in init();
    
precacheModel("test_sphere_silver");

And put this anywhere you want :P
    
startBigBall()
{
self beginLocationselection( "map_artillery_selector", false, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location );
newLocation = PhysicsTrace( location + ( 0, 0, 10000 ), location - ( 0, 0, 10000 ) );
self endLocationselection();
self.selectingLocation = undefined;
plane = spawn("script_model", self.origin+(-10000, 0, 200));
plane setModel("vehicle_mig29_desert");
plane.angles = (0,0,0);
plane playLoopSound("veh_b2_dist_loop");
self thread planeEffects(plane);
plane moveTo( newLocation+(0, 0, 1300), 5 );
wait 6;
plane stopLoopSound();
ball = spawn("script_model", plane.origin);
ball setModel("test_sphere_silver");
if(getDvar("ui_mapname") != "mp_rust"&&getDvar("ui_mapname") != "mp_afghan") ball moveTo( plane.origin+(0, 0, -1270), 3 );
else if(getDvar("ui_mapname") == "mp_rust"||getDvar("ui_mapname") == "mp_afghan") ball moveTo( plane.origin+(0, 0, -2600), 3 );
wait 1.7;
plane moveTo( plane.origin+(10000, 0, 0), 4 );
plane playLoopSound("veh_b2_dist_loop");
wait 1.3;
self thread runBall(ball);
foreach(p in level.players) p thread getBallDis(ball,self);
self thread endBallDis();
wait 3.5;
self notify("stopEffects");
plane stopLoopSound();
plane delete();
}
getBallDis(ball,me)
{
level endon("stopBall");
level endon("disconnect");
for(;Winky Winky
{
if(self != me)
if(distance(ball.origin,self.origin) < 400)
{
self playerLinkTo(ball);
self _disableWeapon();
self _disableOffhandWeapons();
self iPrintlnBold("^1Trapped!");
self.isTrapped = 1;
}
else self.isTrapped = 0;
wait 3.5; //You got to put this, or else the game will lag.
}
}
runBall(ball)
{
wait 3.5; //Wait 'til the ball effects stop
Earthquake(0.2,1,ball.origin,900000); //The earthquake effect
MagicBullet("ac130_40mm_mp", ball.origin+(0,0,1), ball.origin, self); //AC130 bullet kills the trapped players
level.chopper_fx["explode"]["medium"] = loadfx("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], ball.origin); //The ball effect when it destroys
ball delete(); //When it destroys/delete
wait .1; //Give a break Smile
foreach(p in level.players)
{
if(p.isTrapped) //If the player didnt die.
{
p unlink();
p _enableWeapon();
p _enableOffhandWeapons();
}
}
}
planeEffects(plane)
{
self endon("stopEffects");
for(;Winky Winky
{
playFxOnTag(level.fx_airstrike_contrail,plane,"tag_left_wingtip"); //The plane/harrier effects
playFxOnTag(level.fx_airstrike_contrail,plane,"tag_right_wingtip");
playFxOnTag(level.harrier_smoke,plane,"tag_engine_right");
playFxOnTag(level.harrier_smoke,plane,"tag_engine_left");
wait .05;
}
}
endBallDis()
{
wait 3.6;
level notify("stopBall"); //End the ball effects (trapping effect)
wait .1;
foreach(p in level.players) p.isTrapped = undefined;
}



Credits:
Me - Making It
EliteMossy - For the map position selector
Ok, I dont think there's much credits for this :P

My Channel: You must login or register to view this content.

*PS: I might release Project Restart, I dont know yet.

Restxrt <3
[/SIZE]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to Restxrt Modz for this useful post:

Harry, Kitty=^.^=, MasterLaZzEr, Snake Eyes, spudeeelad, Tony Stark, xePixTvx, xMr_Adams-, xToysBoy_, Yolo_-MoDz
08-28-2012, 04:32 PM #2
xMr_Adams-
Do a barrel roll!
is there anything to precache ?
But You Should Definitely Release Project Restart it would be one of the most Unique And different Patches Released On NGU.
And there is credits to thoses who found the codes for the harrier And Dev sphere ,Just sayin ^^
But +Rep :rainbowcry:
08-28-2012, 04:35 PM #3
Restxrt Modz
Do a barrel roll!
Originally posted by xMr
is there anything to precache ?
But You Should Definitely Release Project Restart it would be one of the most Unique And different Patches Released On NGU.
And there is credits to thoses who found the codes for the harrier And Dev sphere ,Just sayin ^^
But +Rep :rainbowcry:
Who? Thats the question Winky Winky
08-28-2012, 04:37 PM #4
xMr_Adams-
Do a barrel roll!
Originally posted by Restxrt
Who? Thats the question Winky Winky


hmm, i want to say Elitemossy ,but i'm not sure Cause if i remember right he had both of those in his Patch before anyone Awesome face
08-28-2012, 05:08 PM #5
Restxrt Modz
Do a barrel roll!
Originally posted by xMr
hmm, i want to say Elitemossy ,but i'm not sure Cause if i remember right he had both of those in his Patch before anyone Awesome face
Imma put EliteMossy then lol
08-28-2012, 07:08 PM #6
OmGRhys-x
Are you high?
Originally posted by Restxrt
Imma put EliteMossy then lol


You Dont Really Need 2 Give Credits Its Your Code!!
theres nothing i can really see that isnt hard 2 find ("sphere")

Nice Code BTW il be sure 2 add this 2 my latest Project Smile

If you decide no make more cool things Maybe you
could share over skype? My SKype: OmGRhys-x
08-28-2012, 07:16 PM #7
Restxrt Modz
Do a barrel roll!
Originally posted by x View Post
You Dont Really Need 2 Give Credits Its Your Code!!
theres nothing i can really see that isnt hard 2 find ("sphere")

Nice Code BTW il be sure 2 add this 2 my latest Project Smile

If you decide no make more cool things Maybe you
could share over skype? My SKype: OmGRhys-x
I normally release all my stuff here Winky Winky

The following user thanked Restxrt Modz for this useful post:

ChromeVisionz
08-28-2012, 07:19 PM #8
OmGRhys-x
Are you high?
Originally posted by Restxrt
I normally release all my stuff here Winky Winky


The Other Reason Was, Was Gonna Ask You For Some Help With My Patch Having A Problem With Something Lol Not Happy or Sad
08-28-2012, 07:37 PM #9
ForgivenxModz
Bounty hunter
Thanks For the Code BTW Nice Patch Awesome face
08-28-2012, 09:37 PM #10
RaspberryIce
Bounty hunter
Originally posted by Restxrt
Sup Guys, It's Restxrt![/SIZE]
Hey guys, this is my Ball Of Death script, if you didnt saw my Project Restart look at the video below, there is the Ball Of Death in it Winky Winky

Video:



If you dont get it:
The Harrier drops a Ball (Dev Sphere), if there's a enemy close to it, he get trapped and dies. (The player who called it cant get trapped)




Put this in init();
    
precacheModel("test_sphere_silver");

And put this anywhere you want :P
    
startBigBall()
{
self beginLocationselection( "map_artillery_selector", false, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location );
newLocation = PhysicsTrace( location + ( 0, 0, 10000 ), location - ( 0, 0, 10000 ) );
self endLocationselection();
self.selectingLocation = undefined;
plane = spawn("script_model", self.origin+(-10000, 0, 200));
plane setModel("vehicle_mig29_desert");
plane.angles = (0,0,0);
plane playLoopSound("veh_b2_dist_loop");
self thread planeEffects(plane);
plane moveTo( newLocation+(0, 0, 1300), 5 );
wait 6;
plane stopLoopSound();
ball = spawn("script_model", plane.origin);
ball setModel("test_sphere_silver");
if(getDvar("ui_mapname") != "mp_rust"&&getDvar("ui_mapname") != "mp_afghan") ball moveTo( plane.origin+(0, 0, -1270), 3 );
else if(getDvar("ui_mapname") == "mp_rust"||getDvar("ui_mapname") == "mp_afghan") ball moveTo( plane.origin+(0, 0, -2600), 3 );
wait 1.7;
plane moveTo( plane.origin+(10000, 0, 0), 4 );
plane playLoopSound("veh_b2_dist_loop");
wait 1.3;
self thread runBall(ball);
foreach(p in level.players) p thread getBallDis(ball,self);
self thread endBallDis();
wait 3.5;
self notify("stopEffects");
plane stopLoopSound();
plane delete();
}
getBallDis(ball,me)
{
level endon("stopBall");
level endon("disconnect");
for(;Winky Winky
{
if(self != me)
if(distance(ball.origin,self.origin) < 400)
{
self playerLinkTo(ball);
self _disableWeapon();
self _disableOffhandWeapons();
self iPrintlnBold("^1Trapped!");
self.isTrapped = 1;
}
else self.isTrapped = 0;
wait 3.5; //You got to put this, or else the game will lag.
}
}
runBall(ball)
{
wait 3.5; //Wait 'til the ball effects stop
Earthquake(0.2,1,ball.origin,900000); //The earthquake effect
MagicBullet("ac130_40mm_mp", ball.origin+(0,0,1), ball.origin, self); //AC130 bullet kills the trapped players
level.chopper_fx["explode"]["medium"] = loadfx("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], ball.origin); //The ball effect when it destroys
ball delete(); //When it destroys/delete
wait .1; //Give a break Smile
foreach(p in level.players)
{
if(p.isTrapped) //If the player didnt die.
{
p unlink();
p _enableWeapon();
p _enableOffhandWeapons();
}
}
}
planeEffects(plane)
{
self endon("stopEffects");
for(;Winky Winky
{
playFxOnTag(level.fx_airstrike_contrail,plane,"tag_left_wingtip"); //The plane/harrier effects
playFxOnTag(level.fx_airstrike_contrail,plane,"tag_right_wingtip");
playFxOnTag(level.harrier_smoke,plane,"tag_engine_right");
playFxOnTag(level.harrier_smoke,plane,"tag_engine_left");
wait .05;
}
}
endBallDis()
{
wait 3.6;
level notify("stopBall"); //End the ball effects (trapping effect)
wait .1;
foreach(p in level.players) p.isTrapped = undefined;
}



Credits:
Me - Making It
EliteMossy - For the map position selector
Ok, I dont think there's much credits for this :P

My Channel: You must login or register to view this content.

*PS: I might release Project Restart, I dont know yet.

Restxrt <3
[/SIZE]


Do You Want Me To Record Your Patch With My HDPVR
I'd Be Completely Happy To Awesome face
Just Quote ME If You Do Want Me To Record , It's No Problem Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo