]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commit
Remove legacy Quake bbox expansion: CTF
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 4 Sep 2023 03:00:38 +0000 (13:00 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 14 Mar 2024 22:14:47 +0000 (08:14 +1000)
commitc0e4a276db24fa0e983937880faf9140db68d687
treee1d41be70d61671e652f841eb51c67dac176dde3
parentadd8df724bd218ed3e628cf2839558ed56a20fa5
Remove legacy Quake bbox expansion: CTF

This adds a feature: if the flag is dropped in a place its bbox doesn't
fit, the player's bbox (crouched or full size) is used as a fallback.
This prevents it getting stuck so physics can still move it, and it will
be expanded to full size if it's moved to a place where it does fit.

This MR adds this to flags only, because they already had half the code.
I'll add it to other big ents that players can drop (keys, balls,
powerups) in another MR.
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc