]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/log
xonotic/xonotic-data.pk3dir.git
13 months agoDon't allow negative values for the y component of the shot origin offset because... terencehill/shotorigin_compression
terencehill [Sat, 11 Nov 2023 17:11:51 +0000 (18:11 +0100)]
Don't allow negative values for the y component of the shot origin offset because the gun can't be aligned to the left by default. Thanks to this change it's possible to restore precision of the y and z components back to 0.25

13 months agoAllow negative values for the shot origin offset vector. This change reduces precisio...
terencehill [Fri, 10 Nov 2023 17:59:58 +0000 (18:59 +0100)]
Allow negative values for the shot origin offset vector. This change reduces precision of the y and z components from 0.25 to 0.5

13 months agoMerge branch 'Juhu/velocity_pads_cleanup2' into 'master'
bones_was_here [Thu, 9 Nov 2023 05:44:23 +0000 (05:44 +0000)]
Merge branch 'Juhu/velocity_pads_cleanup2' into 'master'

Move trigger_push_velocity last_pushed code out of StartFrame()

See merge request xonotic/xonotic-data.pk3dir!1251

13 months agomove trigger_push_velocity's last_pushed check, StartFrame() should not run jump...
Juhu [Wed, 8 Nov 2023 18:22:52 +0000 (19:22 +0100)]
move trigger_push_velocity's last_pushed check, StartFrame() should not run jump pad physics code

13 months agoMerge branch 'Juhu/target_print' into 'master'
Dr. Jaska [Wed, 8 Nov 2023 01:19:29 +0000 (01:19 +0000)]
Merge branch 'Juhu/target_print' into 'master'

q3compat: add support for the target_print entity

See merge request xonotic/xonotic-data.pk3dir!1141

13 months agoMerge branch 'drjaska/damage-center-player-origin' into 'master'
Dr. Jaska [Wed, 8 Nov 2023 01:17:09 +0000 (01:17 +0000)]
Merge branch 'drjaska/damage-center-player-origin' into 'master'

Added an inactive gameplay cvar for using the own shot origin or centers of other players' bboxes for force direction calculations

See merge request xonotic/xonotic-data.pk3dir!1215

13 months agoAdded an inactive gameplay cvar for using the own shot origin or centers of other...
Dr. Jaska [Wed, 8 Nov 2023 01:17:09 +0000 (01:17 +0000)]
Added an inactive gameplay cvar for using the own shot origin or centers of other players' bboxes for force direction calculations

13 months agoMerge branch 'drjaska/damagetext' into 'master'
Dr. Jaska [Sun, 5 Nov 2023 17:50:33 +0000 (17:50 +0000)]
Merge branch 'drjaska/damagetext' into 'master'

Refactor damagetext to use a new linked list instead of proximity search and fix 2D and 3D damagetexts not accumulating

Closes #2861

See merge request xonotic/xonotic-data.pk3dir!1235

13 months agoRefactor damagetext to use a new linked list instead of proximity search and fix...
Dr. Jaska [Sun, 5 Nov 2023 17:50:33 +0000 (17:50 +0000)]
Refactor damagetext to use a new linked list instead of proximity search and fix 2D and 3D damagetexts not accumulating

13 months agoMerge branch 'Juhu/velocity_pads_cleanup' into 'master'
terencehill [Sun, 29 Oct 2023 19:14:05 +0000 (19:14 +0000)]
Merge branch 'Juhu/velocity_pads_cleanup' into 'master'

Move trigger_push_velocity last_pushed code out of execute_next_frame()

See merge request xonotic/xonotic-data.pk3dir!1217

13 months agoMove trigger_push_velocity last_pushed code out of execute_next_frame()
Juhu [Sun, 29 Oct 2023 19:14:05 +0000 (19:14 +0000)]
Move trigger_push_velocity last_pushed code out of execute_next_frame()

14 months agoMerge branch 'bones_was_here/sv_autopause_intermission' into 'master'
terencehill [Fri, 27 Oct 2023 08:38:20 +0000 (08:38 +0000)]
Merge branch 'bones_was_here/sv_autopause_intermission' into 'master'

sv_autopause: don't pause during intermission, unpause on endmatch command

