Commit graph

101 commits

Author SHA1 Message Date
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
5cbd2dd988
Use true/false rather than qtrue/qfalse 2024-10-28 00:45:21 +01:00
smallmodel
a8cdf0b5ad
Don't update the upper animation if the think state is attack/grenade/killed/pain 2024-10-27 21:48:13 +01:00
smallmodel
b7a643aa59
Fix AI wrongly aiming at the wrong direction 2024-10-22 21:51:03 +02:00
smallmodel
16b0f0d625
Use random() in CuriousSound() 2024-10-06 00:53:31 +02:00
smallmodel
9a7ba0786c
Set the correct number of bits for the large bullet flag in 2.0 and above
This fixes the issue where there the client (in spearhead protocol mode) would read 2 bits instead of the 1 bit the server sent, which would cause a parse error
2024-10-01 18:52:39 +02:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy 2024-09-20 23:08:53 +02:00
Sébastien Noel
a010e648ee Fix a few typos 2024-09-19 10:52:47 +02:00
smallmodel
725561b655
Fix the usage of memory, strings, constant and parameters 2024-09-08 23:54:47 +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
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
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