terencehill [Sun, 8 Jan 2023 17:30:32 +0000 (18:30 +0100)]
Fix decals not appearing when a projectile with 0 size (blaster, crylink, hagar) hits a surface with a small angle. This fix also improves the previous fix for the same issue for hitscan weapons (1db2592)
Now the w_backoff factor is 2 for all weapons, except for the hook (-2) whose bomb explodes slightly below the floor
terencehill [Sun, 8 Jan 2023 10:53:01 +0000 (11:53 +0100)]
Revert ceb39e77a "Optimize damageeffects code: when a hitscan weapon hits a surface avoid executing a client-side traceline to check where's the hit point since this point is already known server-side." in preparation to a better approach to fix the missing vortex decals on great distances
bones_was_here [Thu, 24 Nov 2022 11:43:40 +0000 (21:43 +1000)]
Improve SVQC command flood control
Changes to the same logic used by chat flood control which is more
progressive. The previous command flood control was only triggered if a
client managed to send more than 8 commands within 1 second, and then
it reset immediately.
Prints an informative message when flood control blocks a command.
Previously this was silent.
Special cases the client's initial connect commands, as these would
otherwise trigger the new flood logic with the current default settings.
Exempts chat commands from command flood control, as these have their
own flood control.
bones_was_here [Wed, 23 Nov 2022 14:59:28 +0000 (00:59 +1000)]
Refactor Nagger_SendEntity and Net_Handle_ENT_CLIENT_NAGGER
This will no longer network ready status outside of warmup_stage in the
case that some clients manage to have ready status then. This change is
made possible by the removal of sv_ready_restart in
https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/940
It also simplifies the code and no longer networks the ready status of
some SVQC entities that are not clients in the case that maxclients is
not a multiple of 8.
bones_was_here [Wed, 23 Nov 2022 14:46:55 +0000 (00:46 +1000)]
Refactor HUD_InfoMessages()
Because sv_ready_restart (ReadyRestart triggered by readying up
*without* being in warmup_stage) was removed in
https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/940
we no longer need to display any ready-related messages outside of
warmup_stage.
terencehill [Thu, 5 Jan 2023 00:02:04 +0000 (00:02 +0000)]
Merge branch 'LegendaryGuard/scale_weapon_models' into 'master'
Update and optimize Akordeon, Devastator, Fireball, Tuba and Vortex v_* files, scaled by -15%. Fix Fireball Gloss material, fix Tuba UVs scaled by -20% and scale v_kleinbottle by -35%
Closes #2786 and #2629
See merge request xonotic/xonotic-data.pk3dir!1113
LegendaryGuard [Thu, 5 Jan 2023 00:02:04 +0000 (00:02 +0000)]
Update and optimize Akordeon, Devastator, Fireball, Tuba and Vortex v_* files, scaled by -15%. Fix Fireball Gloss material, fix Tuba UVs scaled by -20% and scale v_kleinbottle by -35%
z411 [Wed, 4 Jan 2023 20:40:42 +0000 (20:40 +0000)]
Item Pickup panel
* This panel shows the weapon or item that has been just picked up, with its icon, item name, and time of pickup.
* The time of pickup can be hidden by the client or the server (default in XPM ruleset).
* If you pick up the same item several times in a row it will show (x2, x3...) in parentheses.
* Display time, fade out time and icon size can all be configured. The size of its contents automatically change size to fit the panel size.
bones_was_here [Mon, 2 Jan 2023 16:02:47 +0000 (16:02 +0000)]
Merge branch 'Mario/no_engine_physics' into 'master'
Make all entities (such as monsters and turrets) use physics logic handled by Xonotic rather than the engine, allowing for future advancements in movement and gameplay
See merge request xonotic/xonotic-data.pk3dir!1044
bones_was_here [Tue, 27 Dec 2022 16:07:36 +0000 (02:07 +1000)]
trigger_hurt q3compat: always damage player at 20hz in "fast" mode
Although Q3A and Q3TA damage the player at the ticrate, CPMA and DeFRaG
hard-code trigger_hurt to 20hz (matching Q3A/Q3TA default ticrate) to
make gameplay consistent across all ticrates.
On higher ticrate servers, this fixes the torches on dfwc04-3, the lava
on ct3dm5, etc.
terencehill [Thu, 22 Dec 2022 23:16:21 +0000 (00:16 +0100)]
Fix #2784 "Serverlist icon tooltips are wrongly offset" if categories aren't enabled (and slightly wrongly offset if categories are enabled). Also improve icons display:
* center only the visible icons in the icons column
* don't spawn the tooltip when mouse is hovering over the invisible IP icon
* don't show bigger icons if categories aren't enabled since the icons column can't be resized on the fly
terencehill [Sat, 17 Dec 2022 01:08:23 +0000 (02:08 +0100)]
Optimize damageeffects code: when a hitscan weapon hits a surface avoid executing a client-side traceline to check where's the hit point since this point is already known server-side.