Commit graph

3866 commits

Author SHA1 Message Date
smallmodel
c795b2390e
Add a ScriptMaster constructor 2024-10-31 23:55:12 +01:00
smallmodel
ce7005103c
Handle the case where a vector is given for the face command 2024-10-31 23:51:36 +01:00
smallmodel
1a18878f26
Parse unary operators last when calling events 2024-10-31 22:16:20 +01:00
smallmodel
1e036a7689
Clear the torso and legs state when the movement type is set to portable turret 2024-10-31 19:49:05 +01:00
smallmodel
858b27b809
Handle the case where the legs or the torso state is NULL 2024-10-31 19:48:30 +01:00
smallmodel
b4841a878b
Only set the first found mark time and alpha fade 2024-10-31 19:37:42 +01:00
smallmodel
4565b6a9a8
Add cg_addhud and cg_removehud as whitelisted stuff commands 2024-10-31 01:45:37 +01:00
smallmodel
9ffb407d11
Fix incorrect/uninitialized token returned when there is a macro 2024-10-31 01:31:41 +01:00
smallmodel
0f3ffa267a
Parse const array elements properly 2024-10-31 01:22:38 +01:00
smallmodel
74c8aa95f5
Properly ignore single-digits 2024-10-30 23:21:14 +01:00
smallmodel
4853235d86
Don't parse the token as a variable if the identifier only contains number
This fixes an issue where floats would be parsed as a variable after brackets
2024-10-30 22:42:55 +01:00
smallmodel
0d01ea939d
Fix whole script file being printed sometimes on error 2024-10-30 21:25:15 +01:00
smallmodel
5ba6c006c2
Fix compile error 2024-10-30 00:23:42 +01:00
smallmodel
22e7d1e2e4
Only put animation definitions that exist, rather than setting a NULL animation definition
This fixes issues when searching animations by name
2024-10-29 22:27:22 +01:00
smallmodel
c650af7b55
Fix stack corruption due to an improper assignment to the alias 2024-10-29 21:37:31 +01:00
smallmodel
2ce5e498ab
Use CurrentScriptThread() when getting the current script class
So if the current thread is NULL, it will properly throw an exception
2024-10-29 21:11:44 +01:00
smallmodel
d3212c55a0
Properly parse and cache ubersounds, and don't cache resources that must be always loaded to avoid filling up sound indexes 2024-10-29 21:02:16 +01:00
smallmodel
becf9f5d8c
Cache the source position to improve the source search time
This greatly reduces the time to compile big scripts
2024-10-29 20:26:51 +01:00
smallmodel
9cd8133068
Fix the directory prefix when using filters for FS_ListFilteredFiles 2024-10-29 20:25:25 +01:00
smallmodel
48fa5c0ce6
Parse all scr files inside the ubersound folder 2024-10-28 23:29:04 +01:00
smallmodel
6fc7199719
Register server sounds in multiplayer 2024-10-28 23:28:05 +01:00
smallmodel
9e04f94625
Check if the entity is valid after processing pending events during spawn 2024-10-28 23:14:46 +01:00
smallmodel
c9b844b9ea
Count the number of loaded anims and don't return a valid animation definition if there are no loaded animations 2024-10-28 22:57:52 +01:00
smallmodel
497058d7f4
Make the driver nonsolid while moving 2024-10-28 22:30:52 +01:00
smallmodel
a509dd4692
Fix vehicle exit position when targeting the base game
The base game always uses, when specified, the exit position
2024-10-28 22:25:49 +01:00
smallmodel
8fdfffab36
Keep the mouse cursor position when the client disconnects 2024-10-28 21:13:47 +01:00
smallmodel
aa118bceb3
Set the door speed based on the door type 2024-10-28 20:59:58 +01:00
smallmodel
4d27a6daa3
Fix incorrect vert dist 2024-10-28 20:55:03 +01:00
smallmodel
b6f8997a01
Make the mark object local to the entity 2024-10-28 20:47:01 +01:00
smallmodel
bf68808eae
Set the skel index for each updated entity so poses only update when needed
This fixes poses being updated even if they don't need update (no frame changed), which resulted in some performance loss and some rare accuracy issues when AI fire weapons
2024-10-28 00:55:37 +01:00
smallmodel
5cbd2dd988
Use true/false rather than qtrue/qfalse 2024-10-28 00:45:21 +01:00
smallmodel
92b4ae2702
Use ANIM_WEIGHT_NONE instead of 0 2024-10-27 22:16:04 +01:00
smallmodel
a8cdf0b5ad
Don't update the upper animation if the think state is attack/grenade/killed/pain 2024-10-27 21:48:13 +01:00
smallmodel
e8dfa0206b
Use a macro constant for movement/action skan blend frames 2024-10-27 21:39:16 +01:00
smallmodel
afe1ba47cf
Decrease the time tolerance between frames to make animations smoother 2024-10-27 19:37:56 +01:00
smallmodel
558e69dba8
Archive the vehicle name
This was missing and this allows the torso state to the modheight to set the bounding box height. Before that, it did not recognize the turret so the modheight was still set to stand. It caused issues when trying to get out a vehicle turret, like the flak88 in e1l1 (the player wasn't able to get out of the turret)
2024-10-27 14:27:44 +01:00
smallmodel
da7cd03f09
Increase packed animation time precision
This tries to fix some client commands replaying
2024-10-27 13:42:42 +01:00
smallmodel
6934e5cff8
Check for valid target list in GetScriptTarget() 2024-10-27 12:16:19 +01:00
smallmodel
c7cdde7bc2
Check if the target list is valid before adding the entity 2024-10-26 22:42:21 +02:00
smallmodel
940ac789b9
Change the current fov only if the fov is currently the selected fov
This prevents the player from modifying the fov while zooming
2024-10-26 22:42:18 +02:00
smallmodel
3d46bae1d0
Stop the triggered music when the server is restarted 2024-10-26 15:07:47 +02:00
smallmodel
16bedf7e86
Warp the sample offset for small streams so it doesn't get past the stream size 2024-10-26 15:07:09 +02:00
smallmodel
0ad5222946
Use the correct stopwatch for explosives 2024-10-26 13:34:33 +02:00
smallmodel
2b4aef4ea6
Add a newline to Cmd_Stuff
Next commands weren't correctly appended
2024-10-26 13:28:49 +02:00
smallmodel
679cf4b7ec
Correctly remove "prespawn"/"spawn" waittill when loading from save 2024-10-26 13:27:32 +02:00
smallmodel
a993b8d352
Specify "Fixed" instead of "Added" as it's a bug that was fixed 2024-10-26 00:34:50 +02:00
smallmodel
b7403347bb
Ignore the first responder if it's disabled so the UI doesn't get blocked by it 2024-10-26 00:30:42 +02:00
smallmodel
bf978256e9
Add changes from upstream, like pipefile, random number seed 2024-10-25 22:33:02 +02:00
smallmodel
9bd25e9734
Combine mouse movement events in event queue 2024-10-25 22:08:24 +02:00
smallmodel
e7499cca04
Also halt the secondary server list if it exists, when canceling refresh 2024-10-25 22:07:23 +02:00