Commit graph

86 commits

Author SHA1 Message Date
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
0b3aad5ad2
Fix entnum comparison (must be greater than or equal to the squadmate's entnum) 2024-08-27 00:09:13 +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
6b3402c631
Fix actor accuracy being crazy, killing the player easily 2024-08-05 18:43:56 +02:00
smallmodel
040f8db0ef
Fixes wrong sound volume and pitch 2024-07-02 19:10:48 +02:00
smallmodel
01d938b5ba
Fixes some variables being uninitialized 2024-06-22 19:03:04 +02:00
smallmodel
74ccb03e54
Reduced compilation warnings 2024-06-07 20:34:13 +02:00
smallmodel
135b519dd8
Reduced actor's change of getting curious 2024-06-02 23:47:06 +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
7945c2ca66
Fixed target's m_Team accidentally being overwritten
This causes NPC to look invulnerable (fixes #238)
2024-02-20 22:57:02 +01:00
smallmodel
03943a23ac
Fixed badplace and run and shoot think never working 2024-02-17 20:10:00 +01:00
smallmodel
60f6bb17e3
Fixed AI parameters not fixing AI parameters 2024-02-15 20:40:55 +01:00
smallmodel
abfdac59ba
Make aiMaxDeviation only supported on 2.0 and above 2024-02-15 00:21:01 +01:00
smallmodel
aab24260e2
FriendlyInLineOfFire should return false below 2.0 2024-02-14 20:47:54 +01:00
smallmodel
e450156bf7
Fixed path goal movement 2024-02-14 20:46:43 +01:00
smallmodel
c4855029a9
Fixed motion facing 2024-02-14 20:32:40 +01:00
smallmodel
4fa457118f
Fixed CanMovePathWithLeash() not returning the correct result 2024-02-14 20:06:35 +01:00
smallmodel
a5c6654dcb
Fixed m_fMaxDistanceSquared initialization value 2024-02-14 19:22:19 +01:00
smallmodel
5e461786f9
Added a comment about FriendlyInLineOfFire 2024-02-13 18:15:54 +01:00
smallmodel
bc0d373dcd
Fixed AI getting blocked because of an obstacle 2024-02-13 17:37:28 +01:00
smallmodel
0f37a8f6ea
Fixed m_fLeashSquared initialization 2024-02-13 16:42:54 +01:00
smallmodel
eb993dbd43
Fixed grenade toss location and wall facing 2024-02-13 16:22:56 +01:00
smallmodel
d217b1d561
Fixed some events having wrong parameters for documentation 2023-12-28 20:50:47 +01:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
990aa5cdb2
Initialize m_iBadPlaceIndex to 0 2023-11-14 00:06:26 +01:00
smallmodel
a262fe5d9d
Removed pAnimThread assert as it can be NULL 2023-11-02 19:11:44 +01:00
smallmodel
bafe60f48f
Move must fail if the Actor wants to become a runner but the idle think state is neither Runner nor Patrol 2023-11-01 20:16:44 +01:00
smallmodel
c0c6598151
Actor::WeaponSound() was not properly working 2023-10-31 23:23:29 +01:00
smallmodel
c741591a36
Syntax clarity 2023-10-30 23:00:21 +01:00
smallmodel
b0201aef5d
Set number of arguments when constructing a new Event 2023-10-29 20:20:56 +01:00
smallmodel
0906124867
Use CurrentThink() to get the current think 2023-10-28 00:01:57 +02:00
smallmodel
5a4fb90c96
Fixed THINKSTATE_ATTACK animation inside ChangeAnim() + weight should be 2.0 for ChangeMotionAnim() 2023-10-24 23:16:45 +02:00
smallmodel
4d876fdf5d
Fixed wrong state being ended in EndState() 2023-10-24 21:35:49 +02:00
smallmodel
4e4af590e5
Added m_pAnimThread assertion check 2023-10-23 22:55:09 +02:00
smallmodel
45c8c704af
Fixed ai_debugpath having an infinite line 2023-10-23 18:58:16 +02:00
smallmodel
86e9ae343a
Don't move to patorl current node with m_bPatrolWaitTrigger 2023-10-23 15:55:58 +02:00
smallmodel
e850dd1963
Make sure to prevent to transition to curious if curious isn't enabled (moh 2.30 feature) 2023-10-23 11:59:06 +02:00
smallmodel
5cffe3fb05
Fixed infinite loop with ai_debugpath 2023-10-22 21:15:58 +02:00
smallmodel
34a4a0c892
HandleKilled() didn't handle the last param 2023-10-22 20:16:36 +02:00
smallmodel
f82b6b75ff
Fixed DetectSmokeGrenades and LookAt crash 2023-10-18 20:00:32 +02:00
smallmodel
4daff05142
Fixed some methods not working as intended 2023-10-18 19:45:31 +02:00
smallmodel
6f03e388bf
Finished actor source file implementation from moh 2.0 and above 2023-10-18 19:23:55 +02:00
smallmodel
d5b61fe5cc
Pathing fixes, leash fixes 2023-10-17 23:38:33 +02:00
smallmodel
5b46e48a17
Fixed grenade code (path, give), path leash, gun target 2023-10-17 20:38:58 +02:00
smallmodel
cd2fea5262
Implemented some but not all features from mohaas and mohaab + lighter implementations + fixed implementations 2023-10-16 23:42:30 +02:00
smallmodel
daab5b9238
Fixed compile error 2023-10-16 00:31:50 +02:00
smallmodel
ce59e5e6a7
Fixed mismatched anim methods up to Actor::EventSetSayAnim 2023-10-16 00:29:41 +02:00
smallmodel
101894be37
Renamed THINKLEVEL_NORMAL to THINKLEVEL_IDLE 2023-10-15 20:52:06 +02:00
smallmodel
c7c3fcd0e0
Use a const float* for PathDelta() 2023-10-15 17:50:28 +02:00