smallmodel
11f5870a8b
Add ioq3 server fixes and improvement
...
- Add a rate limit to protect against DoS attacks
- Better IPv6 support
2024-08-31 21:04:10 +02:00
smallmodel
9de71e3529
Correctly check if the AI either can see or can shoot to find the enemy
...
The AI would get stuck trying to cover otherwise
2024-08-31 18:06:02 +02:00
smallmodel
81866d96e0
Make flesh impacts properly work
2024-08-31 18:02:07 +02:00
smallmodel
70fcc70348
Fix AI turret placement
...
The AI was too much off from the turret
2024-08-31 17:34:10 +02:00
smallmodel
1911f04079
Fix strange AI turret target angles
...
The turret sometimes turned extremely fast or ignored the max yaw offset
2024-08-31 17:22:28 +02:00
smallmodel
b7288ba3f4
Don't affect the frameMsec with timescale as it causes issues with physics (like vehicles)
2024-08-31 16:50:10 +02:00
smallmodel
be655e2b9c
Fix the height of huddraw elements not being archived properly
...
A wrong variable was specified
2024-08-31 16:38:58 +02:00
smallmodel
915269e017
Fix the actor stuck targeting an enemy with really low threat (behind walls, not visible)
...
This fixes the actor being stuck aiming even if the player is near them
2024-08-31 16:24:59 +02:00
smallmodel
6071b5303c
Remove useless NET_Sleep and make sure frameMsec doesn't go below 1
2024-08-31 16:18:28 +02:00
smallmodel
e59a24ded3
Fix actors enemy not being able to be set if enemy switch is disabled
2024-08-31 16:17:37 +02:00
smallmodel
2239efa439
Fix sample_offset() returning a wrong value with looping sounds
...
The returned offset will now be the correct when the stream has been re-read from the beginning due to the sound looping
2024-08-30 21:12:39 +02:00
smallmodel
99fcec9f26
Initialize bStartedGame
2024-08-30 18:56:01 +02:00
smallmodel
2fe4e85543
Fix path goal end anim script never reaching
...
The end anim script should be executed below a certain speed (1/4 below normal speed).
This fixes a bug in e3l4 where the game would never continue past the first bunker. The actor would get stuck after collecting supplies for the first bunker at the beginning because it stopped too far away from the target origin
2024-08-30 00:44:14 +02:00
smallmodel
68f2635c06
Should be DotProduct2D
2024-08-29 23:31:46 +02:00
smallmodel
0147677412
Calculate sr/cr only if right or up is specified
2024-08-29 21:37:10 +02:00
smallmodel
89133bf05d
Fix looping sounds not stopped when stopping all sounds
...
This fixes an issue where some random looping sound (like footsteps) would be heard after restarting or when loading a saved game
2024-08-29 19:29:16 +02:00
smallmodel
7a0a671f18
Use the correct value when comparing the sound awareness multiplied by the range factor
2024-08-28 00:41:53 +02:00
smallmodel
c7d1f42edb
Use centroid when broadcasting new AI event
2024-08-28 00:40:57 +02:00
smallmodel
2b9d31fe7f
Normalize angles to fix interpolation issues on client
...
See #342
2024-08-27 15:24:31 +02:00
smallmodel
1f71bb714d
Fix sounds unexpectedly getting marked as streamed when they are not
...
This fixes #345 where a crash occurred because of a NULL buffer, as streamed sounds don't have a memory buffer
2024-08-27 12:47:58 +02:00
smallmodel
6b21f7e92e
Fix the turret firedelay behavior on mohaa base
2024-08-27 01:34:51 +02:00
smallmodel
8b5074b6ac
Fix Dot/Texcoords calc
...
This caused some shaders such as headlights beam on the opeltruck being weirdly rendered
2024-08-27 01:07:51 +02:00
smallmodel
7f7d797fce
Fix vehicles getting blocked by sentients dying
2024-08-27 00:36:03 +02:00
smallmodel
0b3aad5ad2
Fix entnum comparison (must be greater than or equal to the squadmate's entnum)
2024-08-27 00:09:13 +02:00
smallmodel
ad88215b85
Cleaned up actor_runandshoot.cpp
2024-08-26 23:45:41 +02:00
smallmodel
ccb1465e17
Use a raw pointer instead of the str object
...
Original game checks for the NUL character using the line buffer (`c_str()`) directly instead of the str object's operator[], as this would cause an assertion failure because the str's length ignore the NUL character
2024-08-26 23:09:55 +02:00
smallmodel
06d2eaf409
Fix doors opening and closing indefinitely by actors
2024-08-26 19:04:49 +02:00
smallmodel
444ce284ae
Spawn a trigger field even if the TOGGLE flag is set
...
This fixes Actors not being able to open doors
2024-08-26 18:55:10 +02:00
smallmodel
a150c1b18b
Fix animation delta repeating when getting delta of the same frame
...
This fixes actors moving too much and strangely
2024-08-26 18:18:20 +02:00
smallmodel
194e898d90
Ignore bad SFX for 3D loop sounds
2024-08-26 13:22:40 +02:00
smallmodel
0b1a20dcff
Properly save and restore sound position, also fix loopsounds not playing properly
2024-08-26 01:29:42 +02:00
smallmodel
93e7561cb3
Fix Actor::EventSoundDone() using the wrong parameter for the sfxName, causing the SoundDone event to be sent immediately
2024-08-26 01:05:58 +02:00
smallmodel
6ab654264b
Cleaned up Entity::ProcessSoundEvent()
2024-08-26 01:05:13 +02:00
smallmodel
7023184892
Fix subdivisions endianness
...
See #332
2024-08-26 00:45:21 +02:00
smallmodel
07f13d1ae9
Force the soundtrack to be sent again
2024-08-26 00:08:29 +02:00
smallmodel
ac22b1cfbf
Use an higher fragment size when sending a message to the loopback
2024-08-25 23:41:03 +02:00
smallmodel
e70cdfb898
Improve code readability
2024-08-25 22:01:03 +02:00
smallmodel
022181fcfd
Remove processed buffers after half of the queued buffers has been processed
2024-08-25 16:49:24 +02:00
smallmodel
e021289d36
Fix the turret setting incorrect angles
2024-08-24 19:23:11 +02:00
smallmodel
91b80a8e21
Fix the sound system not restarting when modifying the speaker type to 0
2024-08-24 19:19:55 +02:00
smallmodel
322ca2b42e
Fix the loop protection not working when multiple scripts are executed
...
This fix will apply the protection globally
2024-08-24 18:50:04 +02:00
smallmodel
d399ffd609
Set the correct sound velocity
2024-08-24 18:18:20 +02:00
smallmodel
bf2626f804
Set the pitch before playing the sound
2024-08-24 17:53:13 +02:00
smallmodel
00f27ac02d
Fix improper sound distance values
2024-08-24 17:35:35 +02:00
smallmodel
5134aed352
Mark the functions as inline to optimize function calls
2024-08-24 17:35:02 +02:00
smallmodel
b457a84ed9
Fix AL_DISTANCE_MODEL
value type, it must be an integer
2024-08-24 16:39:43 +02:00
smallmodel
8188d46ee7
Fix SetLittleLong() writing past end of bytes
buffer
...
(even though the union was still 4-bytes because of the integer)
2024-08-24 15:10:12 +02:00
smallmodel
d64e88451f
Fix compiler warnings
...
Note that in Dismiss(), checking for `this` is not necessary (original code was generated by the compiler)
2024-08-24 15:08:42 +02:00
smallmodel
c70c578194
Ignore ALC_OUTPUT_MODE_SOFT if unavailable
2024-08-24 14:51:58 +02:00
smallmodel
54ceff5107
Process the value of s_speaker_type
2024-08-24 14:25:25 +02:00