Closes #2880

See merge request xonotic/xonotic-data.pk3dir!1246

14 months agoTransifex autosync
Rudolf Polzer [Mon, 23 Oct 2023 05:24:36 +0000 (07:24 +0200)]
Transifex autosync

14 months agoTransifex autosync
Rudolf Polzer [Tue, 17 Oct 2023 05:23:28 +0000 (07:23 +0200)]
Transifex autosync

14 months agosv_autopause: don't pause during intermission, unpause on endmatch command
bones_was_here [Thu, 5 Oct 2023 15:16:46 +0000 (01:16 +1000)]
sv_autopause: don't pause during intermission, unpause on endmatch command

14 months agoTransifex autosync
Rudolf Polzer [Sun, 1 Oct 2023 05:25:05 +0000 (07:25 +0200)]
Transifex autosync

14 months agog_maxplayers -1: when rounding to a team multiple, go down at the midpoint
bones_was_here [Fri, 29 Sep 2023 05:13:49 +0000 (15:13 +1000)]
g_maxplayers -1: when rounding to a team multiple, go down at the midpoint

It seems a 5 players max DM map is more likely to suit 2v2 TDM/FT than 3v3.
It will still round up to 6 if there's 3 teams.

Also catches misconfigurations with g_maxplayers -1 and no teams.

Changes to more meaningful var names.

15 months agoExplicitly enable sv_gameplayfix_unstickplayers
bones_was_here [Thu, 21 Sep 2023 21:52:15 +0000 (07:52 +1000)]
Explicitly enable sv_gameplayfix_unstickplayers

Xonotic's QC physics still depend on this cvar, but the feature is
deprecated in current DP.

15 months agoMerge branch 'terencehill/load_fonts_once' into 'master'
bones_was_here [Mon, 18 Sep 2023 00:29:45 +0000 (00:29 +0000)]
Merge branch 'terencehill/load_fonts_once' into 'master'

Fix #2878 "Client startup executes font-xolonium.cfg twice"

Closes #2878

See merge request xonotic/xonotic-data.pk3dir!1243

15 months agoFix #2878 "Client startup executes font-xolonium.cfg twice"
terencehill [Sat, 16 Sep 2023 13:44:48 +0000 (15:44 +0200)]
Fix #2878 "Client startup executes font-xolonium.cfg twice"

15 months agoFix sticky electro orbs and mines being unhittable on DP master
bones_was_here [Fri, 15 Sep 2023 17:15:12 +0000 (03:15 +1000)]
Fix sticky electro orbs and mines being unhittable on DP master

The moving projectiles are configured correctly but when they touch a
surface they're deleted and replaced with a sticky projectile.
Those weren't configured to be hittable directly, and weren't linked to
the area grid so findradius couldn't find them for splash damage.

15 months agoSupport custom func_door and func_plat sounds on Q3A maps
bones_was_here [Fri, 15 Sep 2023 06:42:57 +0000 (16:42 +1000)]
Support custom func_door and func_plat sounds on Q3A maps

This adds FindFileInMapPack(), a very simple version of
_MapInfo_FindArenaFile().

15 months agofunc_plat: Use Q3 defaults for .dmg .speed and .lip on Q3 maps
bones_was_here [Fri, 14 Oct 2022 08:34:12 +0000 (18:34 +1000)]
func_plat: Use Q3 defaults for .dmg .speed and .lip on Q3 maps

15 months agofunc_plat: don't spawn a "start moving" trigger when .targetname is set on Q3 maps
bones_was_here [Fri, 15 Sep 2023 06:37:11 +0000 (16:37 +1000)]
func_plat: don't spawn a "start moving" trigger when .targetname is set on Q3 maps

15 months agofunc_plat: fix being stuck in the extended position when .targetname is set on Q3...
bones_was_here [Fri, 15 Sep 2023 06:45:13 +0000 (16:45 +1000)]
func_plat: fix being stuck in the extended position when .targetname is set on Q3 maps

15 months agofunc_door: merge door_use() and door_fire()
bones_was_here [Thu, 13 Oct 2022 11:46:33 +0000 (21:46 +1000)]
func_door: merge door_use() and door_fire()

Unnecessary tiny func is tiny and unnecessary (and suboptimal for perf).

15 months agofunc_door: implement Q3 CRUSHER spawnflag
bones_was_here [Fri, 15 Sep 2023 06:47:11 +0000 (16:47 +1000)]
func_door: implement Q3 CRUSHER spawnflag

15 months agofunc_door: implement Q3 team-based door linking using fullspawndata
bones_was_here [Fri, 15 Sep 2023 06:28:11 +0000 (16:28 +1000)]
func_door: implement Q3 team-based door linking using fullspawndata

15 months agofunc_door: fix bug where doors blocked by players never reversed direction
bones_was_here [Fri, 15 Sep 2023 06:49:19 +0000 (16:49 +1000)]
func_door: fix bug where doors blocked by players never reversed direction

This bug was inherited from Nexuiz.  It worked properly in Quake which
didn't have this condition, and in Quake 3.

15 months agofunc_door: use Q3 default .dmg of 2 on Q3 maps
bones_was_here [Wed, 12 Oct 2022 12:57:46 +0000 (22:57 +1000)]
func_door: use Q3 default .dmg of 2 on Q3 maps

15 months agofunc_door: update documentation to reflect default .dmg of 0
bones_was_here [Wed, 12 Oct 2022 12:48:50 +0000 (22:48 +1000)]
func_door: update documentation to reflect default .dmg of 0

IMO 0 is the best default, because if it were > 0 then mappers would
have no way to configure a door that doesn't deal any damage when blocked.

The implemented default has been 0 since (at least) Nexuiz 2.5.2 so
changing it now would not be ideal for compatibility.

The comment about the default of 2 was inherited from Quake.

15 months agofunc_door: fix .dmg field having no effect
bones_was_here [Fri, 15 Sep 2023 06:50:44 +0000 (16:50 +1000)]
func_door: fix .dmg field having no effect

The player's .takedamage == DAMAGE_AIM not DAMAGE_YES

15 months agofunc_door: update DOOR_START_OPEN documentation
bones_was_here [Fri, 15 Sep 2023 05:57:29 +0000 (15:57 +1000)]
func_door: update DOOR_START_OPEN documentation

15 months agofunc_door: use Q3 default of 2s .wait time on Q3 maps
bones_was_here [Fri, 7 Oct 2022 10:10:34 +0000 (20:10 +1000)]
func_door: use Q3 default of 2s .wait time on Q3 maps

15 months agofunc_door: fix .angle values of 315 and 135 degrees being inverted
bones_was_here [Fri, 7 Oct 2022 10:11:22 +0000 (20:11 +1000)]
func_door: fix .angle values of 315 and 135 degrees being inverted

This bug was inherited from Quake and is fixed by updating to
the same maths used in Quake 2 and 3.

15 months agofunc_door: fix erratic behaviour of spawned trigger field
bones_was_here [Fri, 7 Oct 2022 12:37:58 +0000 (22:37 +1000)]
func_door: fix erratic behaviour of spawned trigger field

This was most noticeable with door .wait <= 1 but would eventually occur
at higher wait values if players hang around in the trigger field.

Also the door(s) usually did not stay open for the full .wait time after
the player left the trigger field, as some time had passed since the
.door_finished timestamp was set.

To make this reliable AND efficient requires updating the state of the
door(s), instead of maintaining a separate state in the trigger field entity.

15 months agoCleanups following ff0befb7d2c673b926cbc9bf0bbf8a1e07f2aff6 and 9d63bcaed353f093ad629...
bones_was_here [Fri, 15 Sep 2023 05:45:26 +0000 (15:45 +1000)]
Cleanups following ff0befb7d2c673b926cbc9bf0bbf8a1e07f2aff6 and 9d63bcaed353f093ad6297774e08c979a0135776

Some of those changes were superfluous (not required by CONTRIBUTING.md)
or didn't fix existing issues.

15 months agoRevert "Merge branch 'bones_was_here/func_door' into 'master'"
bones_was_here [Fri, 15 Sep 2023 06:56:02 +0000 (16:56 +1000)]
Revert "Merge branch 'bones_was_here/func_door' into 'master'"

