Author Topic: Use random number function a little more often.  (Read 783 times)

Offline Midway

  • Persona Non Grata
  • Platinum Member
  • ******
  • Posts: 4579
Use random number function a little more often.
« on: March 31, 2012, 01:19:45 PM »
There are situations in AH that are entirely repeatable or perform exactly the same and just slight deviations using a random number with a normal distribution could add to realism.

For example,

Bailing and dropping in a parachute drops at exactly the same speed as troopers every time with exactly the same drift... Maybe make each parachute's speed and drift vary slightly randomly due to varying pilot weights or other factors.  I was floating down with some troopers (shooting them :) ) and it just felt a little strange that they appeared perfectly steady as if frozen.

I'm sure there are other examples if you look at the code and functions.

A random number adjustment to the various hardwired functions, I think, would create a little more realism and be a simple thing to add.

Nothing major or odd... just some slight variations as you'd notice in real life. :aok

Ready to be flamed now. :uhoh

« Last Edit: March 31, 2012, 01:25:16 PM by Midway »


    PARADISE ON EARTH  ------->  http://www.youtube.com/v/g_D4RhfCY2M&autoplay=1&hd=1&fs=1   <-------  PARADISE ON EARTH :)



Offline grizz441

  • Platinum Member
  • ******
  • Posts: 7001
Re: Use random number function a little more often.
« Reply #1 on: March 31, 2012, 01:35:18 PM »
I agree it would be more realistic.  You could add one too that randomly breaks your engine due to some sort of mechanical failure in the middle of a fight when you have WEP on.   Wait, that would not be fun at all... :uhoh

Offline bustr

  • Plutonium Member
  • *******
  • Posts: 12436
Re: Use random number function a little more often.
« Reply #2 on: March 31, 2012, 06:15:30 PM »
Guns jamming during violent manuvering like we do in MA furballing. That was a problem with ww2 gun systems.
bustr - POTW 1st Wing


This is like the old joke that voters are harsher to their beer brewer if he has an outage, than their politicians after raising their taxes. Death and taxes are certain but, fun and sex is only now.

Offline Devonai

  • Copper Member
  • **
  • Posts: 268
      • Reckless Faith
Guns!  Aliens!  Talking cats!  My new Science Fiction adventure, now on Amazon.com
http://www.amazon.com/David-Kantrowitz/e/B002BMHJPE/

Offline Midway

  • Persona Non Grata
  • Platinum Member
  • ******
  • Posts: 4579
Re: Use random number function a little more often.
« Reply #4 on: April 01, 2012, 05:48:58 PM »
Do you realize the can of worms you want to open?

http://en.wikipedia.org/wiki/Random_number_generator#.22True.22_random_numbers_vs._pseudorandom_numbers

 :confused:

It's much simpler than it appears.... Use a normal, or preferrably lognormal distribution and pick a random number on same using built in functions or a function library available many places. :)


    PARADISE ON EARTH  ------->  http://www.youtube.com/v/g_D4RhfCY2M&autoplay=1&hd=1&fs=1   <-------  PARADISE ON EARTH :)



Offline pervert

  • Persona Non Grata
  • Gold Member
  • *****
  • Posts: 3968
Re: Use random number function a little more often.
« Reply #5 on: April 01, 2012, 06:06:24 PM »
I agree it would be more realistic.  You could add one too that randomly breaks your engine due to some sort of mechanical failure in the middle of a fight when you have WEP on.   Wait, that would not be fun at all... :uhoh

What about one were when you pop over say 3k and randomly ack burst hits you straight away and you die  :eek:

Offline Tank-Ace

  • Persona Non Grata
  • Platinum Member
  • ******
  • Posts: 5298
Re: Use random number function a little more often.
« Reply #6 on: April 01, 2012, 06:14:16 PM »
Yeah, midway, I'm gonna be honest here. It sounds like you're bored, and just trying to find things that you could wish for.
You started this thread and it was obviously about your want and desire in spite of your use of 'we' and Google.

"Once more unto the breach"

Offline MachFly

  • Platinum Member
  • ******
  • Posts: 6296
Re: Use random number function a little more often.
« Reply #7 on: April 01, 2012, 06:18:56 PM »
This would be the most insignificant addition to AH yet.
"Now, if I had to make the choice of one fighter aircraft above all the others...it would be, without any doubt, the world's greatest propeller driven flying machine - the magnificent and immortal Spitfire."
Lt. Col. William R. Dunn
flew Spitfires, Hurricanes, P-51s, P-47s, and F-4s

Offline grizz441

  • Platinum Member
  • ******
  • Posts: 7001
Re: Use random number function a little more often.
« Reply #8 on: April 01, 2012, 07:28:17 PM »
What about one were when you pop over say 3k and randomly ack burst hits you straight away and you die  :eek:

Yeah wouldn't that be fun.

Good thing we dont have to deal with that in this here game.  :noid

Offline PFactorDave

  • Platinum Member
  • ******
  • Posts: 4334
Re: Use random number function a little more often.
« Reply #9 on: April 01, 2012, 07:32:32 PM »
I don't care much about chute drift....  But apply a random number generator to the GV spawn system and you might be on to something.

1st Lieutenant
FSO Liaison Officer
Rolling Thunder

Offline curry1

  • Gold Member
  • *****
  • Posts: 2321
Re: Use random number function a little more often.
« Reply #10 on: April 01, 2012, 08:03:01 PM »
I don't care much about chute drift....  But apply a random number generator to the GV spawn system and you might be on to something.

That has to be what it is right now?  Seems random to me.
Curry1-Since Tour 101

Offline guncrasher

  • Plutonium Member
  • *******
  • Posts: 17423
Re: Use random number function a little more often.
« Reply #11 on: April 01, 2012, 08:05:32 PM »
how about if a random dumb wish disappears every 5 minutes?


semp
you dont want me to ho, dont point your plane at me.

Offline Midway

  • Persona Non Grata
  • Platinum Member
  • ******
  • Posts: 4579
Re: Use random number function a little more often.
« Reply #12 on: April 01, 2012, 08:52:29 PM »
I don't care much about chute drift....  But apply a random number generator to the GV spawn system and you might be on to something.

 :O Good one! +1  :aok


    PARADISE ON EARTH  ------->  http://www.youtube.com/v/g_D4RhfCY2M&autoplay=1&hd=1&fs=1   <-------  PARADISE ON EARTH :)



Offline titanic3

  • Persona Non Grata
  • Platinum Member
  • ******
  • Posts: 4235
Re: Use random number function a little more often.
« Reply #13 on: April 01, 2012, 10:29:35 PM »
What about one were when you pop over say 3k and randomly ack burst hits you straight away and you die  :eek:

Fighting a con on the deck, zoom up to 3000ft and boom at ~250mph. Instant death.  Just today.  :bhead

  the game is concentrated on combat, not on shaking the screen.

semp

Offline smoe

  • Silver Member
  • ****
  • Posts: 941
Re: Use random number function a little more often.
« Reply #14 on: April 02, 2012, 09:28:19 AM »
I was wondering how a cv's flak system would target a plane anyway? I know they had radar to aid in tracking.

I always found it hard to believe how I could be bombarded with accurate flak ~5 miles away from a cv group that is turning.