3.4.1 PITCHFROMMOMENTUM and speed 0

Is there something that doesn't work right in the latest GZDoom? Post about it here.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
Posts: 26472
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

3.4.1 PITCHFROMMOMENTUM and speed 0

Post by Enjay »

This affects all versions I think. It's also probably not a bug and more a case of "well, how is GZDoom supposed to know what to do when speed is 0" but, just in case...

Setting things up like this:
  • a projectile set up to use a model
  • spawn the projectile (using SpawnProjectile in ACS)
  • set the parameters so that the projectile is moving straight down - i.e. a speed of 0 and a negative vertical speed
Result: the model points upwards even though it is travelling downwards.
Giving it a speed of 1 makes it point downwards.

Map attached. The first 3 switches (from left to right) will spawn a downwards projectile (v speed -64). The last 2 spawn a projectile upwards (v speed 64). The scripts responsible print the forward speed values. The left-most switch exhibits the kind of behaviour that I'm talking about.
You do not have the required permissions to view the files attached to this post.

Return to “Bugs [GZDoom]”