by Graf Zahl » Tue Jan 11, 2005 4:20 am
The trail shouldn't move and hence shouldn't do any damage. Its damage property is probably just a leftover from early development and should be set to 0.
And here's the problem:
Code: Select all
// [RH] Missiles moving perfectly vertical need some X/Y movement, or they
// won't hurt anything.
if ((flags & MF_MISSILE) && (momx|momy) == 0)
{
momx = 1;
}
This code in AActor::Tick automatically gives a projectile some momentum so that collision checks are performed for missiles that are moving only vertically. Needless to say, it should not do that for any object that doesn't move at all! (Yes, it's a recent fix for a well known problem!)
The trail shouldn't move and hence shouldn't do any damage. Its damage property is probably just a leftover from early development and should be set to 0.
And here's the problem:
[code] // [RH] Missiles moving perfectly vertical need some X/Y movement, or they
// won't hurt anything.
if ((flags & MF_MISSILE) && (momx|momy) == 0)
{
momx = 1;
}
[/code]
This code in AActor::Tick automatically gives a projectile some momentum so that collision checks are performed for missiles that are moving only vertically. Needless to say, it should not do that for any object that doesn't move at all! (Yes, it's a recent fix for a well known problem!)