55 torque *= (rand() / 3200);
56 else if (
Mass() > 10e3)
58 else if (
Mass() > 10e6)
79 double dlen = delta.
length();
88 hull_impact = impact = shot_loc;
104 if (shot_len == 0) shot_len = 1000;
113 hull_impact = impact;
122 burst_vel *=
Radius() * 0.5;
134 hull_impact = impact = shot_loc;
148 if (hit_type != HIT_NOTHING) {
149 double effective_damage = shot->
Damage() * dscale;
158 if (effective_damage > 0)
186 const double GRAV = 6.673e-11;
187 double m0 = primary->
Mass();
188 double r = primary->
Radius();
209 double altitude_agl = loc.
y;
214 altitude_agl -= terrain->
Height(loc.
x, loc.
z);
216 if (!_finite(altitude_agl))