Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] //ktx bp not emitted in dmm4 mode. #361

Open
dsvensson opened this issue Aug 28, 2024 · 0 comments
Open

[BUG] //ktx bp not emitted in dmm4 mode. #361

dsvensson opened this issue Aug 28, 2024 · 0 comments
Labels

Comments

@dsvensson
Copy link
Collaborator

dsvensson commented Aug 28, 2024

When running dmm4 backpacks are silently removed without emitting //ktx bp even if preceded by a //ktx drop ...

https://github.com/QW-Group/ktx/blob/master/src/items.c#L2460-L2473

	if (deathmatch == 4)
	{
		...
		ent_remove(self);
		return;
	}

	new = self->s.v.items;
	if (new)
	{
		if ((new & IT_ROCKET_LAUNCHER) || (new & IT_LIGHTNING))
		{
			stuffcmd_flags(other, STUFFCMD_DEMOONLY, "//ktx bp %d %d\n", NUM_FOR_EDICT(self),
							NUM_FOR_EDICT(other));
		}
	}

Either emit it, or drop the //ktx drop .... The behavior is different in dmm4, but there should be at least be a 1:1 match between drop and bp.

@dsvensson dsvensson added the bug label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant