View Single Post
Old 11-25-2006, 06:56 PM   #24 (permalink)
IHaveRegistered
Forum Expert
 
IHaveRegistered's Avatar
 
Join Date: Jun 2003
Location: Ontario
Age: 20
Posts: 4,520
Send a message via MSN to IHaveRegistered
Default

Quote:
Originally Posted by noobie
then its already 0 or 0.xx

thats the simplest way of doing it.
Hmm, just checked that. Not true...

It should be 7.65, making it 8.

speed/strreq
37/35
hitsmax = (int)(((1 / speed) * 3000));
maxdamage = (int)(((strreq + speed + hitsmax) / 20));

hitsmax should be 81.08108108... making it 81
It's below 10 appearently, so an If statement makes it 10.

But assuming it WAS 81, then maxdamage should be: 7.65, making it 8.
If it was 0, then it should be: 3.6, making it 4.

Either way, it shouldn't be 0...
__________________
IHaveRegistered is offline   Reply With Quote