This reverts commit 8195181f4a0c5384bbb58d3029b86333c8f39dde, reversing
changes made to 39fafd26f46f8050cfe82aaa1ef76b3a5c9dbb3f.

IE reverts https://gitlab.com/xonotic/xonotic-data.pk3dir/-/merge_requests/1083
which was squash merged so the bad commit can't be reverted separately,
instead a new MR will replace it.

Fixes #2876

15 months agoTransifex autosync
Rudolf Polzer [Fri, 15 Sep 2023 05:26:30 +0000 (07:26 +0200)]
Transifex autosync

15 months agoTransifex autosync
Rudolf Polzer [Wed, 6 Sep 2023 05:23:10 +0000 (07:23 +0200)]
Transifex autosync

15 months agoMerge branch 'drjaska/menu-music' into 'master'
terencehill [Sun, 3 Sep 2023 16:35:15 +0000 (16:35 +0000)]
Merge branch 'drjaska/menu-music' into 'master'

re-allow main menu to play music when coming back to it

Closes #2866

See merge request xonotic/xonotic-data.pk3dir!1240

15 months agore-allow main menu to play music when coming back to it
Dr. Jaska [Sun, 3 Sep 2023 16:35:14 +0000 (16:35 +0000)]
re-allow main menu to play music when coming back to it

15 months agoUpdate dpdefs/upstream
bones_was_here [Fri, 1 Sep 2023 10:32:35 +0000 (20:32 +1000)]
Update dpdefs/upstream

See darkplaces@4225123f87643f8a240ba4a6759067d0efc25693

15 months agoMerge branch 'bones_was_here/csqc_bmodels' into 'master'
terencehill [Thu, 31 Aug 2023 07:04:13 +0000 (07:04 +0000)]
Merge branch 'bones_was_here/csqc_bmodels' into 'master'

triggers: set bmodel correctly in CSQC

See merge request xonotic/xonotic-data.pk3dir!1237

16 months agoTransifex autosync
Rudolf Polzer [Mon, 28 Aug 2023 05:23:19 +0000 (07:23 +0200)]
Transifex autosync

16 months agoMinigames: apply panel alpha to highlights too
terencehill [Sun, 27 Aug 2023 09:08:40 +0000 (11:08 +0200)]
Minigames: apply panel alpha to highlights too

16 months agoShow spectator list on all minigames
terencehill [Sat, 26 Aug 2023 22:21:39 +0000 (00:21 +0200)]
Show spectator list on all minigames

16 months agoMove spectator list code to c4_hud_board since the list is displayed on top of the...
terencehill [Wed, 23 Aug 2023 21:29:46 +0000 (23:29 +0200)]
Move spectator list code to c4_hud_board since the list is displayed on top of the board. The code now can directly use board position and size

16 months agotriggers: set bmodel correctly in CSQC
bones_was_here [Sat, 26 Aug 2023 11:54:18 +0000 (21:54 +1000)]
triggers: set bmodel correctly in CSQC

Previously the .model field would be (for example) "*2" in SVQC but ""
in CSQC.  This change makes it "*2" in both.

16 months agoTransifex autosync
Rudolf Polzer [Sat, 26 Aug 2023 05:23:17 +0000 (07:23 +0200)]
Transifex autosync

16 months agoRefactor spectator list code in the Connect Four minigame to better handle shortened...
terencehill [Wed, 23 Aug 2023 20:32:33 +0000 (22:32 +0200)]
Refactor spectator list code in the Connect Four minigame to better handle shortened names and use a proper fontsize. Also make "Spectators:" translatable

16 months agoMerge branch 'Mario/mehrdad08_spectatorlist' into 'master'
Dr. Jaska [Tue, 22 Aug 2023 03:20:20 +0000 (03:20 +0000)]
Merge branch 'Mario/mehrdad08_spectatorlist' into 'master'

Implement C4 and TTT minigame spectator list by mehrdad dowlatabadi

See merge request xonotic/xonotic-data.pk3dir!1099

16 months agoImplement C4 and TTT minigame spectator list by mehrdad dowlatabadi
Mario [Tue, 22 Aug 2023 03:20:20 +0000 (03:20 +0000)]
Implement C4 and TTT minigame spectator list by mehrdad dowlatabadi

