Post: Spinning Ball Forcefield [Code]
07-20-2012, 12:15 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Thanks to "LightModz" for the idea & z0o0 or w/e his name is for the thrust.

It spawns a silver ball that floats around your head. If an enemy gets close to you it'll throw them across the map.

To Spawn:
    
self thread ballThing();


Precache On Init:
    
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(;Winky Winky
{
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();
}


Enjoy ^^





(adsbygoogle = window.adsbygoogle || []).push({});

The following 15 users say thank you to Jakes625 for this useful post:

247Yamato, Red-EyeX32, Curz, forflah123, JakeModz, JonnyH94, lfclegend321, LightModz, JokerRey, PussayPatrol, Cmd-X, TheFuziioN-, Uk_ViiPeR, Vampytwistッ
07-20-2012, 12:25 AM #2
LightModz
League Champion
haha this funny Happy thanks for making it again <3
07-20-2012, 01:36 AM #3
PussayPatrol
I'm a neat monster...
SOMEONE REC THIS ALREADY AND SHOW ME Drack

The following user thanked PussayPatrol for this useful post:

07-20-2012, 01:43 AM #4
Curz
CurzHD
That is awesome, great work <Happy
07-20-2012, 11:34 PM #5
T_m_b07
I defeated!
nvm Gaspkay:
07-21-2012, 01:07 AM #6
seb5594
Proud Former Admin
Originally posted by b07 View Post
Not sure if you knew this but im sure its meant to be

    ac130_zoomrig


:p

You must login or register to view this content.


c130_zoomrig is correct Smile

---------- Post added at 03:07 AM ---------- Previous post was at 01:39 AM ----------

A vid with the Spinning Ball :P

The following 2 users say thank you to seb5594 for this useful post:

T_m_b07
07-21-2012, 01:17 AM #7
Curz
CurzHD
Originally posted by seb5594 View Post
c130_zoomrig is correct Smile

---------- Post added at 03:07 AM ---------- Previous post was at 01:39 AM ----------

A vid with the Spinning Ball :P



That is cool You must login or register to view this content.
07-21-2012, 04:06 AM #8
Originally posted by seb5594 View Post
c130_zoomrig is correct Smile

---------- Post added at 03:07 AM ---------- Previous post was at 01:39 AM ----------

A vid with the Spinning Ball :P




:lol:

Even Cooler than I imagined!!!

<3

The following user thanked Jakes625 for this useful post:

The following user groaned Jakes625 for this awful post:

247Yamato
07-21-2012, 05:24 PM #9
Here is a video of the force itself.
And i put it in a clean menu, in description.
07-21-2012, 06:37 PM #10
seb5594
Proud Former Admin
Originally posted by ismexyy View Post
Here is a video of the force itself.
And i put it in a clean menu, in description.


LoL What about precachemodel? lmao

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo