36503
« on: October 08, 2008, 05:37:06 PM »
Well you are supposed to keep maxDamage at 100 for that code, so we can pretend its a percentage.
%damage*=(100/%obj.client.health);
What that does is increases/decreases damage depending on the client's max health.
Lets say the person had 50 max health, and the weapon did 10 damage.
We dont want to just take off 10 damage from the physical object, because that would be 10%.
Thus, resulting (in human logic) in only 5 damage. If we go through that line, it will make the weapon do 20% to someone who has 50 health, resulting in 10 hp lost.