Home   Help Search Login Register  

Author Topic: game logics setpos in a circle  (Read 769 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
game logics setpos in a circle
« on: 06 Jun 2003, 21:10:32 »
How would you get game logics to setpos in a circular formation?  

I am asking because for my atomic bomb script the LGBs cam create on the game logics .  They need to cover every inch of ground in a 500M radius.

My current setup involves the game logics in an expanding circle formation, leaving a wider gap between the game logics as they set their positions further out, sort of creating pie slices of objects still intact.  I cant explain my current setup any better than this. They are setting their position on a loop.  After the game logics have updated their position on this loop, LGB's are camcreated on the gamelogics.  

A better way to do this, IF IT EXISTS, is to create one big explosion with a 500M radius.  If not, how would you get the game logics to set their position so they setpos in a perfect circle?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:game logics setpos in a circle
« Reply #1 on: 06 Jun 2003, 21:30:56 »
What happens if you create say 100 LGBs on the same spot at the same time?

I'm about to go and get my dinner so I don't have time for  details, but  your problem is not really a circles question:   think of it as a triangles question.    

Each gamelogic is moving in a straight line, right?    And that straight line is the hypotenuse of a right angled triangle, with the other two sides being the x and y coordinates, right?     So all you have to do is manipulate the x and y coords.

Calculate the x and y coords as a distance from ground zero.   Then all you have to do to get from one "explosion point" to the next one is multiply the x and y by whatever factor looks best and then convert back to x-y coords on the map.

I hope that makes sense.
Plenty of reviewed ArmA missions for you to play

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:game logics setpos in a circle
« Reply #2 on: 06 Jun 2003, 22:56:31 »
Quote
What happens if you create say 100 LGBs on the same spot at the same time?

lag ::) :P

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Mike

  • Guest
Re:game logics setpos in a circle
« Reply #3 on: 06 Jun 2003, 23:02:46 »
haha  ;D

gadolinite

  • Guest
Re:game logics setpos in a circle
« Reply #4 on: 07 Jun 2003, 00:57:02 »
right,  this is what I am doing, but no perfect circle, just those pie slices.  If you keep adding game logics, it will create unwanted lag, as LCD said. Any efficient ways?

gadolinite

  • Guest
Re:game logics setpos in a circle
« Reply #5 on: 07 Jun 2003, 03:21:13 »
here is the script, if this will help.  

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:game logics setpos in a circle
« Reply #6 on: 07 Jun 2003, 09:06:34 »
:hmm: I think, gadolinite, and without having seen your scroll there, that what ya MAY be looking for is an addon, a REAL nuke, to get the job done, right?!!    ;D


Well, I've never tried that, and creating the visuals might be quite a hazzle if you really wanna see that mushroom and the ring of smoke, but I'm sure its possible; a custom LGB with a tweaked "hit" damage & "IndirectHitRange" plus those 'drop_visuals' would make quite a bomb, Im sure  :)



gadolinite

  • Guest
Re:game logics setpos in a circle
« Reply #7 on: 07 Jun 2003, 16:43:19 »
how would you do this, any ideas?

how would you edit this?
« Last Edit: 07 Jun 2003, 16:44:47 by gadolinite »

gadolinite

  • Guest
Re:game logics setpos in a circle
« Reply #8 on: 07 Jun 2003, 21:39:42 »
laser guided bomb is a class. Where would you find the file that contains this class?  Even after I find it, I will need to know how to make it an addon.

gadolinite

  • Guest
Re:game logics setpos in a circle
« Reply #9 on: 09 Jun 2003, 08:04:20 »
I am currently waiting for feedback on how to do the LGB modification, in the addon editing forum section, if you care to check there for more info.  Meanwhile my current project, while I am waiting for some help is an improved artilliry script that will involve Shogun's (he needs credit) napalm granades (just need to camcreate those).

 :DAlso once this easy task is complete, I will create an improved spy sattelite that is more user controlable ( :-[no offense to SEFE, if he wants to work with me on this one, that is a  ;DROGER ;D)