Author Topic: Manipulating projectile direction after hitting something? (preitty picturee)  (Read 1316 times)

I am wondering if this is possible:
(Something i drew up in 5 seconds lol)


 :cookieMonster: :cookie:
« Last Edit: July 20, 2012, 06:17:52 PM by Piston1337 »

Throw a ball at a slanted wall, come back and tell me if it worked the way you wanted it to work.

You shouldnt post if youre not going to be helpful, I need a script that can do this black magic.
« Last Edit: July 20, 2012, 08:48:04 PM by Piston1337 »

Sorry for double post ._.
« Last Edit: July 20, 2012, 08:47:49 PM by Piston1337 »

You need to be much more specific, what EXACTLY are you trying to do?
Make ALL projectiles bounce AND change how they bounce? Make only certain kinds of projectiles bounce differently?

So basically you want a sonar wave projectile.

You need to be much more specific, what EXACTLY are you trying to do?
Make ALL projectiles bounce AND change how they bounce? Make only certain kinds of projectiles bounce differently?
He wants a projectile that deflects back to the person/brick firing it.

He wants a projectile that deflects back to the person/brick firing it.
Yea, didn't you look at his wonderful diagram?

I was also looking for a way to reflect projectiles from a player without damage

You need to be much more specific, what EXACTLY are you trying to do?
Make ALL projectiles bounce AND change how they bounce? Make only certain kinds of projectiles bounce differently?
No, not all projectiles. Just a special projectile like the logic gate projectile (Projectile_bit) they used on the logic gate servers.

So basically you want a sonar wave projectile.
Yeah I suppose

He wants a projectile that deflects back to the person/brick firing it.
Correct!

Yea, didn't you look at his wonderful diagram?
Those took me hours to make :C

Those took me hours to make :C
5 seconds
what

OT: I think you'd have to use ProjectileDatablockHere::onColision(%this,%IDontKnow,%IfThereAre,%AnyMoreArguments) and do some math to get a velocity vector for the projectile, then set the velocity of the projectile, blah blah blah.

The math in question is very easy: vectorScale(%originalVector,-1);

The math in question is very easy: vectorScale(%originalVector,-1);
is that it?


how would i apply that in something like... for example the gun bullet projectile. Can someone make a full script for this?