User talk:Termrok

Hi, btw I like this wiki very much and I am very interested in the damage calculation from the games "doom" and "doom2". I doupt that you made several tests till you found out what the percentage chance of for example the shotgun is. I also found some interesting informations in the Sourcecode... but I am not such good in those programming language, so could you please tell me how you could calculate the damage of the weapons?


 * Any weapon in particular? In most cases the damage function is called by a specific attack routine for each weapon, such as A_FireCGun in p_pspr.c for the chaingun.  For projectile attacks the number of "damage dice" is taken from the damage field in info.c, since it is a property of the projectile Thing, not the weapon.


 * For background reading on the percentages, try Hit point, Pseudorandom number generator, and this Doomworld thread. If you want to see the code I used for the histograms, I'll be glad to post it, though of course that still involves a programming language so it might not help you.


 * I doupt that you made several tests till you found out what the percentage chance of for example the shotgun is  Don't be so sure!  It's 2009, but the state of our statistical analyses is still fairly crude (I know this because I was able to make a contribution myself).  I suspect that people will invent different and incompatible methods for incorporating ancillary RNG calls into the damage calculations.  Controlled experiments would then have to be done with bot players to see which model works best.    Ryan W 22:37, 29 April 2009 (UTC)