Author Topic: Inverse nova  (Read 3153 times)

0 Members and 1 Guest are viewing this topic.

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Inverse nova
« on: December 31, 2007, 11:50:19 am »
Script Name: teh circle effect
Script Description: a short function, originally intended for creating special effects. Shoots a circle of bullets at a certain player, the player being in the center of the circle
Original Author(s): this one coded by me, inspired by this, as well as the Voodoo Doll script by Mythical Beast and fri_
Core Version: 2.6.3
Code: [Select]
const
pi = 3.14159265;

procedure InNova(target,Shooter,style: integer; r,n,speed,power: single);
var i: integer;
    step,x,y: single;
begin
  step := 2*pi/n;
  getplayerxy(target,x,y);
 
  for i := 0 to n do
    CreateBullet(X+r*cos(i*step),Y+r*sin(i*step),-speed*cos(i*step),-speed*sin(i*step),power,style,Shooter);

end;

And naturally, if you set r := 0 , you get Avarax's nova effect.

I also carried it on a bit, creating this little script
You can see it at work on this server: soldat://lemonserv.com:23072

It basically creates such circles above the player who first joins the server. Bullet types 1 and 14 are used, so it looks like fireworks =P

If you use the pasted script, type /help to see the admin commands. Also /timed turns off automatic executing every second, and /rand turns off the randomization used for "fireworks"

You can also get a couple of demos here


PS, happy new year people ;)
« Last Edit: January 02, 2008, 05:57:19 am by danmer »

Offline Avarax

  • Veteran
  • *****
  • Posts: 1529
    • Official Hexer & MMod site
Re: Inverse nova
« Reply #1 on: December 31, 2007, 12:02:37 pm »
My Nova procedure does the same with negative speed values :-[ :P
I like to have one Martini
Two at the very most
Three I'm under the table
Four I'm under the host

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Inverse nova
« Reply #2 on: December 31, 2007, 04:10:14 pm »
My Nova procedure does the same with negative speed values :-[ :P
wait, that's what decentralize does, isn't it? Omg i think i missed that then...
Well, anyway, just made some screens lol


And, Avarax, your thing turns degrees into radians which i think isn't necessary...
« Last Edit: December 31, 2007, 07:13:12 pm by danmer »

Offline Szewczuq

  • Soldier
  • **
  • Posts: 115
  • WOOH! ROCKS ON MY HEAD!
    • POLISH GAMERS COMMUNITY
Re: Inverse nova
« Reply #3 on: December 31, 2007, 06:33:08 pm »
danmer? how to use this script? ...



Offline Chuck

  • Soldier
  • **
  • Posts: 121
  • Chuck P.
Re: Inverse nova
« Reply #4 on: December 31, 2007, 10:14:03 pm »
Wow, this ones awesome. Gotta give you some credit, this is nice. Alotta people might use this. I know I will. Great Job  ;D
Are you 9 years old? Or is that just your mental age.
Favorite Wepons:
Ruger, Spas, M79, Barret, Steyr, Chainsaw, LAW, and Knife.

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Inverse nova
« Reply #5 on: January 01, 2008, 05:28:49 am »
Wow, this ones awesome. Gotta give you some credit, this is nice. Alotta people might use this. I know I will. Great Job  ;D
well i just figgured i fecked up once more and just rewrote Ava's nova... They just look a bit different, but are essentially the same thing =/


danmer? how to use this script? ...
http://forums.soldat.pl/index.php?topic=21468.0

Offline pinOi32

  • Camper
  • ***
  • Posts: 339
  • "Bravo kid's bad day"
    • Newgrounds
Re: Inverse nova
« Reply #6 on: January 01, 2008, 02:57:02 pm »
"You can see it at work http://soldat://lemonserv.com:23072 on this server"

doesnt work

Pls use my amazing interface:
http://forums.soldat.pl/index.php?topic=27584


I WIN!!

WHY MY KARMA SUCK??

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Inverse nova
« Reply #7 on: January 02, 2008, 05:57:54 am »
"You can see it at work http://soldat://lemonserv.com:23072 on this server"

doesnt work


yeah its the url tag acting like that, the address is this: soldat://lemonserv.com:23072 (if it's still up) ::)

Offline pinOi32

  • Camper
  • ***
  • Posts: 339
  • "Bravo kid's bad day"
    • Newgrounds
Re: Inverse nova
« Reply #8 on: January 02, 2008, 09:24:58 pm »
"You can see it at work http://soldat://lemonserv.com:23072 on this server"

doesnt work

yeah its the url tag acting like that, the address is this: soldat://lemonserv.com:23072 (if it's still up) ::)

oh lol...ok, thanx! :D
Pls use my amazing interface:
http://forums.soldat.pl/index.php?topic=27584


I WIN!!

WHY MY KARMA SUCK??

Offline chutem

  • Veteran
  • *****
  • Posts: 1119
Re: Inverse nova
« Reply #9 on: January 04, 2008, 12:45:38 am »
Awesome....
1NK3FbdNtH6jNH4dc1fzuvd4ruVdMQABvs

Offline danmer

  • Camper
  • ***
  • Posts: 466
  • crabhead
Re: Inverse nova
« Reply #10 on: January 04, 2008, 05:24:24 pm »
umm.. New year celebration over i guess, server locked ::) Testing some other stuff...