Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik

IL-2 Sturmovik The famous combat flight simulator.

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 08-25-2013, 05:52 AM
MaxGunz MaxGunz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 471
Default

Or you could simply round off the aiming angle values (3D takes 2 angles) to say 0 decimal places for a rookie, 1 place for the next level, 2 for the next and so on. If the shot is close, even a rookie won't miss though the rookie may not hit the exact aiming point.

I passed that one on to Oleg well before 4.07, btw.
  #2  
Old 08-25-2013, 10:21 AM
majorfailure majorfailure is offline
Approved Member
 
Join Date: Jan 2013
Posts: 320
Default

Quote:
Originally Posted by MaxGunz View Post
Or you could simply round off the aiming angle values (3D takes 2 angles) to say 0 decimal places for a rookie, 1 place for the next level, 2 for the next and so on. If the shot is close, even a rookie won't miss though the rookie may not hit the exact aiming point.

I passed that one on to Oleg well before 4.07, btw.
Your idea is not practicable.
Two situations, AI gunner, Rookie, correct firing solution is a)47.935° and b)47.000° . For a) and b) Rookie shoots to 47.0, and for b) he hits dead on. All of the times -whenever accidentally your plane gets to a firing soultion that is or is close to and higher than an integer number, a rookie will hit.

Last edited by majorfailure; 08-25-2013 at 10:23 AM.
  #3  
Old 08-25-2013, 11:00 AM
MaxGunz MaxGunz is offline
Approved Member
 
Join Date: Apr 2011
Posts: 471
Default

At 200m, 1/2 degree missed by 1.75m, about 5' 9".

Not far enough? The calculations are in radians anyway. 1 radian is a bit over 57 degrees so in the math even a rookie would get a couple-three places and be missing.

I mention doing it this way because it calculates quicker than figuring actual degree to miss by, requires less changes to the existing code and once in a while even a rookie gets lucky.

But what do I know? I only paid my rent and bills by writing/developing code for many years in many languages. I've done a good bit of shooting too, including with automatic weapons though not from a moving plane. They are still so much easier to hit targets with than single-shots it's funny, especially at ranges I wouldn't even try single-shots.

That algorithm can adjust for conditions too, like when the plane the gunner is in is turning, though IMO under some conditions it should be impossible to shoot and one the plane is going down the gunner should be bailing out, not sniping. masking a few bits in an IEEE floating point number takes only a few cycles, especially when the mask is in a pre-set variable.

What can I say? I learned to code on old, slow, 8-bit micros without FPU's and still make the programs seem fast. I do know what I'm writing about.
Closed Thread


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.