16 months agoMerge branch 'drjaska/rounds_pl' into 'master'
terencehill [Fri, 18 Aug 2023 22:31:25 +0000 (22:31 +0000)]
Merge branch 'drjaska/rounds_pl' into 'master'

Fix "rounds played" scoreboard column showing up in DM in the layout with all columns

See merge request xonotic/xonotic-data.pk3dir!1206

16 months agoFix "rounds played" scoreboard column showing up in DM in the layout with all columns
Dr. Jaska [Fri, 18 Aug 2023 22:31:25 +0000 (22:31 +0000)]
Fix "rounds played" scoreboard column showing up in DM in the layout with all columns

16 months agoSmall optimisation in WarpZone_Touch()
bones_was_here [Sun, 13 Aug 2023 11:41:15 +0000 (21:41 +1000)]
Small optimisation in WarpZone_Touch()

Cheap early-out checks should be performed before expensive checks to
avoid wasting CPU.

16 months agoSmall optimization to the damage code
terencehill [Sun, 13 Aug 2023 09:02:53 +0000 (11:02 +0200)]
Small optimization to the damage code

Hash changed due to extremely small difference in the final amount of damage dealt in the bot match (max difference < 0.0012)

16 months agoTransifex autosync
Rudolf Polzer [Sun, 13 Aug 2023 05:23:16 +0000 (07:23 +0200)]
Transifex autosync

16 months agoUpdate hash
terencehill [Sat, 12 Aug 2023 22:15:59 +0000 (00:15 +0200)]
Update hash

16 months agoFix #2859 "Explosions do not go through warpzones"
terencehill [Sat, 12 Aug 2023 21:42:19 +0000 (23:42 +0200)]
Fix #2859 "Explosions do not go through warpzones"

16 months agoMove some code that only needs to run once per frame out of PlayerP*Think()
bones_was_here [Fri, 11 Aug 2023 18:01:26 +0000 (04:01 +1000)]
Move some code that only needs to run once per frame out of PlayerP*Think()

16 months agoRemove redundant g_players intrusive list
bones_was_here [Fri, 11 Aug 2023 18:02:09 +0000 (04:02 +1000)]
Remove redundant g_players intrusive list

16 months agoTransifex autosync
Rudolf Polzer [Thu, 10 Aug 2023 05:23:16 +0000 (07:23 +0200)]
Transifex autosync

16 months agoTransifex autosync
Rudolf Polzer [Wed, 9 Aug 2023 05:23:16 +0000 (07:23 +0200)]
Transifex autosync

16 months agoRevert "Don't enable status effects that would end one frame after their creation...
terencehill [Tue, 8 Aug 2023 16:36:27 +0000 (18:36 +0200)]
Revert "Don't enable status effects that would end one frame after their creation, e.g. spawnshield if g_spawnshieldtime is 0"

This reverts commit 3c645bcaa1b862088ce7a2b20ed5d1e90fdc7a3f.

16 months agoDon't enable status effects that would end one frame after their creation, e.g. spawn...
terencehill [Tue, 8 Aug 2023 13:01:51 +0000 (15:01 +0200)]
Don't enable status effects that would end one frame after their creation, e.g. spawnshield if g_spawnshieldtime is 0

16 months agoFurther improve onspawn nade refiring
terencehill [Tue, 8 Aug 2023 12:11:46 +0000 (14:11 +0200)]
Further improve onspawn nade refiring

16 months agoTransifex autosync
Rudolf Polzer [Tue, 8 Aug 2023 05:23:13 +0000 (07:23 +0200)]
Transifex autosync

16 months agoMerge branch 'darkblue/nades_onspawn_fix' into 'master'
terencehill [Mon, 7 Aug 2023 20:22:56 +0000 (20:22 +0000)]
Merge branch 'darkblue/nades_onspawn_fix' into 'master'

Nades: Improved onspawn nade refiring

See merge request xonotic/xonotic-data.pk3dir!1227

16 months agoNades: Improved onspawn nade refiring
Dark Blue [Mon, 7 Aug 2023 16:46:01 +0000 (19:46 +0300)]
Nades: Improved onspawn nade refiring

