Data Realms Fan Forums http://45.55.195.193/ |
|
How to get something to move in the way of bullets? http://45.55.195.193/viewtopic.php?f=75&t=19494 |
Page 1 of 1 |
Author: | caekdaemon [ Thu Aug 12, 2010 8:25 pm ] |
Post subject: | How to get something to move in the way of bullets? |
Well, like the title says, how whould I try to get something to detect the inbound bullet, then move itself in front of the bullet before it has a chance to hit the object the defense satallite is orbiting? You see ive got a idea to make a small satalite that connects to your character when you use the item. It then orbits your character. When a shot is fired, the satallite goes infront of the bullet to take the damage instead. The main idea is to give units who dont have alot of armour such as clone lights or brain bots a better chance to survive, as bullets whould be stopped by the orbiting satallite, which has alot of health. Now here are the problems, How whould I do A.Get it to orbit the Character B.Make it intercept the Inbound projectile? Any help whould be appreciated. |
Author: | Grif [ Thu Aug 12, 2010 8:35 pm ] |
Post subject: | Re: How to get something to move in the way of bullets? |
You'd have to run a fairly frequent check for any MOPixels in the vicinity, which is almost guaranteed to lag. Moving it is just a question of checking the velocity vector and doing some maths, and probably also a raycast to ensure that a pixel going into your area check is actually going to hit your actor. Short answer: It's really quite complicated and is going to lag a lot if it's going to be effective at all. |
Author: | caekdaemon [ Thu Aug 12, 2010 8:57 pm ] |
Post subject: | Re: How to get something to move in the way of bullets? |
Grif wrote: Short answer: It's really quite complicated and is going to lag a lot if it's going to be effective at all. Then I guess theres no real point in following up the idea, as you whould need more then one for it to be effective at all, to stop you from getting shot from 2 sides yet the shield can only go in the way of one of them. Or using it en masse. |
Author: | Contrary [ Thu Aug 12, 2010 11:39 pm ] |
Post subject: | Re: How to get something to move in the way of bullets? |
couldn't you just have an invisible object that check if something is hitting it (and where) and draw the shield or whatever at the point where the invisible forcefield is getting shot? |
Author: | Duh102 [ Fri Aug 13, 2010 12:00 am ] |
Post subject: | Re: How to get something to move in the way of bullets? |
Or even better, don't bother with Lua at all and make the invisible object have a wound that emits a MOSParticle shield. |
Author: | caekdaemon [ Fri Aug 13, 2010 12:53 am ] |
Post subject: | Re: How to get something to move in the way of bullets? |
But the objects not ment to be invisible, and your talking to someone with not even a dots worth of editing .ini files or the lua. The most things ive ever done was make Tartarus go from Coalition VS Dummies to Coalition VS Zombots. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |