Commit graph

36 commits

Author SHA1 Message Date
smallmodel
6bac4bd57a
Add assertions to check for valid squad mates 2024-11-03 15:09:27 +01:00
smallmodel
3d454c90cb
Rework the target list, use a container instead of an hash set so the target list gets archived correctly
This fixes an issue when loading from a save. A variable referencing target list container would have random entities in it, which would cause errors and crashes when trying to do an action on the array of entities
2024-10-22 20:05:53 +02:00
smallmodel
7dbf1d7bf5
Add a method to get the ladder 2024-10-08 21:52:49 +02:00
smallmodel
a5058c7bab
Call Delete() instead of deleting the item as it could cause issues if the item is being deleted while iterating over edicts 2024-10-06 19:57:03 +02:00
smallmodel
1fde1647e8
Use the proper enum for BroadcastAIEvent 2024-10-05 21:24:29 +02:00
smallmodel
c7561b1f6d
Send the GotKill event to the attacker when killed 2024-10-02 21:50:59 +02:00
smallmodel
20d11f5f97
Add max_amount parameter to the EV_Sentient_GiveAmmo documentation 2024-09-19 21:02:04 +02:00
Sébastien Noel
a010e648ee Fix a few typos 2024-09-19 10:52:47 +02:00
smallmodel
d5da32b8a9
Fix AI damage 2024-08-05 18:43:40 +02:00
smallmodel
01d938b5ba
Fixes some variables being uninitialized 2024-06-22 19:03:04 +02:00
smallmodel
b4de0b53e4
Special items must not be archived in persistent data 2024-03-06 19:43:37 +01:00
smallmodel
cacf1ca1b7
Set the unarmed flag when archiving persistent data 2024-03-06 19:35:15 +01:00
smallmodel
98c61529b9
Archive the weapon clip amount in persistent data 2024-03-06 19:33:48 +01:00
smallmodel
35e6435382
Reimplemented DropInventoryItems from 2.30 2024-02-22 23:12:04 +01:00
smallmodel
7a2735885f
Send information about sentient's team
This fixes #259
2024-02-22 22:50:36 +01:00
smallmodel
0167f0a3a4
Using Added in OPM comments 2023-12-28 20:35:33 +01:00
smallmodel
2cc47e10f9
Added missing iNextLandTime archived variable 2023-11-27 20:06:19 +01:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
b0201aef5d
Set number of arguments when constructing a new Event 2023-10-29 20:20:56 +01:00
smallmodel
978666c946
AssertValidSquad() in DisbandSquadMate() 2023-10-24 21:35:16 +02:00
smallmodel
1fb073fd6a
Added IsDisabled() 2023-10-12 19:04:47 +02:00
smallmodel
96c9a014e6
When getting string from event, store it in an str to avoid potential undefined behavior due to str destruction 2023-10-06 20:13:31 +02:00
smallmodel
e1bd69b467
Added SetVehicle / GetTurret / SetTurret 2023-10-02 18:09:55 +02:00
smallmodel
f3ad05dc85
Added GetVehicle 2023-09-24 00:27:51 +02:00
smallmodel
5f5055f4fc
Added Sentient::SetHolsteredByCode 2023-09-17 16:27:18 +02:00
smallmodel
000ec39c81
Added non-pvs landing sound 2023-09-03 22:13:03 +02:00
smallmodel
f19c3408e1
Fixed footonground using right foot 2023-09-03 00:07:40 +02:00
smallmodel
cd48272fbb
Implemented server-side footstep simulation 2023-09-02 23:53:46 +02:00
smallmodel
7348734070
Fixed m_bFootOnGround values being set incorrectly 2023-09-01 22:49:53 +02:00
smallmodel
a45a8c7742
Fixed sentient linking/unlinking 2023-08-16 02:31:12 +02:00
smallmodel
c1a431f857
Added all mohaas/mohaab features (SetWeaponIdleState, PingForMines, ForceLandmineMeasure, ForceDropWeapon and ForceDropHealth)
Set m_fDamageMultipliers depending on whether or not g_realismmode is set
Minor fixes in the sentient constructor
2023-08-12 00:49:07 +02:00
smallmodel
8d41b58635
Using hitloc enum instead of macros 2023-08-11 01:34:21 +02:00
smallmodel
9dca77c2cf
Fixed setModel() virtual function 2023-08-09 20:58:36 +02:00
smallmodel
987af7eb81
Cleaned up Sentient class
Moved combat stuff to sentient_combat.cpp
Formatted source files
2023-08-09 19:45:39 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces 2023-07-05 20:52:55 +02:00
OM
e4fa0fff3a Renamed **game** to **fgame** 2023-06-15 23:44:02 +02:00
Renamed from code/game/sentient.cpp (Browse further)