16 months agoWrap all status and bitflag checks with parentesis to avoid possible obscure bugs
LegendaryGuard [Sat, 5 Aug 2023 09:46:58 +0000 (11:46 +0200)]
Wrap all status and bitflag checks with parentesis to avoid possible obscure bugs

16 months agoTransifex autosync
Rudolf Polzer [Sat, 5 Aug 2023 05:23:16 +0000 (07:23 +0200)]
Transifex autosync

16 months agoWrap some statuses with parentesis to avoid possible obscure bugs
LegendaryGuard [Fri, 4 Aug 2023 23:07:08 +0000 (01:07 +0200)]
Wrap some statuses with parentesis to avoid possible obscure bugs

16 months agoMerge branch 'bones_was_here/r_font_compress' into 'master'
LegendaryGuard [Fri, 4 Aug 2023 18:12:54 +0000 (18:12 +0000)]
Merge branch 'bones_was_here/r_font_compress' into 'master'

Compress font textures to save VRAM at low graphics settings

See merge request xonotic/xonotic-data.pk3dir!1226

16 months agoMerge branch 'bones_was_here/func_door' into 'master'
LegendaryGuard [Fri, 4 Aug 2023 18:06:31 +0000 (18:06 +0000)]
Merge branch 'bones_was_here/func_door' into 'master'

func_door and func_plat fixes and Q3 compatibility

Closes #2744

See merge request xonotic/xonotic-data.pk3dir!1083

16 months agofunc_door and func_plat fixes and Q3 compatibility
bones_was_here [Fri, 4 Aug 2023 18:06:31 +0000 (18:06 +0000)]
func_door and func_plat fixes and Q3 compatibility

16 months agoMerge branch 'AriosJentu/ItemsRespTimeSep' into 'master'
terencehill [Wed, 2 Aug 2023 16:33:13 +0000 (16:33 +0000)]
Merge branch 'AriosJentu/ItemsRespTimeSep' into 'master'

Separate health and armor item respawning timers

See merge request xonotic/xonotic-data.pk3dir!1125

16 months agoSeparate health and armor item respawning timers
Arios Jentu [Wed, 2 Aug 2023 16:33:13 +0000 (16:33 +0000)]
Separate health and armor item respawning timers

16 months agoTransifex autosync
Rudolf Polzer [Wed, 2 Aug 2023 05:23:14 +0000 (07:23 +0200)]
Transifex autosync

16 months agoTransifex autosync
Rudolf Polzer [Tue, 1 Aug 2023 05:23:15 +0000 (07:23 +0200)]
Transifex autosync

16 months agoCompress font textures to save VRAM at low graphics settings
bones_was_here [Mon, 31 Jul 2023 11:02:52 +0000 (21:02 +1000)]
Compress font textures to save VRAM at low graphics settings

16 months agoMinigames: apply flood control only to common minigame commands since individual...
terencehill [Sun, 30 Jul 2023 08:47:24 +0000 (10:47 +0200)]
Minigames: apply flood control only to common minigame commands since individual minigame commands shouldn't be limited for gameplay reasons

17 months agoOptimize a couple checks, sort notifications in all.inc
terencehill [Fri, 28 Jul 2023 18:05:13 +0000 (20:05 +0200)]
Optimize a couple checks, sort notifications in all.inc

17 months agoTransifex autosync
Rudolf Polzer [Fri, 28 Jul 2023 05:23:15 +0000 (07:23 +0200)]
Transifex autosync

17 months agoTransifex autosync
Rudolf Polzer [Mon, 24 Jul 2023 05:23:11 +0000 (07:23 +0200)]
Transifex autosync

17 months agoMerge branch 'bones_was_here/svqc_itemfixes' into 'master'
terencehill [Sun, 23 Jul 2023 08:17:47 +0000 (08:17 +0000)]
Merge branch 'bones_was_here/svqc_itemfixes' into 'master'

Items fixes and refactoring

Closes #2857

See merge request xonotic/xonotic-data.pk3dir!1222

17 months agoTransifex autosync
Rudolf Polzer [Sun, 23 Jul 2023 05:23:12 +0000 (07:23 +0200)]
Transifex autosync

