Commit graph

1391 commits

Author SHA1 Message Date
smallmodel
c76dda1523
Fix a small mistake in normal calculations for MM_ClipVelocity
This leaded to some occasional errors in AI movement, like in e3l2 where the medic gets stuck while going down the stairs
2024-09-25 20:22:42 +02:00
smallmodel
b5034e5b12
Fix the m_iSaySlot being mistakenly used for the weight cross blend, the specified slot parameter must be used instead
This fixes #266 where some AIs would lack speech animation
2024-09-25 20:04:58 +02:00
smallmodel
b039333922
Call AnimName() to get the current animation name 2024-09-25 19:48:06 +02:00
smallmodel
b504e0d109
Call CurrentAnim() to retrieve the animation index 2024-09-25 19:47:43 +02:00
smallmodel
639da1a4b8
Remove unused variables 2024-09-24 20:09:39 +02:00
smallmodel
c6675f2013
Remove special features code to avoid any confusion 2024-09-22 20:06:31 +02:00
smallmodel
764b95f617
Set a better name for binaries to properly distinguish the name of the architecture 2024-09-22 14:56:02 +02:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy 2024-09-20 23:08:53 +02:00
smallmodel
a69d9d4483
Fix compilation errors for MacOS, and add support for MacOS 2024-09-20 21:31:27 +02:00
smallmodel
17d623bf85
Add more clarity + check the length of the const_str enumeration and the length of the const string array to make sure they both match 2024-09-19 21:23:19 +02:00
smallmodel
20d11f5f97
Add max_amount parameter to the EV_Sentient_GiveAmmo documentation 2024-09-19 21:02:04 +02:00
smallmodel
52c79f7f77
Make crates correctly fall 2024-09-19 20:49:33 +02:00
smallmodel
c97bc2e977
Add more clarity in crateobject.cpp 2024-09-19 20:38:31 +02:00
smallmodel
78d564cc04
Fix CrateThink stopping when it shouldn't 2024-09-19 20:34:04 +02:00
Sébastien Noel
a010e648ee Fix a few typos 2024-09-19 10:52:47 +02:00
smallmodel
2ab826268d
Clear the legs state during the torso evaluation when the movecontrol is not legs
The legs state won't be stuck anymore waiting for an empty animation. This could happen under special circumstances, when the torso evaluation sets the movecontrol to non-legs (clears the legs anim) and then back to legs in subsequent iterations.
Fixes #105, the issue cannot be exploited anymore for land-sharking
2024-09-16 20:20:19 +02:00
smallmodel
f35582489d
Fix support for british, russian and italian voices in Spearhead and Breakthrough 2024-09-16 18:09:56 +02:00
smallmodel
77292fb9ab
First person spectator fix (not working yet) 2024-09-15 01:21:17 +02:00
smallmodel
46e9046629
Implement VehicleHalfTrack 2024-09-15 01:03:37 +02:00
smallmodel
e5af60787e
Partially implement GetZone/IsInZone 2024-09-15 00:42:35 +02:00
smallmodel
0840cdd83a
Restore the old behavior where the bullet would hit all entities in sight. Only works when targeting mohaa version 1.x
Fixes #348. Since 2.0, bullet trace stops after the first hit entity even if it's a trigger, which can be an issue on some SP maps.
2024-09-10 19:01:34 +02:00
smallmodel
603444a69f
Fix an issue where the remaining time would reach 0:00 and the match would never end
See #287, this occurred when the fraglimit was defined.
2024-09-09 22:25:54 +02:00
smallmodel
725561b655
Fix the usage of memory, strings, constant and parameters 2024-09-08 23:54:47 +02:00
smallmodel
7c57c4b131
Fix wrong secondary ammo type being picked up 2024-09-08 20:20:58 +02:00
smallmodel
58e39add5b
Implemented treadmarks update functions 2024-09-05 01:04:53 +02:00
smallmodel
61725c95df
Add MASK_TREADMARKS 2024-09-05 00:43:36 +02:00
smallmodel
b1e640ad1d
Implement CG_PermanentMark 2024-09-04 21:41:16 +02:00
smallmodel
3733761696
Fix the reloading sound in 2.0, the behavior is different in 2.0 and 2.30 2024-09-02 19:52:32 +02:00
smallmodel
cde7cbc3a3
Implement G_ClientDrawTags 2024-09-02 19:52:32 +02:00
smallmodel
e927da56cf
Fix GetTagPositionAndOrientation() returning wrong tag axis and position 2024-09-02 19:52:31 +02:00
smallmodel
3b8bffe39c
Fix variable misspelling 2024-09-02 19:52:31 +02:00
smallmodel
19da377064
Implement G_ObfuscationForSmokeSprites
This is used so the player can throw a smoke grenade and hide behind it for AI
2024-09-02 19:52:30 +02:00
smallmodel
4d1380b5c4
Implement G_ClientDoBlends and FindIntermissionPoint 2024-09-02 19:52:30 +02:00
smallmodel
53565663d9
Add old welcome code (commented out) for when a player becomes spectator 2024-09-02 01:01:55 +02:00
smallmodel
76f0e17987
Fix bullet trace end being out of bounds, causing clients to have a strange bullet trace 2024-09-02 00:42:29 +02:00
smallmodel
a539da3200
Clear velocity and avelocity in MoveDone
This fixes objects rotating forever like the radio tower in m1l3a
2024-09-02 00:06:12 +02:00
smallmodel
89d805ab92
Fix the FireDelay always returning for FIRE_PRIMARY 2024-09-01 20:42:19 +02:00
smallmodel
595e6fcb8b
Fix AI firing forever in mohaa 2024-09-01 20:36:54 +02:00
smallmodel
a9792bd4c3
Add comments above all actor.cpp methods 2024-09-01 20:21:44 +02:00
smallmodel
c19bc7e7a2
Add comments about new additions from 2.0 and above 2024-09-01 20:04:10 +02:00
smallmodel
3e980ed371
Unset the script goal once the AI reached the point 2024-09-01 19:38:05 +02:00
smallmodel
a9a7c7fdb8
Adjust area portal when closing before broadcasting ai events 2024-09-01 18:49:41 +02:00
smallmodel
5baf5bccf2
Notify scripts when door has closed/opened 2024-09-01 18:43:38 +02:00
smallmodel
981d72ac5a
Add assertions to check for invalid path distance 2024-09-01 18:28:01 +02:00
smallmodel
f3222fc36a
Set AI angles only if they don't have an enemy, otherwise let the AI set their angles
This prevented actors from attacking correctly because the AI cover target state expects the AI to 100% stare at the enemy and the vehicle would keep changing the AI angles
2024-09-01 17:16:09 +02:00
smallmodel
e5aee8d206
Fix the MG42 fire delay being too slow by default for AIs 2024-09-01 16:51:41 +02:00
smallmodel
96d16bcbc1
Correctly check the max yaw offset in AI_CanTarget()
This caused AI to exit turrets immediately
2024-09-01 16:46:24 +02:00
smallmodel
bdec6aab07
Fix calls to class dumping functions 2024-08-31 22:09:50 +02:00
smallmodel
29c3bece4e
Prevent players to use developer commands like lod or view 2024-08-31 21:32:55 +02:00
smallmodel
dc24a4a067
Stop spawning if there is no entity 0 (could only happen in multiplayer) 2024-08-31 21:32:42 +02:00