Tiger Wang
72d7027861
Merge pull request #3489 from cuberite/EntityOwnership
...
* Changed entity ownership model to use smart pointers
2017-08-18 11:17:56 +01:00
Lane Kolbly
1ec85a2b2c
Add cLuaWindow OnClicked Callback ( #3901 )
2017-08-17 16:27:43 +02:00
Lane Kolbly
4dd2af27e0
Added knockback to arrows, fixed knockback enchantment handling ( #3900 )
...
* Added knockback for arrows, fixed knockback enchantment handling.
2017-08-13 12:40:23 +01:00
Lukas Pioch
743a50014a
Replaced includes with forward declarations
2017-08-13 12:31:10 +01:00
Tiger Wang
4ef47aed62
Changed entity ownership model to use smart pointers
2017-08-07 19:24:16 +01:00
peterbell10
79eb4c3aed
Implement invisibility effect
2017-08-03 15:34:38 +02:00
peterbell10
759618b035
Remove double includes part 2 ( #3890 )
2017-08-03 15:34:19 +02:00
Lukas Pioch
0397535fa7
Removed unused forward declarations ( #3888 )
2017-08-03 15:10:29 +02:00
Lukas Pioch
4691bc5a29
Removed double includes ( #3885 )
2017-08-02 19:57:20 +01:00
peterbell10
0d0323608d
cBlockHandler: take player by ref
2017-08-01 08:21:20 +02:00
peterbell10
8eb5672920
cWorld::SendBlockTo take player by ref
2017-08-01 08:21:20 +02:00
Lane Kolbly
5402b214b3
Check for intersection between placed blocks and entities. ( #3850 )
...
* Check for intersection between placed blocks and entities.
+ Implemented GetPlacementCollisionBox, to permit custom placement collision boxes for blocks.
* Factored block-entity placement checking into another function in cPlayer.
- Removed vector min/max functions
* Use GetWorld to get the world in DoesPlacingBlocksIntersectEntity.
+ Added block height checks, allow different cEntity subclasses to decide whether they will prevent block placement.
2017-07-28 17:59:21 +01:00
Tiger Wang
eb4432bb62
Tentative fix for player-limit race condition ( #3862 )
...
* Attempts to fix #2257
Derived from d233e9843148313c71fbaba96ccff660e47b07b1
* Changed player count type to int
* Clarified certain actions
2017-07-28 17:54:40 +01:00
Lane Kolbly
87af95b67c
Updated armor cover calculation. ( #3858 )
...
* Updated armor damage calculation.
+ Added lua docs, added casts from float to int.
* Changed verbage in docstring and comment.
2017-07-23 10:46:38 +01:00
Lane Kolbly
793acd267f
Changing pickup lifetime and combining semantics, making these adjustable in the lua api. ( #3843 )
2017-07-12 12:13:27 +02:00
Lane Kolbly
647d9082b8
If entity is a player, send relmove packets.
2017-07-12 12:12:56 +02:00
Lane Kolbly
a561886bf3
Implemented draggingitem API.
2017-07-10 05:46:04 +02:00
Lane Kolbly
7c7f85117b
Added armor durability reduction when player is attacked.
2017-07-02 07:45:49 +02:00
Bond-009
cf22bc4e60
Players in creative and spectator aren't affected by cacti ( #3824 )
2017-07-02 07:39:19 +02:00
Mattes D
885d80ccdb
Entity: Replaced a mutexed counter with a std::atomic. ( #3773 )
2017-06-15 16:06:50 +01:00
peterbell10
360d8eade0
FastRandom rewrite ( #3754 )
2017-06-13 21:35:30 +02:00
Lukas Pioch
7922e6addb
Fixes problems with windows:
...
- Changed cPlayer:OpenWindow to accept a ref, tolua adds a nil check
- Close open lua window in destructor, to avoid dangling pointers
2017-06-05 15:14:23 +02:00
Pablo Beltrán
2b699dc749
Avoid pickups to sink into blocks and disappear ( #3739 )
...
* Avoid pickups to sink into blocks and disappear
2017-06-04 06:35:02 +02:00
Pablo Beltrán
8f1e55611e
Fixed exp orb ( #3744 )
...
Fixes #3740
Fixes #2667
2017-06-03 21:10:48 +02:00
Mattes D
0551d78dff
Fixed tracer usage in Entity physics handling. ( #3720 )
2017-05-28 20:56:17 +02:00
Heiko Hund
a0341d561a
Add rank prefix and suffix to player name in chat ( #3730 )
...
Fixes issue #1721
2017-05-27 02:15:56 +01:00
Lukas Pioch
73a3c4e3be
Exported boat
...
- NBT: Added saving / loading of material
- Added the material in the item handler of the boat
- Drop the correct boat if destroyed
- APIDoc: Added desc and functions
2017-05-24 19:02:18 +02:00
Lukas Pioch
e35ac1bfb9
Clang 5.0 fixes
...
- Added override keyword
- Removed inherited member variables
2017-05-21 12:19:06 +02:00
Mattes D
2c3c1f1527
Tracer replacement ( #3704 )
...
* Replaced cTracer usage with cLineBlockTracer.
* Exported new cLineBlockTracer utility functions to Lua API.
2017-05-11 13:34:36 +01:00
Lukas Pioch
7c4576a025
Exported cFallingBlock and cExpOrb ( #3700 )
2017-05-09 14:24:41 +02:00
Lukas Pioch
fb20517435
APIDoc: Documented missing functions and variables. ( #3634 )
2017-04-04 07:53:14 +02:00
Marvin Kopf
dbdcb85346
Added a nullptr check to cEntity::IsA ( #3659 )
...
Fixes #3603
2017-04-01 23:15:08 +02:00
Lukas Pioch
74ee255cae
Detach player from entity / object if he is dead
2017-03-19 09:48:15 +01:00
Bond-009
6fe863c2ad
Fixed cactus detection and zombie pigman sword ( #3584 )
...
Fixes for issues #902 and #2917
2017-02-25 19:14:08 +01:00
Alex
9cb1ad546f
Changed fish launching mechanism ( #3520 )
...
Fish and other fishing loot now correctly fly towards played when reeled in.
2017-02-20 10:03:19 +01:00
mathiascode
dae2adde65
Updated sounds and effect IDs ( #3422 )
2017-02-15 06:05:24 +01:00
Pokechu22
9c2a0bb7b9
Track skin part and main hand preferences ( #3498 )
2017-01-03 21:19:29 +01:00
Fabian Stein
c8b1d8a37d
Fix crash after calling OnTick on removed effect ( #3501 )
2016-12-30 00:06:30 +01:00
Fabian Stein
4170ab62c0
Fixed entity effect ticking ( #3497 )
...
Fixes #3386
2016-12-29 15:21:41 +01:00
mathiascode
efc7fed05b
Updated links and docs ( #3488 )
2016-12-19 17:08:19 +01:00
Mattes D
0e3b3be766
Initial support for the 1.11 protocol.
2016-12-16 00:07:22 +01:00
Mattes D
caa05e7935
Fixed minecart destruction using deallocated memory.
2016-12-15 14:57:48 +01:00
Lukas Pioch
0c10704d1f
Export GetPosition and GetSpeed from cEntity as a copy instead of a pointer to lua.
2016-12-10 13:32:11 +01:00
Marvin Kopf
ff4be64edc
Powered rails can kick-start minecarts ( #3472 )
2016-12-10 09:53:35 +01:00
Mattes D
0bffa29358
Removed ClientHandle.h dependencies from common headers.
2016-11-18 20:00:04 +01:00
mohe2015
32b38fb264
Anticheat fastbreak ( #3411 )
...
Added block hardness checks when breaking blocks.
2016-11-06 19:30:19 +01:00
Lukas Pioch
b088123d18
Added SendMessageRaw for sending json string.
2016-10-21 11:17:39 +02:00
bibo38
cb640ffea4
Spectators added ( #2852 )
2016-10-12 14:38:45 +02:00
LogicParrot
4e33569110
Fixed cProjectileEntity double destroy bug ( #3397 )
2016-10-09 17:22:34 +02:00
sgtbigman
7bcc3535fd
Initialize m_bIsInBed in cPlayer constructor.
...
This fixes an issue where the return value from the IsInBed method of
the cPlayer class in the lua API would not return a boolean value.
2016-10-08 00:58:43 -04:00