67 Commits

Author SHA1 Message Date
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
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
d1696eea12 feat: saving current camera 2024-07-18 10:22:45 +03:00
MihailRis
41a22938d6 add 'entity.despawn' command 2024-07-17 07:35:02 +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
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
9a18476437 refactor: player cameras are resources now 2024-07-12 00:02:01 +03:00
MihailRis
d8c9fa1fe2 loading rig pose, textures, body settings 2024-07-09 21:19:29 +03:00
MihailRis
0a14d6220a add BodyType, fix crouching 2024-07-09 06:39:05 +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
MihailRis
3cafc39555 Merge branch 'main' into entities 2024-07-08 23:29:48 +03:00
MihailRis
19c6a82ab2 refactor Entities load + loading velocity 2024-07-08 22:47:01 +03:00
Cogi Asd
59c50e727b reverse: libplayer 2024-07-08 20:36:56 +03:00
MihailRis
3cd0261f3b refactor and cleanup player controller 2024-07-08 19:43:13 +03:00
MihailRis
487ba84517 implement player entity 2024-07-08 18:45:35 +03:00
MihailRis
7dfda981a8 remove Player.hitbox (WIP) 2024-07-08 03:51:46 +03:00
Cogi Asd
7a1c035f01 add: lua func 2024-07-07 23:53:27 +03:00
MihailRis
77c9c5cdb7 add player entity (draft) 2024-07-07 22:19:15 +03:00
MihailRis
c8666910ce feat: loading entities (WIP) 2024-07-05 22:51:03 +03:00
MihailRis
5769be8ec8 add triggers 2024-06-30 16:25:08 +03:00
MihailRis
eb2be5e8b6 add entity events: on_spawn, on_despawn 2024-06-28 12:16:31 +03:00
Pugemon
f25a425cb9 Optimize parameter passing to avoid unnecessary copying 2024-06-07 04:00:38 +03:00
MihailRis
0eba793d63 added player camera rotation z axis 2024-05-24 01:58:34 +03:00
MihailRis
1917cbba8b new player.* functions 2024-05-24 01:38:39 +03:00
MihailRis
997cff04d1 physics-related fixes 2024-05-19 09:17:43 +03:00
MihailRis
a4c21984d5 dynamic::Value simplified 2024-05-07 18:39:12 +03:00
MihailRis
d33edd4cd9 'dynamic' namespace refactor (step 1/2) 2024-05-07 16:00:52 +03:00
MihailRis
1627e21c1d the final rename 2024-05-06 03:38:19 +03:00
MihailRis
f27a418dbe however 2024-05-06 03:15:27 +03:00
MihailRis
7f8a86b740 minor refactor 2024-05-05 20:08:25 +03:00
MihailRis
daaba374a3 contentpack removal feature + refactor 2024-03-11 13:21:06 +03:00
MihailRis
7ca410b24d minor reformat 2024-03-07 11:25:10 +03:00
MihailRis
547c80b3f0 Player.cpp indents fix 2024-03-07 11:11:40 +03:00
InfiniteCoder
0157213a56 One step closer to multiplayer 2024-03-02 22:59:31 +03:00
DanielProl1xy
0e38698dae Merge remote-tracking branch 'upstream/main' 2024-02-19 10:23:29 +03:00
MihailRis
e16f7567b1 lua: inventory library 2024-02-12 13:56:46 +03:00
MihailRis
49fdcdfb27 inventory regions, minor refactor 2024-01-31 00:14:43 +03:00
DanielProl1xy
4a4b80bef3 Spawn different objects withing level 2024-01-30 23:44:07 +03:00
DanielProl1xy
8466c42896 added serializable class 2024-01-30 15:53:49 +03:00
MihailRis
04ab2839a1 spawn point fix 2024-01-29 18:07:46 +03:00
MihailRis
c57b2d0de3 Content menu, content-pack dependencies 2024-01-27 00:36:18 +03:00
MihailRis
51ffb93230 inventory reindexing 2024-01-26 15:35:23 +03:00
MihailRis
4fe79458ab fixed player spawn point 2024-01-23 01:44:16 +03:00