Commit graph

1167 commits

Author SHA1 Message Date
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
smallmodel
c4683e2417
Don't execute entity events from the console if the client isn't running
This prevent the server from executing console commands for the first player
2024-08-31 21:18:35 +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
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
e59a24ded3
Fix actors enemy not being able to be set if enemy switch is disabled 2024-08-31 16:17:37 +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
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
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
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
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
07f13d1ae9
Force the soundtrack to be sent again 2024-08-26 00:08:29 +02:00
smallmodel
e021289d36
Fix the turret setting incorrect angles 2024-08-24 19:23:11 +02:00
smallmodel
32b0b2dfac
Fix camera angles changing too much when switching between linked turrets 2024-08-24 00:40:23 +02:00