Jump to content


Member Since 30 Aug 2013
Offline Last Active Sep 02 2013 03:17 PM

Topics I've Started

Damage calculation in modern game engines?

30 August 2013 - 01:53 PM

(I am not sure where to post this so sorry if i made a mistake)


I am currently learning basic computer science in school and this year we need to make a project that needs to be completed by the end of the year, the students can choose what they want to make and i would like to make a game(nothing elaborate but i'd like to have atleast a basic combat system)


I am trying to understand why certain games are "balanced"(mathematicly speaking) ,the first game i started with was team fortress2 because it has different classes and quite a lot of different weapons.


In the tf2 wiki they explain how damage is calculated but i had a lot of trouble in understanding how this works in the game engine itself.

and the numbers of each weapon(in the wiki) seem quite meaningless for DPS calculations.sad.png


1)Are there certain tools that i can use to take a look at for instance the TF2 engine(source code) and look how they calculate damage, it must be a script of some sorts?

(Is there something that makes elaborate source code managable for a beginner to understand ?)


2)How can a beginner learn from games that have already fully been made without stepping in to illegal territory?


ANY help will be appreciated, thanks in advance smile.png