Home   Help Search Login Register  

Author Topic: Ricochet  (Read 527 times)

0 Members and 4 Guests are viewing this topic.

GR8X

  • Guest
Ricochet
« on: 25 Nov 2003, 18:57:02 »
Is is possible to make a bullet Ricochet of objects and walls and dammage other men around if it hits them... I have not so yet found a such script, or maybe i'm blind...

prove me wrong  ;D...
« Last Edit: 26 Nov 2003, 19:33:16 by GR8X »

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Ricochet
« Reply #1 on: 25 Nov 2003, 21:59:34 »
I can think of a way to possibly make bullets richochet of the ground, by changing their velocity once their Z coordinate is near zero. However, it is very difficult to detect other surfaces besides the ground. I guess you could continuously record the position and velocity of a bullet, and then once it becomes null (i.e. hits something) you could camcreate another bullet at the last known location, and send it off with setvelocity. However, there is no way I can think of to find the angle of the surface the bullet hit, so there is no real way to know what direction to send the new bullet.

In short, I can't think of a way to make it work, and I think it would be a waste of CPU anyway, since you would have to keep track of every bullet flying around. And most of the time in OFP you are in an outdoor environment anyway, so it's not like you're going to be killed by a bullet ricocheting off the dirt or something.

And did you say you want bullets to Ricochet off of people?! :-X
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

GR8X

  • Guest
Re:Ricochet
« Reply #2 on: 26 Nov 2003, 18:29:12 »
oops... I'll change that, cheers anyway!...