self thread ballThing();
precacheModel("test_sphere_silver");
ballThing()
{
self endon("death");
ball = spawn( "script_model", self.origin + (0,0,20));
ball setModel( "c130_zoomrig" );
ball.angles = (0,115,0);
ball hide();
self thread monBall(ball);
self thread monPlyr();
sball = spawn("script_model", ball.origin);
sball setModel( "test_sphere_silver" );
sball linkTo(ball, "tag_origin", (0,75,-50), (0,0,0));
self thread DOD(ball);
self thread DOD(sball);
for(;
{
ball rotateyaw( -360, 2);
wait 2;
}
}
monBall(obj)
{
self endon("death");
while(1)
{
obj.origin = self.origin + (0,0,150);
wait 0.01;
}
}
monPlyr()
{
self endon("death");
while(1)
{
foreach(p in level.players)
{
if(distance(self.origin, p.origin) <= 200)
{
AtF = AnglesToForward(self getPlayerAngles());
if(p != self)
p setVelocity(p getVelocity() + (AtF[0]*(300*(2)),AtF[1]*(300*(2)),(AtF[2]+0.25)*(300*(2))));
}
}
wait 0.01;
}
}
DOD(ent)
{
self waittill("death");
ent delete();
}
self thread ballThing();
precacheModel("test_sphere_silver");
ballThing()
{
self endon("death");
ball = spawn( "script_model", self.origin + (0,0,20));
ball setModel( "c130_zoomrig" );
ball.angles = (0,115,0);
ball hide();
self thread monBall(ball);
self thread monPlyr();
sball = spawn("script_model", ball.origin);
sball setModel( "test_sphere_silver" );
sball linkTo(ball, "tag_origin", (0,75,-50), (0,0,0));
self thread DOD(ball);
self thread DOD(sball);
for(;
{
ball rotateyaw( -360, 2);
wait 2;
}
}
monBall(obj)
{
self endon("death");
while(1)
{
obj.origin = self.origin + (0,0,150);
wait 0.01;
}
}
monPlyr()
{
self endon("death");
while(1)
{
foreach(p in level.players)
{
if(distance(self.origin, p.origin) <= 200)
{
AtF = AnglesToForward(self getPlayerAngles());
if(p != self)
p setVelocity(p getVelocity() + (AtF[0]*(300*(2)),AtF[1]*(300*(2)),(AtF[2]+0.25)*(300*(2))));
}
}
wait 0.01;
}
}
DOD(ent)
{
self waittill("death");
ent delete();
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.