Jaime Moreira
654c145e29
Quicksaves can be deleted from menu
...
Also, avoids asking for deletion in "<empty>" savegames
2022-09-23 17:57:01 -03:00
David Carlier
9d38e5c347
Sys_CpuPause uses the new SDL_CPUPauseInstruction macro if available.
2022-09-20 19:06:03 +01:00
Jaime Moreira
9de55c603d
Classic cvar 'in_initjoy' resurrected
...
Added myself to credits
2022-09-19 11:36:23 -03:00
Jaime Moreira
da31490684
"Invert gyro" spincontrols
2022-09-19 11:27:47 -03:00
Jaime Moreira
54eb9e441d
Sliders can ignore cvar value's sign, if needed
...
Gyro sensitivity sliders need this, since their values can be negative
to invert pitch and yaw.
2022-09-19 11:24:06 -03:00
Yamagi
e29d37956a
Merge pull request #868 from devnexen/cmake_build_fix2
...
Cmake build fix2
2022-09-19 11:11:53 +02:00
Denis Pauk
61f4540617
Fix documentation for model preview.
...
All default players models have 84-94 frames for salute.
So value will be same for `cyborg`/`female`/`male`.
2022-09-18 12:39:50 +03:00
Denis Pauk
3b583a7143
Bumb game version value
...
New code has exported monster footsteps sounds function.
Fixes typos.
2022-09-18 12:39:50 +03:00
Denis Pauk
4946400260
sound: reverb logic cleanup
2022-09-18 12:39:50 +03:00
Denis Pauk
93c6c76b0e
sound: cleanup reverb code
2022-09-18 12:39:50 +03:00
Denis Pauk
983f1db185
audio: Update autopick reverb magic
2022-09-18 12:39:50 +03:00
Denis Pauk
eb640a0033
sound: Little bit simplify reverb
2022-09-18 12:39:50 +03:00
SkacikPL
f0d6db5d4a
Improved reverb behavior and presets
...
Adjusted presets and their ranges. Occluded sounds no longer have reverb.
Cherrypick of 66927bff72
2022-09-18 12:39:50 +03:00
SkacikPL
93812df488
Added reverb sound effect
...
Enabled by default, can be disabled via s_reverb 0. Also by default
picks preset automatically out of 7 presets based on surrounding
size, this function can be disabled via s_reverb_preset_autopick 0.
Presets can be set manually via s_reverb_preset (0-113).
Cherrypick of ac7be51e94
2022-09-18 12:39:50 +03:00
SkacikPL
66f1bc9a33
Add simple sound occusion based on YQ2 AL EFX code
...
Can be disabled via s_occlusion 0, strength is modified
via s_occlusion_strength (higher values are actually less occlusion).
Cherrypick of b557494e14
2022-09-18 12:39:50 +03:00
Denis Pauk
9820aa4cb1
game: sync functions definitions
...
Make local variables static
2022-09-18 12:39:50 +03:00
Denis Pauk
a1d053bca1
game: replace rand with randk in footsteps
2022-09-18 12:39:50 +03:00
Denis Pauk
e1164fc839
game: Fix makron walk
...
Walk/Run is fully same for makron, looks like copy/paste issue.
2022-09-18 12:39:50 +03:00
Denis Pauk
90b14fca24
game: make mframe static and export footstep functions
2022-09-18 12:39:50 +03:00
SkacikPL
cfb86acc81
game: Implement monster footsteps.
...
Better tracking of enemies complementing the audio changes.
Cherrypick of 74edb966a2
2022-09-18 12:39:50 +03:00
Yamagi
5a3163a7e4
Merge remote-tracking branch 'ui/ui'
2022-09-18 09:43:49 +02:00
Ted Thompson
7e7cda4487
Added brackets around mod names in menu
2022-09-17 17:30:17 +02:00
Yamagi
1053b5dfb1
Merge pull request #871 from 0lvin/new_commands
...
Add new cheats spawn commands
2022-09-17 17:17:02 +02:00
Yamagi
e705b48a8e
Merge pull request #883 from protocultor/thumbsticks_fs
...
Improved controller thumbsticks precision + Flick Stick
2022-09-17 16:13:57 +02:00
David Carlier
2301ce0f78
Fix cmake's C11 build and removing C99 flag then.
2022-09-16 21:27:32 +01:00
apartfromtime
f63b5914f6
Include guard pointers
...
Spincontrol checks for null itemnames, which could cause undefined behaviour (menu disappears or crashes) in some instances.
2022-09-10 09:05:36 +10:00
Denis Pauk
1dfeddc40f
game: fix memory leak with spawn entities cheat
2022-09-04 23:40:55 +03:00
Denis Pauk
5cddd2110c
client: add multiplayer model preview animation
2022-09-04 23:40:55 +03:00
Denis Pauk
cf110b5ea0
game: Add spawn on start point
...
It could be used for spawn weapon or opponnent for coop at spawn point.
2022-09-04 23:40:55 +03:00
Denis Pauk
2a8a2f390a
game: add spawn entity by coordinates
2022-09-04 23:40:55 +03:00
Yamagi
021d6480d6
Merge pull request #873 from skullernet/pusher-delta-yaw
...
Remove broken pusher delta yaw manipulation
2022-09-04 18:55:46 +02:00
Yamagi
ac9c09694a
Don't try to draw particles if there aren't any.
...
This fixes a VLA getting allocated with length 0 which is undefined
behavior. Additionally it may yield a small performance gain in some
situations.
2022-09-04 18:45:07 +02:00
Yamagi
a4edbb979f
Merge pull request #866 from apartfromtime/ui
...
Make skin icon bitmap part of the player setup menu
2022-09-04 18:37:46 +02:00
Yamagi
a44de1596d
Fix spin controls getting applied multiple times.
...
When a spin control is at min or max value, pressing the arrow key to
switch to the next nonexiting value executes the callback function. That
is confusing.
Example: 'freelook' is set to 'no'. The user presses left arrow,
switching to the nonexiting value before no. The code handles the
case and resets the current value drom -1 to 0. Nevertheless the
callback is executed and switches 'freelook' from no to yes...
Fix that by not executing the callback when we're at min or max value.
Closes #884 .
2022-09-04 18:18:58 +02:00
Jaime Moreira
2ee5d7b479
IN_MapRange slight optimization
2022-08-25 21:07:53 -04:00
Jaime Moreira
c6dd713c89
Smooth rotation for Flick Stick
...
Added cvar to change maximum rotation angle that will be smoothed
2022-08-24 19:37:25 -04:00
Jaime Moreira
748909fd96
"Flick Stick" controller layout implementation
...
With southpaw version added to "sticks layout" menu
Cvar for length of stick to be considered a flick or rotation
Lacks rotation smoothing
2022-08-24 19:02:21 -04:00
Jaime Moreira
0417bc1023
Sloped axial deadzone added
...
2 cvars to change it, 1 per stick
Provides the "snap-to-axis" feeling of the previous axial deadzone
2022-08-24 17:48:33 -04:00
Jaime Moreira
f3fcf3fc24
Joystick handling refactored for precision
...
Changed 6 cvars for stick layout to 1; includes menu option
Axial deadzone replaced with radial one, 6 cvars to 2
Expo different for each thumbstick (1 cvar to 2); sliders included
Expo applied to full joystick vector magnitude, instead of per axis
Deleted "joystick_up" ("updown" function) and its sensitivity
2022-08-24 12:30:39 -04:00
Jaime Moreira
301a2ce735
Disable gyro when game is paused
...
Changed text on controller menu for lower resolutions
Appropiate data type for updates_countdown
2022-08-23 18:36:33 -04:00
apartfromtime
45f4e1860c
Check for null and free correct number of directories
...
Potential errors.
2022-08-21 11:31:09 +10:00
apartfromtime
243d4193ee
Add player models command
...
Update documentation.
2022-08-19 16:07:12 +10:00
apartfromtime
4c7ab467f8
Dangling pointer on free
...
Won't need the guard pointer.
2022-08-19 16:05:21 +10:00
apartfromtime
64ac8c3183
Zero list elements
...
For in check for "NULL" cases, if free succeeds you probably want to
clear the pointer bits.
2022-08-19 15:26:53 +10:00
apartfromtime
73427b77a2
Convert model info from AOS to SOA
...
Converted model info from AOS to SOA
All strings allocated dynamically at run-time
New command "playermodels" prints valid models to console
Fixes any bugs that may have existed in the directory search
The issue still exists of undefined behavior if a directory name for a
model exceeds the predefined limits.
2022-08-19 15:22:22 +10:00
Andrey Nazarov
fe15bf2335
Remove broken pusher delta yaw manipulation.
...
This didn't work correctly for multiple reasons:
1. `deltayaw` was wrongly initialized for the pusher itself, rather than
for pushed client.
2. `delta_angles[YAW]` is a short, adding plain `amove[YAW]` to it is
wrong.
To support yaw angle rotation properly, delta_angles must be
interpolated on the client. But this is hardly practical as it would
introduce other bugs. Thus, simply remove delta yaw manipulation code
altogether.
Fixes infamous Q2 bug when player standing on a blocked lift gets turned
into wrong direction.
2022-08-16 01:43:47 +03:00
apartfromtime
acea0c54d9
Remove player skin box bounds check introduced in #866
...
Failure produces black screen.
2022-08-13 10:09:05 +10:00
apartfromtime
e87f025d13
Merge branch 'master' into ui
2022-08-13 10:08:02 +10:00
Yamagi
98a4522b1b
Merge pull request #865 from protocultor/cycleweap_quick
...
Faster weapon switching with 'cycleweap'
2022-08-07 18:21:30 +02:00
Yamagi
ef68b3d8d5
Merge pull request #864 from protocultor/sliders
...
Enhanced sliders
2022-08-07 18:19:20 +02:00