/HeightRandomizerNVSE

Plugin implementing mathematical functionality making it so non player characters have a realistic height variation (for the FNV videogame, but it can be adapted to any game or situation)

Primary LanguageC++

HeightRandomizerNVSE

This plugin came up for the necessity of simulating realistic heights by using arbitrary parameters in video games.

We include fast approximations to the realistic average male height in USA, 70 inches, with standard deviation of 4 inches.

Below you can see them, the inverseCDF describing height variation in USA and our approximations towards said approximation (plotted from -0.5 to 0.5, 0 being the exact average person).

Graph for heights

Option 1 is the most accurate, simulating faithfully height distribution, however, it doesn't translate into in game very well. Option 2 is a middle ground between option 1 and 3, where heights are varied but not excessively so. Option 3 is semilinear, made for high variance, which is most noticeable in games.

While the code is geared towards Fallout New Vegas, you can adapt it to any game.