Commit graph

40 commits

Author SHA1 Message Date
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
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
e784e62a4e
Fixed damage event method
- Don't damage if health is already 0 or below
- Check for immunity
- Error if attacker or inflictor is NULL
- Don't apply velocity for vehicles
- Set the minimum mass to 20 and momentum to 1000
- Still process pain when in godmode
2023-10-04 00:33:27 +02:00
smallmodel
71fe83083e
Fixed crash when trying to play non pvs sound with a null alias 2023-10-02 12:13:22 +02:00
smallmodel
b94f021567
Refactored setModel() 2023-10-01 21:00:32 +02:00
smallmodel
f0e87cd85a
Prefixed TIKI import functions 2023-09-27 23:21:34 +02:00
smallmodel
5d917f2578
Made IsDead() const 2023-09-23 19:38:04 +02:00
smallmodel
5dec21dd43
Include <utility> for std::move 2023-09-07 20:01:07 +02:00
smallmodel
c5a46be23e
Optimized calls to Event() (avoid allocating a new Event when it can be reused) 2023-09-07 18:22:07 +02:00
smallmodel
47a3c0bf55
Optimized event name
Use a static char*, instead of an allocated str
2023-09-07 18:05:49 +02:00
smallmodel
a5a146bb02
Added and using Entity::PlayNonPvsSound 2023-09-02 23:51:37 +02:00
smallmodel
fbd314b447
Fixed pitch being used instead of volume 2023-08-29 22:04:18 +02:00
smallmodel
43b0944403
Added centroid in entityShared_t and removed currentOrigin 2023-08-29 00:03:07 +02:00
smallmodel
7fd2aff17b
Fixed entity trace with no valid trace 2023-08-19 00:58:06 +02:00
smallmodel
3c8c4e9f97
Call SetSize() directly from setModel() 2023-08-17 16:09:29 +02:00
smallmodel
c4738966fe
Using g_utils.cpp from fakk 2023-08-15 01:27:35 +02:00
smallmodel
e1da6797c5
Using S_FLAG_DO_CALLBACK 2023-08-13 20:19:51 +02:00
smallmodel
0da1ed8764
Fixed canseenoents having the wrong name 2023-08-12 19:59:17 +02:00
smallmodel
8d41b58635
Using hitloc enum instead of macros 2023-08-11 01:34:21 +02:00
smallmodel
d53ab8540e
Fixed Unix compilation warnings/errors 2023-08-10 23:06:03 +02:00
smallmodel
ba931cbedf
Added all mohaas/mohaab cvars 2023-08-10 12:04:45 +02:00
smallmodel
e687d97660
Fixed compile errors 2023-08-09 23:48:37 +02:00
smallmodel
ef18c389be
Cleanup entity class
Added new parameter for CanSee
Added Entity::SafeSolid and Entity::Sink
2023-08-09 23:09:09 +02:00
smallmodel
6eaf25ff80
Using const for CurrentAnim() and CurrentTime() 2023-08-04 00:03:55 +02:00
smallmodel
17c371c15e
Added Entity::BlocksAIMovement 2023-08-03 21:44:16 +02:00
smallmodel
10fda39430
Added animation functions 2023-08-01 19:59:05 +02:00
smallmodel
727eb71995
Added all mohaas/mohaab entity events 2023-07-30 21:21:00 +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/entity.cpp (Browse further)