In article <1173025984.052373.212420@[EMAIL PROTECTED]
>,
<bob@[EMAIL PROTECTED]
> wrote:
>I was just wondering what formula most games use for determining the
>damage a bullet does. Any help is welcome.
Well, most games have the concept of health, in some sort of 'hit
points'. (This traces its way back to games like Dungeons & Dragons,
which has influenced a LOT of game simulations; try playing it or some
of the other tabletop world simulators like GRUPS or the like). A
person might have a max health of 100, and a tank might be 10,000.
As to damage from a bullet, the simplest way is to say that a
bullet does 5 (or some other number) points of damage. (This is
something that's best NOT specified in code, but in some external file
that the game designers can do). Then, you can get more complicated
depending on how much time you want to spend. You can factor in things
like armor (which reduce off some % of damage). You can do things like
try to figure out where the damage took place (e.g. a headshot is 5x
normal damage, a foot shot is 1/2 normal damage). There's no standard
formula for all this; it all depends on how much those doing the
system want to work with.
As above, read up on tabletop world simulators like
[A]D&D/GRUPS/etc, and you'll get a better understanding into how
things work.
Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A.
Heinlein


|