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, 10:08 PM #11
Been waiting for so long for this code thanks for the release
08-28-2012, 11:58 PM #12
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]


nice I guess..

btw you can use moveGravity instead of moveTo to make it look more realistic.
08-29-2012, 10:46 PM #13
Restxrt Modz
Do a barrel roll!
Originally posted by GAMER View Post
nice I guess..

btw you can use moveGravity instead of moveTo to make it look more realistic.
I didnt know that, and does it work, same as moveTo?

---------- Post added at 06:46 PM ---------- Previous post was at 06:44 PM ----------

Originally posted by PlayerClanHacks View Post
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
Go check out my "Project Restart v1" in my signature Winky Winky And this is HD PVR quality its just cause my partner did add some CC ahah :P
08-31-2012, 12:15 PM #14
RaspberryIce
Bounty hunter
Originally posted by Restxrt
I didnt know that, and does it work, same as moveTo?

---------- Post added at 06:46 PM ---------- Previous post was at 06:44 PM ----------

Go check out my "Project Restart v1" in my signature Winky Winky And this is HD PVR quality its just cause my partner did add some CC ahah :P


Yeah Im Not Saying It's Not HDPVR Quality Winky Winky
Just Saying If You Need A Recorder I'm Here Awesome face
08-31-2012, 02:59 PM #15
Harry
Former Staff
That's a nice little script you got there Winky Winky. Also, can't wait till your menu release ^^.
08-31-2012, 09:05 PM #16
Tony Stark
Do a barrel roll!
Good work , look's nice ! ^^
09-02-2012, 02:36 AM #17
iLikeTrophys
Little One
thank you ..
09-08-2012, 10:13 AM #18
T_m_b07
I defeated!
Originally posted by Restxrt
Credits:
Me - Making It


isnt this is inside "Chicksicle's Public Patch." from the xbox site (not advertising)

heres the You must login or register to view this content.

and was posted back in 2011 :/

ahhwell good find
09-08-2012, 02:02 PM #19
Restxrt Modz
Do a barrel roll!
Originally posted by b07 View Post
isnt this is inside "Chicksicle's Public Patch." from the xbox site (not advertising)

heres the You must login or register to view this content.

and was posted back in 2011 :/

ahhwell good find
I dont even know this patch and i just got this idea randomly.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo