Commit graph

183 commits

Author SHA1 Message Date
MihailRis
f29f3b1bba add advanced entities.raycast overload 2026-07-15 22:21:18 +03:00
MihailRis
1d2c8cf4b6 bring back pre-0.30 player controls 2026-03-22 22:21:40 +03:00
MihailRis
fc57e98a96 feat: third-person camera now checks solid entities 2026-03-14 15:47:26 +03:00
MihailRis
dbc7cd56bd feat: solid entity material support & minor refactor 2026-03-05 20:52:45 +03:00
MihailRis
38354c42f9 applying velocity of ground the worst way possible 2026-03-03 22:18:20 +03:00
ChancellorIkseew
cb2b901985
PlayerContoroller and LevelScreen refactoring (#806) 2026-03-02 01:18:47 +03:00
clasher113
0b7dc14f55 fix extended block grounding (new block property) 2026-02-28 18:31:15 +02:00
MihailRis
8ee2edef5c update gui.create_frame return value 2026-02-06 17:55:57 +03:00
MihailRis
9e817c39ce disable mouse camera control if non-standard camera used 2025-11-04 17:55:01 +03:00
MihailRis
b98954f95e cleanup 2025-09-26 22:03:08 +03:00
GHOST11111100
792ee63f22
Player Attributes (#578)
* feat: add max interaction distance functionality to Player class and Lua bindings

* feat: add getter and setter for max interaction distance in Player class documentation

* feat: add speed and gravity scale properties with corresponding getters and setters in Player class

* fix: replace deprecated __max and __min with std::max and std::min in setMaxInteractionDistance

* feat: add time scale functionality with getters and setters in World and Engine classes

* remove speed and gravity scale functions from player and world libraries

* remove time scale setting on world open and close

* rename interaction distance functions for consistency

* refactor: update interaction distance functions and remove time scale methods

* refactor: revert classes.lua to dev

* refactor: remove time scale functionality from Engine and World classes

* fix: Now I’ve definitely rolled back `classes.lua`.

* refactor: remove unused player attributes and clean up player class

* Update Player.hpp

removed unused methods from Player.cpp
2025-09-26 21:59:15 +03:00
MihailRis
dfb83f6835 add core:mob component & move player movement to scripting 2025-08-10 22:55:34 +03:00
MihailRis
3eae377024 refactor Entities 2025-08-09 21:19:01 +03:00
MihailRis
014ffab183 fix player camera zoom with fov-effects disabled 2025-07-14 23:23:19 +03:00
MihailRis
12c7d4dfb4 feat: voxel fragment rotation applying to 'stairs' profile 2025-04-30 21:56:04 +03:00
MihailRis
9463917164 feat: 'stairs' rotation profile 2025-04-30 20:21:59 +03:00
MihailRis
7262119f5b refactor GLFWWindow 2025-04-02 15:01:24 +03:00
MihailRis
0b8d56afe1 cleanup 2025-04-02 14:59:53 +03:00
MihailRis
9694a59649 refactor: add Window interface 2025-04-02 14:59:53 +03:00
MihailRis
4c48afbb90 refactor: add GUI instance reference to UI nodes 2025-04-02 14:55:53 +03:00
MihailRis
3d22de761f fix compiler warnings (GCC + Clang) 2025-03-20 22:04:29 +03:00
MihailRis
801354c15d fix: camera rotation not updating when menu is open 2025-02-17 22:35:35 +03:00
@clasher113
aeb5312ed2 bug fix 2025-02-04 13:31:40 +02:00
MihailRis
2fa71b3bf0 feat: players interpolation & add hud.set_allow_pause(...) 2025-01-17 01:44:46 +03:00
MihailRis
43dc88c6b5 move player animation to base:player_animator component 2025-01-16 06:58:53 +03:00
MihailRis
65fec4f4a9 introduce local player 2025-01-16 05:59:43 +03:00
MihailRis
17dcbe98ab fix clang-check warnings 2025-01-01 16:06:44 +03:00
MihailRis
c1b311f3c4 refactor: change pointer parameters to references for Level and Content in various classes 2024-12-25 18:53:53 +03:00
MihailRis
3d33de502d move 'player.noclip' and 'player.flight' handlers to Lua 2024-12-23 13:51:12 +03:00
MihailRis
9164edf971 move 'player.pick' binding handler to Lua 2024-12-23 12:37:26 +03:00
MihailRis
4363883728 add 'on_breaking', 'on_block_breaking' events 2024-12-21 14:09:17 +03:00
MihailRis
008e11b4b7 fix ServerMainloop timer 2024-12-19 02:29:41 +03:00
MihailRis
8a4f1e16f3 refactor PlayerController 2024-12-19 00:38:41 +03:00
MihailRis
1cd85b6f77 implement player ticks in headless mode & prevent on_player_tick call if player chunk does not exists 2024-12-18 23:31:26 +03:00
MihailRis
1c18c02092 move Chunks from Level to Player 2024-12-17 19:40:00 +03:00
MihailRis
0d071ab014 fix camera-related bugs 2024-12-11 20:42:59 +03:00
MihailRis
c67f158e62 remove default player from headless mode 2024-12-11 00:31:08 +03:00
MihailRis
5fe5c6b27a fix player tick rate 2024-12-08 15:38:03 +03:00
MihailRis
b7b11d9b2a set player tick rate to 60 2024-11-25 08:38:32 +03:00
MihailRis
bc17abc8b3 add module 'base:util' & fix attack 2024-11-24 15:02:17 +03:00
MihailRis
65e5063326 add player names display 2024-11-23 07:41:44 +03:00
MihailRis
7027bd6f28 add Players 2024-11-23 05:14:12 +03:00
MihailRis
bd2acd5766 refactor players 2024-11-22 16:17:13 +03:00
MihailRis
61b1aa8e3d add gfx.blockwraps library & add on_player_tick world event 2024-11-21 06:48:23 +03:00
MihailRis
14b596140d add player.is_infinite_items, .set_infinite_items 2024-11-20 13:19:49 +03:00
MihailRis
d27179b6c3 update std rules & add player.destroy binding 2024-11-06 21:28:12 +03:00
MihailRis
d15624cd47 fix rotated aabb blocking check & refactor PlayerController 2024-11-05 03:15:11 +03:00
Sergwest585
726ee8ad70 fix colision check on block place 2024-11-05 02:42:48 +03:00
MihailRis
315b4b44e1 refactor PlayerController 2024-11-03 12:17:42 +03:00
ChancellorIkseew
8ad1c7a438 remove not needed const 2024-11-03 14:10:04 +10:00