17 months agoFix #2814 "trigger_push division by zero errors when starting map AMT-Freestyle6...
terencehill [Sat, 22 Jul 2023 15:04:32 +0000 (17:04 +0200)]
Fix #2814 "trigger_push division by zero errors when starting map AMT-Freestyle6". Also fix a warning on the same map when a door squashes the player

17 months agoUpdate dpdefs/upstream
bones_was_here [Sat, 22 Jul 2023 09:25:53 +0000 (19:25 +1000)]
Update dpdefs/upstream

17 months agoMerge branch 'bones_was_here/removeitem' into 'master'
bones_was_here [Fri, 21 Jul 2023 09:03:02 +0000 (09:03 +0000)]
Merge branch 'bones_was_here/removeitem' into 'master'

items: only draw the removal effect when appropriate

Closes #2849

See merge request xonotic/xonotic-data.pk3dir!1216

17 months agoitems: only draw the removal effect when appropriate
bones_was_here [Fri, 21 Jul 2023 08:57:27 +0000 (18:57 +1000)]
items: only draw the removal effect when appropriate

Sends an extra update that triggers the effect prior to removal.
Currently only used for loot items when picked up or touching void.

Fixes #2849
without reverting to the old way of sending the effect in SVQC which
caused every player to receive it even if they couldn't see the item,
and without the expense of additional culling.

Changes the pipeline hash because g_powerups_drop_ondeath is enabled by
default and bots remove an item from their goals immediately if it's
deleted, but if it still exists (for 1-2 frames in this case) they only
remove it if it's in their PVS.

17 months agoUpdate dpdefs/upstream
bones_was_here [Fri, 21 Jul 2023 08:44:10 +0000 (18:44 +1000)]
Update dpdefs/upstream

17 months agoTransifex autosync
Rudolf Polzer [Fri, 21 Jul 2023 05:23:12 +0000 (07:23 +0200)]
Transifex autosync

17 months agoTransifex autosync
Rudolf Polzer [Thu, 20 Jul 2023 05:23:11 +0000 (07:23 +0200)]
Transifex autosync

17 months agoTransifex autosync
Rudolf Polzer [Wed, 19 Jul 2023 05:23:12 +0000 (07:23 +0200)]
Transifex autosync

17 months agoinstagib: optimise item replacement
bones_was_here [Sun, 16 Jul 2023 14:29:12 +0000 (00:29 +1000)]
instagib: optimise item replacement

17 months agopowerups: fix #2857 and move g_powerups cvar out of server/items/items.qc
bones_was_here [Tue, 4 Jul 2023 12:26:24 +0000 (22:26 +1000)]
powerups: fix #2857 and move g_powerups cvar out of server/items/items.qc

This sets ITEM_FLAG_NORMAL initially and adds ITEM_FLAG_MUTATORBLOCKED
about as late as possible: must be done after mapinfo settemps are
applied, see b95beb262077d8f733bbee7cb0d5f4c05b7b3e2f
and before StartItem() calls have_pickup_item().

Moves a little more powerup-specific code out of common code.

Removes some default powerup balance settings which don't need to be in QC.

Clarifies var naming inside powerup m_iteminit() funcs.

17 months agoitems: call FilterItem mutator hook earlier as it may change almost anything
bones_was_here [Sun, 16 Jul 2023 09:10:14 +0000 (19:10 +1000)]
items: call FilterItem mutator hook earlier as it may change almost anything

such as the pickup sound (new toys).

Documents what FilterItem may and may not do.

Allows mutators to override the pickup model, consistent with being able
to override the sound.

Reduces code duplication.

17 months agoitems: clean up some more unnecessary locals in StartItem()
bones_was_here [Tue, 4 Jul 2023 12:29:16 +0000 (22:29 +1000)]
items: clean up some more unnecessary locals in StartItem()

17 months agoitems: warn instead of crashing if spawned with no pickup sound set
bones_was_here [Sun, 16 Jul 2023 07:30:37 +0000 (17:30 +1000)]
items: warn instead of crashing if spawned with no pickup sound set

Fixes null ptr deref when starting map dfwc2017-6, which was made easy
to trigger by 5606e7035655b105545cc7fbcbffa96e653b4e82