Commit graph

3687 commits

Author SHA1 Message Date
smallmodel
f40f206161
Don't add the owner velocity by default
This fixes an issue where AI would throw grenades incorrectly
2024-11-03 00:21:27 +01:00
smallmodel
1235f42143
Set the grenade mode when tossing a grenade with the specified speed 2024-11-03 00:20:47 +01:00
smallmodel
1016bfa1ad
Fix calcgrenadetoss2 not pointing to the correct method 2024-11-03 00:19:31 +01:00
smallmodel
f9ce111784
Set the targetname for projectiles 2024-11-02 22:38:45 +01:00
smallmodel
4c057faf73
Add a newline for warnings 2024-11-02 21:51:19 +01:00
smallmodel
4f16179c09
getmins/getmaxs are getters instead of returns 2024-11-02 21:46:55 +01:00
smallmodel
6991c9f9f7
Fix save comment not having the proper string 2024-11-02 21:22:24 +01:00
smallmodel
6e6dac0b74
Proper formatting 2024-11-02 20:56:32 +01:00
smallmodel
23f9c1a1e6
Only set the effect angles from the supplied angles if the spawnthing doesn't have angle set 2024-11-02 20:14:30 +01:00
smallmodel
e4b2c863d8
Fix angles not being set correctly from the base 2024-11-02 20:13:23 +01:00
smallmodel
ae16994289
Fix amplitude mistakenly being set instead of the base 2024-11-02 19:46:32 +01:00
smallmodel
b8b17bb0c9
Implement VSS wind 2024-11-02 19:12:09 +01:00
smallmodel
3098fc98d3
Don't change the velocity for VSS, this was a mistake 2024-11-02 19:01:05 +01:00
smallmodel
f3ecfd04da
Use macro flags rather than constant values 2024-11-02 18:41:56 +01:00
smallmodel
0796fab24b
Fix VSS sources not lerping at all 2024-11-02 18:06:56 +01:00
smallmodel
0fda31b430
Fix radial velocity/circle effects not properly applying 2024-11-02 17:52:33 +01:00
smallmodel
84a2b4be76
Use cg_effect_physicsrate instead of a constant value 2024-11-02 17:51:44 +01:00
smallmodel
5269fbb1fa
Don't set the accel flag for swarm FX 2024-11-02 17:26:08 +01:00
smallmodel
f23dfa091e
Fix wrong flag used for checking for PMF_NO_HUD 2024-11-02 13:48:03 +01:00
smallmodel
32c3964474
Fix the source line having the entire file 2024-11-01 00:11:09 +01:00
smallmodel
6ff92f0a7e
Process the ubersound folder differently depending on the target version
- On 1.11 and below, the ubersound folder is parsed either only in dedicated server mode or in client-only mode
- On 2.0 and above, alias are cleared and the ubersound folder is always parsed in multiplayer on both client and server
2024-10-31 23:57:18 +01:00
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