Commit graph

78 commits

Author SHA1 Message Date
smallmodel
b813f7ee56
Add delegates related for kill/damage 2025-02-02 16:02:11 +01:00
smallmodel
f91d0c1693
Add missing EV_CanSeeNoEnts
The `canseenoents` was accidentally missing from the Entity's response list, some scripts rely on it
2025-01-08 20:52:24 +01:00
smallmodel
f999d87f68
Set the subtitle regardless of g_subtitle if the alias indicate it's forced
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 1m12s
2025-01-06 13:37:19 +01:00
smallmodel
7f8446ab82
If random alias name is NULL, use one from global aliases 2025-01-06 13:32:50 +01:00
smallmodel
4d2b61a766
Server-side subtitles must only work on single-player mode 2025-01-06 13:29:12 +01:00
smallmodel
1f3661238a
Check for valid player 0 before setting subtitle 2025-01-06 13:26:29 +01:00
smallmodel
26c2225a24
Remove rate assertion 2024-12-12 22:45:44 +01:00
smallmodel
95466b810f
Prevent an infinite loop in ProcessPendingEvents() when an entity is being deleted in thinks 2024-12-11 21:55:31 +01:00
smallmodel
e2f4d8cd6b
Use explicit constants when checking g_gametype 2024-11-22 19:44:53 +01:00
smallmodel
7afc2427ac
Finish DrawBoundingBox() entity implementation 2024-11-09 15:51:27 +01:00
smallmodel
4f16179c09
getmins/getmaxs are getters instead of returns 2024-11-02 21:46:55 +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
8f54f4b806
When loading from save, set the edict model directly rather than loading and resetting animations 2024-10-20 23:25:42 +02:00
smallmodel
ef09f136d4
Fix sound indexes not erased correctly 2024-10-18 23:15:59 +02:00
smallmodel
211ce09c0b
Don't create sound index for non visible players if net optimization is disabled 2024-10-10 21:22:35 +02:00
smallmodel
de18fa2860
Refactor Entity::FovCheck 2024-10-08 20:14:10 +02:00
smallmodel
6103efa8cc
Don't set the entity angles immediately during glue
The game expects objects to glue and keep their initial angles/origin
2024-10-01 19:03:17 +02:00
smallmodel
935efaeb3a
Fix sound event being posted with incorrect arguments
The argument wouldn't contain "wait" when necessary, which would cause scripts to be stuck forever waiting for sound to be done
2024-10-01 18:09:56 +02:00
smallmodel
c6675f2013
Remove special features code to avoid any confusion 2024-09-22 20:06:31 +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
e5af60787e
Partially implement GetZone/IsInZone 2024-09-15 00:42:35 +02:00
smallmodel
e927da56cf
Fix GetTagPositionAndOrientation() returning wrong tag axis and position 2024-09-02 19:52:31 +02:00
smallmodel
c7d1f42edb
Use centroid when broadcasting new AI event 2024-08-28 00:40:57 +02:00
smallmodel
6ab654264b
Cleaned up Entity::ProcessSoundEvent() 2024-08-26 01:05:13 +02:00
smallmodel
040f8db0ef
Fixes wrong sound volume and pitch 2024-07-02 19:10:48 +02:00
smallmodel
9d654faa3d
As m_BlockedPaths is an array of pathway_ref, the proper delete call must be used 2024-06-23 00:24:20 +02:00
smallmodel
bbb54ea36d
Uses LoopSounds() parameters instead of just the alias 2024-06-15 16:33:02 +02:00
smallmodel
cc716c3fa4
Don't process loopsound yet when spawning 2024-06-15 16:22:34 +02:00
smallmodel
16464c5a68
Removed zone events from entity
This fixes a conflict where some scripts would store stuff in a variable named `zone` in an entity
2024-05-27 23:28:12 +02:00
smallmodel
12e36b987a
Use G_DebugRotatedBBox when drawing the entity's bounding box 2024-02-26 19:56:35 +01:00
smallmodel
64604b5c44
Disable non-pvs sound in single-player
This fixes #267 where configstrings are full
2024-02-25 18:43:42 +01:00
smallmodel
35e9f9982c
Preallocate arguments for sp/dm commands 2024-02-23 23:19:59 +01:00
smallmodel
efc1354dcb
Fixed entity monitoring always used 2024-02-14 20:58:19 +01:00
smallmodel
1e5e5e24f6
Fixed entity monitoring never printing 2024-02-13 16:23:06 +01:00
smallmodel
2174f2ff85
For "delete" and "remove", use Listener::ScriptRemove 2024-02-04 19:09:08 +01:00
smallmodel
8cf3be3526
If in thinks, don't delete the object immediately 2024-02-04 16:30:22 +01:00
smallmodel
0290fa3351
Set default animation on the attached model if the tag was not found 2024-02-04 16:30:02 +01:00
smallmodel
eb663fdbc1
Fixed a crash due to subtitle when there is no player 2023-12-28 21:08:07 +01:00
smallmodel
d217b1d561
Fixed some events having wrong parameters for documentation 2023-12-28 20:50:47 +01:00
smallmodel
cde13177a4
Don't set the ground entity in Entity::droptofloor 2023-12-28 18:22:10 +01:00
smallmodel
8fc5dacebf
Removed bBindChilds unused variable + added more variables to archive 2023-11-27 20:06:05 +01:00
smallmodel
ba1703ebf0
When loading an entity from archive, set the model only if the entity allows model to be archived 2023-11-26 19:49:51 +01:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
17dcb4b00e
Entity's clipmask must be MASK_SOLID 2023-11-13 00:58:33 +01:00
smallmodel
d4c7d4a7e1
Avoid broadcasting to AI if the entity has notarget set 2023-11-05 20:58:25 +01:00
smallmodel
bfb0fbd656
Fixed vision_distance being used even if it's 0 2023-10-23 18:57:44 +02:00
smallmodel
d3d44001ef
Fixed CanSee implementation 2023-10-21 16:50:26 +02:00
smallmodel
5730af672c
Fixed event return type 2023-10-18 19:53:04 +02:00
smallmodel
475fc92629
Fixed str() being passed as an instance for variadic arguments 2023-10-07 23:50:16 +02:00