175 Commits

Author SHA1 Message Date
Vyacheslav Ivanov
815ba45747
Merge remote-tracking branch 'origin/pvs-fix' into pvs-fix 2024-08-03 23:15:15 +03:00
MihailRis
e014931e1e fix: selection update latency 2024-08-03 22:36:18 +03:00
Vyacheslav Ivanov
bbf33e8e4d
format: reformat project
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-03 19:53:48 +03:00
MihailRis
78e274dec4 fix frustum culling for entities 2024-08-03 17:41:03 +03:00
MihailRis
ba046a52c0
Revert "fix: optimization: Various PVS-Studio warnings" 2024-08-02 14:51:44 +03:00
Vyacheslav Ivanov
2c1103307f
fix: optimization: PVS-Studio warning V813
Passing large objects by const reference avoids unnecessary copying and enhances efficiency.

Reported by: PVS-Studio
Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
2024-08-02 05:35:55 +03:00
MihailRis
50a388c539 fix: access to deleted Sensor 2024-08-01 17:10:30 +03:00
MihailRis
f8907f7db1 add on_update, on_render to docs & change entities tps to 20 2024-08-01 16:04:27 +03:00
MihailRis
2b7b68f3c2 add 'static' entity body-type 2024-07-29 15:45:28 +03:00
MihailRis
34ab3eb41c add player.get_camera(playerid) 2024-07-22 14:16:28 +03:00
MihailRis
0333ce6990 add bone "offset" parameter & update player model 2024-07-21 18:27:11 +03:00
MihailRis
3590bd14cd update DrawContext 2024-07-21 16:06:40 +03:00
MihailRis
cf12338a32 add skeleton debug view 2024-07-21 14:52:16 +03:00
MihailRis
c63e19e87b fix wrong entity display position on slow movement 2024-07-20 21:56:19 +03:00
MihailRis
52c39d25d0 add skeleton:get_color(), skeleton:set_color(...) 2024-07-20 21:15:04 +03:00
MihailRis
0c4cdeaa87 add entities renderer tint support 2024-07-20 19:35:43 +03:00
MihailRis
fba0bca0dc optimize ModelBatch 2024-07-20 17:59:15 +03:00
MihailRis
e008832ebb update Entities::preparePhysics - ticks are delta-based now 2024-07-19 21:23:58 +03:00
MihailRis
d1696eea12 feat: saving current camera 2024-07-18 10:22:45 +03:00
MihailRis
1eac343619 add entities.get_all(...), .get_all_in_box(...), .get_all_in_radius(...) 2024-07-17 14:51:55 +03:00
MihailRis
739ef49d8f feat: automatically loading models used in skeleton 2024-07-17 12:12:40 +03:00
MihailRis
4653c4c8a8 fix model overrides 2024-07-17 10:47:03 +03:00
MihailRis
1b99a48849 update entities.spawn(...) semantics to the docs state 2024-07-17 10:17:20 +03:00
MihailRis
41a22938d6 add 'entity.despawn' command 2024-07-17 07:35:02 +03:00
MihailRis
50050dbe40 add entity events: on_attacked, on_used 2024-07-16 14:04:05 +03:00
MihailRis
54902d7f49 refactor entities events 2024-07-16 13:27:39 +03:00
MihailRis
d5877a342f feature: bone model overriding 2024-07-16 10:00:40 +03:00
MihailRis
af1b32d91d remove camera latency 2024-07-15 14:06:49 +03:00
MihailRis
8bb736bef0 add skeleton:is_visible(...), skeleton:set_visible(...) 2024-07-15 12:05:11 +03:00
MihailRis
055781eeaf add skeleton:index(...) and player test model 2024-07-15 08:56:27 +03:00
MihailRis
5e56c76590 fix: SAVING_SATA 2024-07-15 05:47:44 +03:00
MihailRis
bc0d1b2f42 format Entities.cpp 2024-07-15 02:20:31 +03:00
MihailRis
0e7f440a68 add UID usage check in Entites::spawn 2024-07-15 02:04:53 +03:00
MihailRis
904a33418f fix: entities marked to delete are still not deleted on loadEntities call 2024-07-15 01:56:45 +03:00
MihailRis
e73ccaded1 add player.get_selected_entity(...) & update docs 2024-07-14 12:00:58 +03:00
MihailRis
c17f3fec54 add entities raycast 2024-07-14 10:50:06 +03:00
MihailRis
8617784084 fix blocks placing when crouching 2024-07-13 04:48:03 +03:00
MihailRis
9a18476437 refactor: player cameras are resources now 2024-07-12 00:02:01 +03:00
MihailRis
8edf9440a3 reduce redundancy 2024-07-10 06:51:14 +03:00
MihailRis
5874abff98 fix Entities.hasBlockingInside 2024-07-10 06:40:10 +03:00
MihailRis
e0358fe2db add 'blocking' entity property 2024-07-10 04:56:02 +03:00
MihailRis
60f4f33180 rename rig to skeleton 2024-07-10 04:28:12 +03:00
MihailRis
91230ecbeb update 'hitbox' property semantics 2024-07-10 02:34:53 +03:00
MihailRis
d8c9fa1fe2 loading rig pose, textures, body settings 2024-07-09 21:19:29 +03:00
MihailRis
c94c2697e7 rename Trigger to Sensor 2024-07-09 07:37:20 +03:00
MihailRis
0a14d6220a add BodyType, fix crouching 2024-07-09 06:39:05 +03:00
MihailRis
f4653878a2 add player.get/set_entity 2024-07-09 04:27:18 +03:00
MihailRis
b4cf00a8f1 add rigidbody.set/get_gravity_scale 2024-07-09 02:24:00 +03:00
MihailRis
f52a435aea add Hitbox.gravityMultiplier 2024-07-09 02:14:14 +03:00
MihailRis
f3201b7742 fix: player flight linearDamping, add verticalDamping (bool) 2024-07-08 23:53:25 +03:00