Jump to content
Sign in to follow this  
canukausiuka

Damage Values

Recommended Posts

OK guys, I've been playing with damage values for shells, and have been running into a problem. I cannot accurately predict the damage the shell will cause beyond the indirectHitRange value. I tried just doing a linear interpolation, but that yields a zero damage range of 8m. At 8m, you will die. At 10m, you will die. You have to get out to 17m before you are just damaged (legs out), 20m damaged (standing), and about 29m before you are completely undamaged. As you might can imagine, this makes the round a little too powerful.

crazy_o.gif

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class ShellHE_75 : ShellHE

{

//dy/dx = -62.5

hit = 500;

indirectHit = 100;

indirectHitRange = 6.4;

//zeroDamageRange = 8;

};

Does anyone know how to determine the damage beyond the indirectHitRange? I know I can do the interpolation and set indirectHit to zero, and the range to my maximum range, but then the craters do not show up when the shells impact (not sure exactly where the cutoff is, but indirectHit apparently governs those for shells). Anyway, any insight or help would be very much appreciated.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×