1917 Commits

Author SHA1 Message Date
ceski
e0601f00fd
Use vertical sound position with full_sounds (#1144)
3D sound requires `source->info->actualheight` to calculate vertical position.
2023-07-11 12:46:23 -07:00
Roman Fomin
8cc12f6680
move sfx caching to i_oalsound.c from i_sound.c (#1141)
* remove unused code

* rename SOUNDHDRSIZE->DMXHDRSIZE, SOUNDPADSIZE->DMXPADSIZE
2023-07-12 02:36:38 +07:00
Roman Fomin
683b363514
add P_DegenMobjThinker() to distinguish degenmobj_t (#1143) 2023-07-12 02:35:50 +07:00
tomas7770
1d644070d8
Implement sky top color algorithm from Eternity (#1140)
* Implement sky top color algorithm from Eternity

* Fix sky color sort function not being the same as Eternity
2023-07-11 16:36:58 +02:00
Fabian Greffrath
55d3b6b64f
add some padding to the right of the sttime widget (#1139)
* add some padding to the right of the sttime widget

While at it, increase tab width and fix some misleading error message

* macroize TABWIDTH
2023-07-10 16:42:55 +02:00
Roman Fomin
a20ae9d858
interpolate backsector->heightsec (#1138) 2023-07-10 11:52:27 +07:00
ceski
acca29dc73
3D Audio Support (#1118)
* Add sound module framework

* Add 3D sound module

* Remove test edits

* Use conservative defaults

* Fix build

* Check for `ALC_OUTPUT_MODE_SOFT`

* Add parenthesis

* Update copyright

* Remove `I_` prefix from `sound_module_t`

* Add additional parenthesis

* Add comment

* Add Doom Wiki citation

* Rename HRTF to Headphones Mode

* Use shared distance limits

* Fix typo

* Add warning to restart if extension is missing

* Remove unnecessary error checking

The critical checkpoints are initialization, caching, and starting playback.

* Don't reset parameters on reinitialization

OpenAL Soft only changes the settings defined in the attributes list so this is not necessary.

* Cosmetic changes

* Calculate velocity only if using Doppler effect

* Fix variable type

* Revert "Don't reset parameters on reinitialization"

This reverts commit 4fc925a64ee4b6c23f27fd65f3fbbb0418e62f1b.

* Fix 2D panning emulation

* Don't update source direction

Sources are currently omnidirectional (no cone effect), so updating direction isn't necessary.

* Use a descriptive sound module enum

* Explicitly disable effects when not using 3D sound

* Simplify by using `snd_module`

* Use `ALC_TRUE` where appropriate

* Use correct distance for priority calculation

* Fix range check typo

* Fix orientation calculations for mouselook

* Add comments about translating coordinates

* Move `forceFlipPan` into WinMBF sound module

* Update menu item after rebase

* Use `player->slope` for pitch angle calculation

* Remove unused macro

* Move defer/process updates to higher level

* Fix comment typo

* Prep for restoring channel assignment behavior

* Restore channel assignment behavior

In `S_StartSound()`, the handle to a channel should not be assigned until after calling `S_getChannel()`.

* Update listener only once per sound update

* Limit sound update rate

* Revert "Limit sound update rate"

This reverts commit 83512b69d5faf19c4ecb6ed668c67930f5ff83e2.

* Remove obsolete `I_UpdateSound()`

* Limit sound update rate

* Skip sound updates when returning early
2023-07-09 21:26:57 -07:00
ceski
06939bd9a6
Fix mouselook/padlook checks for direct vertical aiming (#1134)
* Fix mouselook/padlook checks for direct aiming

* Add slope field to `player_t`

* Reset slope at end of level
2023-07-07 18:39:08 -07:00
ceski
30ddaae451
Ignore DMX sound padding (#1133) 2023-07-07 18:35:13 -07:00
Fabian Greffrath
cfb6df4bff release Woof! 11.3.0 woof_11.3.0 2023-07-06 08:19:57 +02:00
Roman Fomin
4476abec9c update changelog 2023-07-06 09:21:51 +07:00
Fabian Greffrath
989b341736 use sector lightlevel for sprites in Boom and Vanilla complevels
Fixes #1130
2023-07-05 08:41:01 +02:00
Roman Fomin
b10438240f
rename -nodehlump to -nodeh for consistency with other ports (#1129)
* remove `brew update`
2023-07-05 11:59:14 +07:00
Roman Fomin
7bbc40800c
don't save -nouncapped/-uncapped to config, disable menu item (#1128)
* don't save `-nouncapped`/`-uncapped` to config, disable menu item

* remove -hires/-nohires, run docgen -a
2023-07-04 17:40:11 +07:00
Roman Fomin
bdb3f387db update changelog 2023-07-04 16:08:07 +07:00
Roman Fomin
e3201c1b2d
check the status of music records in DEH to support replacing the same string (#1127)
For example PL2.wad. We don't have support for BEX music blocks and I'm not sure
if it's needed (no PWAD with it in the wild?).
2023-07-04 15:51:38 +07:00
Thomas Schaffer
f721de4e06
CLI flags -uncapped, -nouncapped, -dedicated (#1124) 2023-07-04 08:52:37 +02:00
Roman Fomin
1426cdb77b
update changelog (#1126) 2023-07-04 11:35:21 +07:00
Roman Fomin
32f1dc5dd5
fix rightmost column in weapon rendering with interpolation enabled (#1125) 2023-07-04 11:31:35 +07:00
Roman Fomin
b78d752803 fix pause for Fluidsynth 2.3.3 version 2023-07-03 16:59:59 +07:00
Roman Fomin
1d269da0f9
interpolate backsector before "fake flat" hack (#1122) 2023-07-03 09:01:36 +02:00
Fabian Greffrath
5b832c021b
do not apply weapon centering in strict mode (#1121)
* do not apply weapon centering in strict mode

* checkfor psp->state only once
2023-07-02 15:54:37 +02:00
Roman Fomin
17ab98a864
separate oldgametics counters for floors and ceilings (#1120)
* force T_MoveFloor interpolation

* don't fail fast at CI

* separate oldgametic fields for floors and ceilings

* cosmetic change
2023-07-02 15:41:35 +07:00
Fabian Greffrath
c86904de68
make direct aiming slope range symmetrical, so it matches autoaim slope range (#1117) 2023-06-26 06:22:31 +02:00
Fabian Greffrath
b131d5ff12
change player slope denominator to 160 (#1116)
* change player slope denominator to 160

* improve wording
2023-06-25 16:44:12 +02:00
Fabian Greffrath
2622133154
do not highlight crosshair when shotting over/under target with direct aiming (#1115) 2023-06-24 17:21:52 +02:00
Roman Fomin
8d2fcdbad0
win midi: refactor pause state booleans into enum (#1114)
* make pause states enum

* flush buffer immediately, cosmetic changes

* sync with Chocolate Doom version
2023-06-24 21:13:38 +07:00
Fabian Greffrath
4b631e7944
avoid unnecessary bit-shifts in ds_xstep/ds_ystep calculation (#1111)
* de-obfuscate numerical constants

* avoid unnecessary bit shifts in ds_xstep/ds_ystep calculation

* add comment
2023-06-19 14:42:34 +02:00
Roman Fomin
40f508d2aa win midi: more initialization checks 2023-06-19 13:34:04 +07:00
Roman Fomin
af60bcad49 add missed checks to i_winmusc and i_flmusic 2023-06-19 12:47:23 +07:00
Roman Fomin
2d296deeb0
win midi: increase BUFFER_INITIAL_SIZE, wait no more than 3 seconds (#1109)
Avoid midiOutUnprepareHeader() which contains use after free (tested with
ASan).

* manually unset `MHDR_INQUEUE` flag

* never delete buffer

* prepare header for new handle
2023-06-19 10:39:27 +07:00
Fabian Greffrath
01d31eb495
only reset visible parts of visplane rendering arrays (#1110) 2023-06-18 17:08:45 +02:00
Fabian Greffrath
990dde6b68 fix spelling error 2023-06-16 10:33:35 +02:00
Roman Fomin
fcd26e812a
keep ceilings mapping with ceilings, and floors mapping with floors (#1108)
Taken from Eternity Engine.
2023-06-16 13:36:46 +07:00
Fabian Greffrath
d92b18bac4 convert visplane_t.top/bottom to unsigned short 2023-06-14 21:42:03 +02:00
Fabian Greffrath
ecd30c9605 remove unused basexscale, baseyscale from r_plane.c 2023-06-14 21:33:45 +02:00
Fabian Greffrath
abae3c2a8e
check for features first, restrictive conditions second (#1106)
* check for features first, restrictive conditions second

* fix missing parenthesis

* revert macros
2023-06-14 09:17:14 +02:00
Fabian Greffrath
8bc2c4ed39
add direct vertical aiming (from Crispy Doom) (#1105)
* add direct vertical aiming (from Crispy Doom)

* add comment
2023-06-13 14:22:52 +02:00
Fabian Greffrath
a9bb88c212 release Woof! 11.2.0 woof_11.2.0 2023-06-13 13:13:59 +02:00
Roman Fomin
70856dc8cf
update CHANGELOG.md (#1104)
* update CHANGELOG.md

* mention UMAPINFO fix
2023-06-13 13:12:03 +02:00
Roman Fomin
89e5ab3678
umapinfo: fix intertext field for Doom 1 (#1103) 2023-06-13 16:33:54 +07:00
Roman Fomin
14e55738d9 fix complevel 3 in demo footer, whitespace 2023-06-13 10:00:32 +07:00
Roman Fomin
4cfe6a4d69 don't check homebrew dependencies (speed up macOS CI) 2023-06-12 16:50:20 +07:00
Fabian Greffrath
0c8e524e3d
force interpolation in second call to T_MovePlane() (#1101)
* Revert "fix door interpolation in Doom2 MAP19 (#1100)"

This reverts commit 9b1ec60e3c1e69f26174f82b1b44f6245702a322.

* fix door interpolation in Doom2 MAP19

* force interpolation in second call to T_MovePlane()

---------

Co-authored-by: Roman Fomin <rfomin@gmail.com>
2023-06-12 11:34:59 +02:00
Roman Fomin
9b1ec60e3c
fix door interpolation in Doom2 MAP19 (#1100)
* fix Boom elevators
2023-06-12 14:17:04 +07:00
tomas7770
51274c1c83
Fix P_RadiusAttack dist depending on damage (#1099)
Fix variable "dist" in P_RadiusAttack depending on damage (like vanilla Doom), which causes attack radius to actually depend on damage. Now depends on distance arg (like dsda-doom).
2023-06-12 08:48:41 +02:00
Fabian Greffrath
cdb9a57545 fix cheat key menu ordering 2023-06-12 08:46:34 +02:00
Roman Fomin
9b26d8d805
fix pickup messages in multiplayer (#1098)
* add `togglemsg()`, macronize and simplify `doomprintf()`

* fix whitespace

* rename playermsg->doomprintf, doomprintf->displaymsg
2023-06-11 17:51:44 +07:00
Fabian Greffrath
b347ca9aba
prefer IDDT cheat key over IDBEHOLDA (#1096)
* prefer IDDT cheat key over IDBEHOLDA

* improve description
2023-06-10 08:45:02 +02:00
Roman Fomin
91ba98d18d
fix weapon switching animation in multiplayer (#1097) 2023-06-09 14:48:26 +02:00