How does the bomb turning works?

Ask questions, discuss ideas, get answers
Post Reply
ERYL
Posts: 23
Joined: Tue Sep 18, 2012 12:55 am

How does the bomb turning works?

Post by ERYL »

Hi bfmods guys!

Last weeks I readed a lot of code from bf1942 and bfv and started testing some code lines.
Recently I saw that the models of the heatseeking missiles and bombs from bfv doesn't turn with the projectile's trajectory. Such thing doesn't happen in 1942 (I could only test the bombs, because there is no seeker code...), and I would like to change that to start making a bfv mod.
Does someone knows how the bf1942's bomb turning works?
Back from the dead
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: How does the bomb turning works?

Post by Swaffy »

What do you mean by "turn"?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: How does the bomb turning works?

Post by Vilespring »

I think he is talking about smart missiles that automatically select a target and fly at it.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
ERYL
Posts: 23
Joined: Tue Sep 18, 2012 12:55 am

Re: How does the bomb turning works?

Post by ERYL »

I meant that the bombs point to the ground some time after relase.
Back from the dead
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: How does the bomb turning works?

Post by Vilespring »

Ohhhh.... That is different. this is it.

Code: Select all

ObjectTemplate.gravityModifier 0.0
as it is, it has no gravity effect. increase it, and it will hit the ground faster. Note a higher velocity does not effect time to hitting the ground. This is also true in real life. a bullet is fire horizontally and at the same time another bullet is dropped from the same height, the bullets hit the ground at the same time. The velocity will just change the max range of the gun.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
ERYL
Posts: 23
Joined: Tue Sep 18, 2012 12:55 am

Re: How does the bomb turning works?

Post by ERYL »

had to edit... the image was too big to post as img.
Attachments
bomb.png
Back from the dead
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: How does the bomb turning works?

Post by Swaffy »

Have you tried to attach a wing far behind the projectile? Or something to drag the back end so that the front end will drop...
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
ERYL
Posts: 23
Joined: Tue Sep 18, 2012 12:55 am

Re: How does the bomb turning works?

Post by ERYL »

Have you tried to attach a wing far behind the projectile? Or something to drag the back end so that the front end will drop...
I will try that. Thanks.
Back from the dead
Post Reply