Denis Pauk
bce1d70186
make input parameters consts in shared.c where possible
2023-09-22 22:47:31 +03:00
Denis Pauk
ff70128bb9
Make all names in game interface const where possible
2023-09-22 00:58:40 +03:00
Denis Pauk
2274e86481
Make all names in render interface const
2023-09-21 23:40:45 +03:00
Frank Richter
10e791471e
Add 'skyautorotate' worldspawn property as found in rerelease game.
...
This is necessary to stop the sky in some rerelease maps, eg base1,
from spinning: these maps set a 'skyrotate' value, but explicitly
disable it with the new 'skyautorotate'.
2023-09-16 19:42:40 +03:00
David CARLIER
437c16c0d1
"constifying" where underlying C calls expect compile time constants.
2023-09-16 18:16:52 +02:00
Jaime Moreira
faee2203b8
Added missing include for USHRT_MAX
2023-09-15 11:42:50 -03:00
Jaime Moreira
118b78256f
Fixed g_swap_speed behaviour with extreme values
...
When its value was between 0 and 1, rounded down to 0.
Did the same when bigger than 65535.
Both cases locked up the entire weapon animation.
2023-08-26 19:08:26 -04:00
Jaime Moreira
a94e9dca81
Snappier "g_swap_speed" behaviour
...
Player is no longer forced to go through the last frame of activation
or deactivation of a weapon before changing its state.
2023-06-29 11:14:58 -04:00
Jaime Moreira
c5e2d51fd7
Cheat cvar "g_swap_speed" implemented
...
Allows to skip frames of "putting down weapon" and
"raising weapon" animations, speeding them up.
2023-06-28 15:28:40 -04:00
Yamagi
0e92c704c9
Merge pull request #1028 from BjossiAlfreds/tdam-dir
...
T_Damage no longer modifies dir parameter
2023-06-17 17:28:36 +02:00
BjossiAlfreds
9ca5923082
T_Damage no longer modifies dir parameter
2023-06-10 18:19:37 +00:00
BjossiAlfreds
51bbb7da70
Fix for AI bug introduced by new makron jump code
2023-06-07 13:44:11 +00:00
BjossiAlfreds
8d937b0a9c
Various fixes to makron jump sequence
2023-05-21 16:43:07 +00:00
BjossiAlfreds
f128c44e30
Fixed despawning makron torso
2023-05-09 18:37:15 +00:00
Yamagi
5fcf2f8d3f
Merge pull request #1005 from BjossiAlfreds/makrondeath
...
Fixed ungibbable makron parts
2023-05-08 18:23:46 +02:00
Yamagi
040d17ef79
Merge pull request #1007 from BjossiAlfreds/parasitefoot
...
Fixed parasites ignoring g_monsterfootsteps
2023-05-08 18:16:30 +02:00
Yamagi
f74f61a76a
Merge pull request #1003 from BjossiAlfreds/intersight
...
Fixed monsters seeing players during intermissions
2023-05-08 18:08:48 +02:00
BjossiAlfreds
3ea9d4e291
Fixed parasites ignoring g_monsterfootsteps
2023-05-07 15:15:28 +00:00
BjossiAlfreds
e720bc819d
Fixed ungibbable makron parts
2023-05-03 13:51:48 +00:00
BjossiAlfreds
413781a334
Fixed monsters seeing players during intermissions
2023-04-25 00:02:32 +00:00
BjossiAlfreds
2582a23103
Fixed stand-ground gladiators not attacking within a certain range
2023-04-22 18:46:45 +00:00
Daniel Gibson
651503d48a
Fix build with VisualC++'s internal CMake
...
.. which doesn't set CMAKE_GENERATOR_PLATFORM
so set YQ2ARCH in src/common/header/common.h when building with MSVC
2023-01-16 06:02:26 +01:00
Dremor8484
a77ad02445
Update weapon.c
...
the aimfix was working only on half of the attack, since the supershotgun shoots 2 times (half bullets left, half bullets right)
2022-12-03 15:27:40 +01:00
David CARLIER
0bc3ac6079
va little signature change
2022-10-23 22:27:39 +01:00
Yamagi
bd97725a3d
Fix savegame backward compatibility after cfb86ac
.
...
The steps when loading a savegame are:
1. The server loads the map.
2. Loading the map spawns all entities, i.e. their spawn func is called.
This loads the models, precaches the sounds, etc.
3. The savegame is loaded and all the entities in the edict are replaced
by the entities read from game.ssv.
When the monster footstep sound were added in cfb86ac
, new sounds were
added to the spawn functions of most monster entities. This alters the
sound indices of all sounds precached at a later time. When a savegame
from an older version is loaded, the entities read from game.svv still
reference the old sound indices. This leads to the wrong sound getting
played.
Work around this by lazy loading the footstep sounds. Instead of loading
(precaching) them in the spawn function, load them at their first use.
This has the nice side effect of preventing the "missing sound" messages
when running without the footsteps.pkz file in baseq2/. It might lead to
short stuttering when the sound is played for the first time, though.
Closes #917 .
2022-10-18 07:40:47 +02:00
Yamagi
434bc90fbb
Merge pull request #909 from BjossiAlfreds/collision
...
Prevent dead bodies from obstructing elevators
2022-10-08 15:32:23 +02:00
Yamagi
0b67676535
Merge pull request #906 from BjossiAlfreds/powercubes
...
Fix coop power cube related bugs
2022-10-08 15:24:40 +02:00
Yamagi
87e9db15a3
Merge pull request #904 from BjossiAlfreds/splashes
...
Fix items already in water at level start playing splash sound
2022-10-08 15:22:11 +02:00
Yamagi
ff75190541
Merge pull request #902 from BjossiAlfreds/flood
...
Prevent crash or memory corruption when flood_msgs is too high or too low
2022-10-08 15:21:23 +02:00
BjossiAlfreds
240232cdde
Prevent dead bodies from obstructing elevators and from falling through BSP geometry
2022-09-30 14:16:09 +00:00
BjossiAlfreds
37db07410f
Fix coop power cube related bugs
2022-09-24 14:31:21 +00:00
BjossiAlfreds
9891f3f5af
Fix items already in water at level start playing splash sound
2022-09-24 12:11:16 +00:00
BjossiAlfreds
153587f0cb
Prevent crash or memory corruption when flood_msgs is too low or too high
2022-09-24 01:23:39 +00: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
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
Denis Pauk
1dfeddc40f
game: fix memory leak with spawn entities cheat
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
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
Jaime Moreira
7f689f649c
Faster weapon switching with 'cycleweap'
...
Allows to skip elements on the weapon list by tapping the same bound key
2022-08-01 14:31:26 -04:00
Dremor8484
25aeb81fa7
Update weapon.c
...
aimfix cvar now applies to the doublebarrel shotgun too
2022-05-20 11:37:34 +02:00
Jaime Moreira
f80e5224bb
Added prefweap command to select weapon by priority
2022-04-06 15:28:34 -04:00
David Carlier
12509f6242
habdful of little simplifications.
2022-02-27 09:03:06 +00:00
Yamagi
7004565c72
Reset the clip mask in ThrowHead() to MASK_SHOT
.
...
xatrix uses MASK_SHOT and it sounds saner than 0.
2022-02-05 17:26:48 +01:00
Yamagi
a0cd32dddb
Fix door_go_up(), G_UseTargets() exiting early if no activator is given.
...
The problem in door_go_up() may prevent doors from crushing something
blocking them. The problem in G_UseTargets() may prevent targets from
getting killed or fired.
Pointed out by @maraakate.
2022-02-05 17:02:24 +01:00