View unanswered posts | View active topics It is currently Sat Dec 28, 2024 6:01 pm



Reply to topic  [ 6 posts ] 
 How to get something to move in the way of bullets? 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Sun Nov 01, 2009 3:00 pm
Posts: 4144
Location: Hell.
Reply with quote
Post 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.


Thu Aug 12, 2010 8:25 pm
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Thu Aug 12, 2010 8:35 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Sun Nov 01, 2009 3:00 pm
Posts: 4144
Location: Hell.
Reply with quote
Post 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.


Thu Aug 12, 2010 8:57 pm
Profile WWW
User avatar

Joined: Mon Mar 16, 2009 10:50 pm
Posts: 2175
Location: Neverwhere
Reply with quote
Post 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?


Thu Aug 12, 2010 11:39 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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.


Fri Aug 13, 2010 12:00 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Sun Nov 01, 2009 3:00 pm
Posts: 4144
Location: Hell.
Reply with quote
Post 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.


Fri Aug 13, 2010 12:53 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.050s | 14 Queries | GZIP : Off ]