Bouncing projectiles cause infighting

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!
Heisanevilgenius
Posts: 93
Joined: Wed Dec 15, 2021 8:38 pm
Graphics Processor: nVidia (Modern GZDoom)

Bouncing projectiles cause infighting

Post by Heisanevilgenius »

I gave imps a bouncing fireball in zscript and when it hits another imp it causes them to infight despite being the same species.

Here's a test wad:
http://heisanevilgenius.com/dl/test.pk3

Code: Select all

Class BounceImpBall : DoomImpBall replaces DoomImpBall
{
	Default
	{
		DamageFunction 1;
		BounceType "Hexen";
		BounceFactor 1;
		WallBounceFactor 1;
		+ALLOWBOUNCEONACTORS;
		+BOUNCEONACTORS;
		-NOGRAVITY;
		BounceSound "imp/shotx";
		BounceCount 60;		
	}
}
User avatar
Rachael
Posts: 13913
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Bouncing projectiles cause infighting

Post by Rachael »

This possibly might require version-gating in order to fix.

And if so, gzdoom.pk3 would need to use something like an "OldProjectile" flag group instead of a regular "Projectile" flag group so that old versions of the Projectile flag group get a special flag to re-enable the old behavior.
Post Reply

Return to “Bugs [GZDoom]”