Wind affected projectiles!

Making or wanting help making your own asset? Check in here
dodek96_pl
Posts: 45
Joined: 2010-11-19 15:14

Wind affected projectiles!

Post by dodek96_pl »

I guess the video will speak more than words :D

http://www.youtube.com/watch?v=X5Qpgl7tPAw

This is a very simple yet effective system :) Wind direction and strenght are fully configurable. What do you think? :D
Last edited by dodek96_pl on 2012-08-16 09:49, edited 1 time in total.
Vista
Posts: 1282
Joined: 2011-04-30 10:36

Re: Wind affected projectiles!

Post by Vista »

Damn looks nice!
lucky.BOY
Posts: 1438
Joined: 2010-03-03 13:25

Re: Wind affected projectiles!

Post by lucky.BOY »

Wow, looks real good! Would certainly add some depth to the game!

Sorry to ask even more :D , but can it be made so unguided rockets (like RPG or Hydras) would be deflected in opposite direction? From what i know about RPG, it is deflected into the wind, because it is rocket propelled. Dont know about other unguided rockets, but should be the same, as they are all based on the same principe..

Would make the life of an unguided AT guy hell, though :D
dodek96_pl
Posts: 45
Joined: 2010-11-19 15:14

Re: Wind affected projectiles!

Post by dodek96_pl »

lucky.BOY wrote:Sorry to ask even more :D , but can it be made so unguided rockets (like RPG or Hydras) would be deflected in opposite direction? From what i know about RPG, it is deflected into the wind, because it is rocket propelled. Dont know about other unguided rockets, but should be the same, as they are all based on the same principe..

Would make the life of an unguided AT guy hell, though :D
Of course :) This can be applied to any projectile
If you think something is impossible, let someone who doesn't know that do it ;)
Doc.Pock
Posts: 2899
Joined: 2010-08-23 14:53

Re: Wind affected projectiles!

Post by Doc.Pock »

it would require diffrent code but might be possible by adding a % of speed in wind direction or something.
dodek96_pl
Posts: 45
Joined: 2010-11-19 15:14

Re: Wind affected projectiles!

Post by dodek96_pl »

Antol.PL wrote:How about helis and jets? Strong wind can affect to flying?
That also wold be possible to do, you can practically do this to every single object in the game
If you think something is impossible, let someone who doesn't know that do it ;)
sweedensniiperr
Posts: 2784
Joined: 2009-09-18 10:27

Re: Wind affected projectiles!

Post by sweedensniiperr »

I assume you can only have one direction and one windspeed on a map?
Image
dodek96_pl
Posts: 45
Joined: 2010-11-19 15:14

Re: Wind affected projectiles!

Post by dodek96_pl »

sweedensniiperr wrote:I assume you can only have one direction and one windspeed on a map?
Yes, and it is constant ie I doesn't change at all through the whole round (yet)
If you think something is impossible, let someone who doesn't know that do it ;)
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Wind affected projectiles!

Post by Mats391 »

does it work with tracers?
WeeD-KilleR
Posts: 792
Joined: 2009-11-01 13:32

Re: Wind affected projectiles!

Post by WeeD-KilleR »

as far as I can tell he is shooting with tracer ammunition in the video. Not sure, tho'.
Kain888
Posts: 954
Joined: 2009-04-22 07:20

Re: Wind affected projectiles!

Post by Kain888 »

Wow. Astonishing.
Image
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Wind affected projectiles!

Post by Mats391 »

WeeD-KilleR wrote:as far as I can tell he is shooting with tracer ammunition in the video. Not sure, tho'.
yes, but does it work with mix of tracers and normal bullets? will they both land in same spot? iirc thats the problem why we have no bulletdrop
dodek96_pl
Posts: 45
Joined: 2010-11-19 15:14

Re: Wind affected projectiles!

Post by dodek96_pl »

Mats391 wrote:yes, but does it work with mix of tracers and normal bullets? will they both land in same spot? iirc thats the problem why we have no bulletdrop
The factors that affect projectile movement are wind strenght, which is the same for all projectiles, and muzzle velocity. Tracer and non-tracer roounds land in the same spot if they are fired from the same weapon.
If you think something is impossible, let someone who doesn't know that do it ;)
Doc.Pock
Posts: 2899
Joined: 2010-08-23 14:53

Re: Wind affected projectiles!

Post by Doc.Pock »

This woukd be awesome as a fix for tracers. Just aim the wind down, adjust for realistic g value (9.81 m/s^2) and voila you have made a quite working gravity pull for bullets. Its just it couldne be used for choppers snd stuff then
Tim270
PR:BF2 Developer
Posts: 5166
Joined: 2009-02-28 20:05

Re: Wind affected projectiles!

Post by Tim270 »

Nice work dodek96_pl.
dodek96_pl
Posts: 45
Joined: 2010-11-19 15:14

Re: Wind affected projectiles!

Post by dodek96_pl »

'[USF wrote:Doc.Pock;1804037']This woukd be awesome as a fix for tracers. Just aim the wind down, adjust for realistic g value (9.81 m/s^2) and voila you have made a quite working gravity pull for bullets. Its just it couldne be used for choppers snd stuff then
Actually I have little knowledge about the physics in the BF2 engine so if it would ever make to PR, other DEVs would have to do some tweaking :P Just wanted to show the possibility to do so

Thanks Tim!
If you think something is impossible, let someone who doesn't know that do it ;)
tankninja1
Posts: 962
Joined: 2011-05-31 22:22

Re: Wind affected projectiles!

Post by tankninja1 »

lucky.BOY wrote:Would make the life of an unguided AT guy hell, though :D
Life is hell for the unguided AT guy already
Image
Doc.Pock
Posts: 2899
Joined: 2010-08-23 14:53

Re: Wind affected projectiles!

Post by Doc.Pock »

Well its just the thing of turning wind towards the ground and add the right speed so that the bullets gravitational acceleration is aroumd 9.81. I dont know how you do the deflection but i suppose every tick the bullet gets x percent of windspeed in winddirection right?
Post Reply

Return to “PR:BF2 Community Modding”