Commit graph

1070 commits

Author SHA1 Message Date
smallmodel
8b16e94829
Fixed grenade bounce sound overly playing 2024-06-09 19:56:41 +02:00
smallmodel
618223f01b
Ignore NumShaders in protocol version 8 and below 2024-06-09 19:32:15 +02:00
smallmodel
2b01f092b3
Fixed german model always being set to german_wehrmacht_soldier 2024-06-09 18:23:06 +02:00
smallmodel
cb59edc963
Handle script exceptions in G_ServerSpawned 2024-06-09 16:56:42 +02:00
smallmodel
0ce70b9f8f
Improved/fixed archive support for big-endian platforms 2024-06-09 16:53:50 +02:00
smallmodel
d3d2082e41
Removed useless print 2024-06-09 13:08:01 +02:00
smallmodel
ebd885f053
Fixed Subclient not having the correct client name 2024-06-07 20:36:55 +02:00
smallmodel
74ccb03e54
Reduced compilation warnings 2024-06-07 20:34:13 +02:00
smallmodel
884a76db4c
Drop error instead of throwing an exception to meet non-throwing exception specification 2024-06-07 19:55:33 +02:00
smallmodel
18e5c6e714
Use unsigned format specifier to match MAX_VOTEOPTIONS_BUFFER_LENGTH's type 2024-06-07 19:49:51 +02:00
smallmodel
468341b7d0
Explicitly mark as override 2024-06-07 19:49:29 +02:00
smallmodel
d64ef13b79
Fixed script_skyorigin never being sent to clients 2024-06-03 21:34:48 +02:00
smallmodel
911e87c6ec
physics_off: Don't reset the physics in 1.0 in Single-player mode
This fixes #303 in m4l2 where the player doesn't have their gun holstered in the truck
2024-06-03 20:29:41 +02:00
smallmodel
b75c7b64f1
Still allow crouch when glued in 1.0 and in Single-player mode
This fixes #303 where the player is standing in the truck in m4l2
2024-06-03 20:28:39 +02:00
smallmodel
135b519dd8
Reduced actor's change of getting curious 2024-06-02 23:47:06 +02:00
smallmodel
b7a0607d52
Using parameters that take the entity rather than raw values 2024-06-02 19:55:42 +02:00
smallmodel
0a3a23af41
Using AI_EVENT_MAX to check for max ai events 2024-05-29 23:54:48 +02:00
smallmodel
a85694b548
Fixed incorrect method for EV_ScriptThread_Showmenu.
This fixes #302 where screen text with the mission date would never be shown.
2024-05-28 20:49:09 +02:00
smallmodel
16464c5a68
Removed zone events from entity
This fixes a conflict where some scripts would store stuff in a variable named `zone` in an entity
2024-05-27 23:28:12 +02:00
smallmodel
98239050d8
Correctly archive the active weapon (safe pointer)
This fixes the player sometimes being holstered after loading from a save (closes #270)
2024-05-12 23:55:11 +02:00
smallmodel
dc7caf04a8
Fixed MoveTo not working on waypoints.
This fixes an issue where objects using waypoint (like elevators) would move at `(0 0 0)`. Closes #298
2024-05-12 23:40:11 +02:00
smallmodel
170b4b0972
Fixed ScriptAimedStrafingGunfire aimTarget never set nor used
This fixes the gunfire incorrectly damaging things it shouldn't damage.

For example, the sniper3 balcony AI on e3l1:
The bomber caused this AI to fall before initialization (by damaging them when it shouldn't), the AI became nonsolid. After initialization, the AI had enemy enabled, however it remained nonsolid because of the balcony fall. It was constantly shooting at the player and it was unkillable because it was nonsolid.
The mission wasn't able to be completed because of this issue.
2024-05-01 20:18:52 +02:00
smallmodel
e5dbfba55e
Fixed an issue where scripts would get compiled every time they are executed, causing a performance issue 2024-05-01 17:54:45 +02:00
smallmodel
daa7aceecf
Fixed sighttrace not properly passing entities
This fixes the issue where some scripts (like e2l3's BattleHouse) expect sighttrace to ignore entities (fixes #202)
2024-05-01 17:43:04 +02:00
smallmodel
35681e7a1f
Added MASK_IGNORE_ENTS 2024-05-01 17:42:02 +02:00
smallmodel
d4dfde3340
Trigger must not be effective when being damaged if it does not take damage
This fixes issue with vehicles damaging triggers by touching them (like the ClickItemTrigger on m5l3 with tanks)
2024-04-30 20:26:08 +02:00
smallmodel
16f775c78c
Fixed ScriptSlave path with 2 equal points
This fixes the script slave moving infinitely and not sending movedone notifications as it would never advance to the next path. e3l4's outro is now fixed because of that (was stuck).
2024-04-29 23:42:05 +02:00
smallmodel
af919dadca
Simplified code for g_showflypath 2024-04-29 20:04:21 +02:00
smallmodel
41c322ec81
Refactored ScriptSlave::FollowingPath and ScriptSlave::SetupPath with bugfixes 2024-04-29 19:59:16 +02:00
smallmodel
ac8c18250d
If the actor is an american, always call ThinkHoldGun_TurretGun() without checking for enemy 2024-04-28 20:39:54 +02:00
smallmodel
3cd5acf3aa
Fixed issue with case-sensitive variables.
normal/return commands are case-insensitive
getter/setter commands are case-sensitive
2024-04-22 20:10:01 +02:00
smallmodel
48fc5a72b8
Fixed some setters and getters being inverted 2024-04-22 19:59:20 +02:00
smallmodel
26c3375112
When there is no enter_boneindex for turret slot, use the boneindex instead
This fixes #208
2024-04-22 18:28:56 +02:00
smallmodel
e89543710c
Check for max use angle when using the vehicle 2024-04-22 18:04:14 +02:00
smallmodel
6d10ed27c5
Fixed preferred weapon not showing on stats screen
Fixes #271
2024-04-22 16:48:24 +02:00
smallmodel
19c68aa25d
Ignore player collision if the actor is already nonsolid
This fixes #277 where the vehicle could get stuck due to the actor being solid afterwards
2024-04-21 20:33:31 +02:00
smallmodel
5ee7cb16bb
for ANIM_MODE_SCRIPTED and ANIM_MODE_NOCLIP, set the yaw based on the angular delta 2024-04-21 20:28:54 +02:00
smallmodel
4630a1f386
Fixed wrong return values for Vehicle::EventCanUse
It fixes Modello being hardly usable on maps like e3l2
2024-04-21 19:40:33 +02:00
smallmodel
06dab5d8b0
Refactored ScriptThread::EventPointsWithinDist for more clarity 2024-04-21 19:39:39 +02:00
smallmodel
f39a4c0bc7
Fixed projectile explosion origin.
This fixes exploder triggers sometimes never being triggered (fixes #294)
2024-04-21 17:47:39 +02:00
smallmodel
927f4bb4bd
Marked overridden virtual methods 2024-04-11 00:30:00 +02:00
smallmodel
f9901787b5
Removed "touch" unregistration 2024-04-11 00:26:45 +02:00
smallmodel
d6870ecbee
Added trigger_sideduse from 2.30 2024-04-10 21:44:03 +02:00
smallmodel
eea8c42268
Added GetOwner event 2024-04-10 21:37:49 +02:00
smallmodel
99647e677a
Do projectile vulnerability for vehicles 2024-04-10 00:22:35 +02:00
smallmodel
a5d637dbb3
Added GetOwner() 2024-04-10 00:21:23 +02:00
smallmodel
048a973290
Added GetProjectileHitsRemaining 2024-04-10 00:20:32 +02:00
smallmodel
fa80e0bd75
Implemented FencePost 2024-04-10 00:05:00 +02:00
smallmodel
a23de7b361
Made Killed() a virtual method 2024-04-09 23:54:08 +02:00
smallmodel
2bf1144a14
Removed unused source files 2024-04-09 22:41:41 +02:00