summaryrefslogtreecommitdiffstats
path: root/src/Entities/ArrowEntity.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-12-19Slow down arrows in water (#5350)Persson-dev1-0/+4
* Slow down arrow in water * Added myself to contributors
2021-04-12Update entity sizesTiger Wang1-1/+1
2020-08-09Fix arrows preventing block placemention2321-0/+9
2020-05-04Improve entity position updates (#4701)Tiger Wang1-15/+0
* Make puking pickups fly nicer * Improve entity position updates * Move determination of whether a delta is too big for a packet into the protocol handlers + Less jittery movement + Generalise CollectEntity to take any entity
2020-05-03Buttons can now be triggered by arrows. (#4670)DrButcher1-0/+5
* Buttons can now be triggered by arrows.
2020-05-01Unify entity spawn packet sendingTiger Wang1-11/+0
2020-04-20Delet SpawnObject paramsTiger Wang1-11/+1
* Fix #4679 awkward...
2020-04-19More arrow patchesTiger Wang1-36/+35
* Further reduce instances of appearing black * Fix packet send and get arrows to more reliably lodge in blocks clientside * Fix hit detection failing at chunk boundaries + Use delegating constructors
2020-04-18Reduce arrows going black on hitTiger Wang1-15/+25
2020-04-16Using Super.Mattes D1-5/+5
2020-04-03Tweak pickup sound pitch (#4598)Mat1-1/+1
2020-03-22Don't remove items twice (#4524)Mat1-1/+1
* Don't remove items twice
2020-03-19Improvements to knockback (#4504)Mat1-2/+6
* Improvements to knockback * SetSpeed for explosions * Improve code consistency
2020-03-19Prevent arrows from sinking into the ground (#4509)Mat1-1/+1
2020-03-19Change outdated air drag value for arrowsMat1-1/+1
2020-03-04Play correct sound when entities are hit by arrows (#4481)Mat1-1/+1
2019-10-28Moved growing from cWorld / cChunk to cBlockHandler descendants.Mattes D1-5/+4
2019-09-29Refactored more of Entities and BlockEntities to use Vector3. (#4403)Mattes D1-2/+2
2018-09-24Add a formatting function for Vector3 (#4282)peterbell101-3/+2
* Vector3: Add custom fmt compatible formatter. * cLuaState: Add fmt version of ApiParamError * Use vector formatting in manual bindings * Always log vectors with FLOG
2018-02-05Deal with covered switches consistently (#4161)peterbell101-4/+1
* Fixes a number of "<function>: not all control paths return a value" warnings on MSVC. * Introduces the UNREACHABLE global macro and uses it instead of conditionally compiled switch defaults. * Move cNBTParseErrorCategory from FastNBT.h into FastNBT.cpp to prevent bad calls to message()
2018-01-14Rename cEntity swim states (#3996)Alexander Harkness1-5/+1
* Replace cEntity:m_IsSubmerged with m_IsHeadInWater * Replace cEntity:m_IsSwimming with m_IsInWater * Add API documentation for new symbols * Apply SetSwimState to all entities, not just mobs and players * Pickups now use IsOnFire to check if they are on fire before destruction Fixes #3987
2017-09-19Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly1-3/+3
* Made BroadcastSoundEffect take vector parameters. * Added docs for new vectored methods * Removed old code * Fixed lua warnings * Made old BroadcastSoundEffect not an override. * m_Block to m_BlockPos, used Vector3d constructor where prettier. * a_Block to a_BlockPos * Changed thunderbolt a_Block to a_BlockPos
2017-09-07Changed some int parameters to vector parameters (#3937)Bond-0091-3/+3
2017-08-13Added knockback to arrows, fixed knockback enchantment handling (#3900)Lane Kolbly1-16/+2
* Added knockback for arrows, fixed knockback enchantment handling.
2017-02-15Updated sounds and effect IDs (#3422)mathiascode1-3/+3
2016-12-16Initial support for the 1.11 protocol.Mattes D1-1/+1
2016-09-03Entities now bail out of ticks if destroyed (#3363)LogicParrot1-0/+5
2016-08-04Fixed RasPi builds of unit tests.Mattes D1-1/+3
On RasPi with gcc 4.8.2, the asserts wouldn't compile when tests were enabled. Enforced the assumption that ASSERT code is generated only in Debug builds.
2016-01-22Improved tamed wolf pack cooperation and projectile reactionsLogicParrot1-1/+1
2016-01-12Tamed wolf assists owner (attack / defence)LogicParrot1-6/+8
2015-07-29Silenced and fixed many warning messages across multiple files.Samuel Barney1-5/+5
2015-05-28AI - Sane SkeletonSafwatHalaby1-10/+11
2015-05-19Make -Werror disabling file onlytycho1-2/+2
Ad fix a load of warnings
2015-03-31Changed air drag units to 'interpolated ticks' per secondDevToaster1-1/+1
2015-03-31Modified physics for more vanilla-like behaviorDevToaster1-0/+4
2015-03-21Fixed trailing whitespace.Mattes D1-1/+1
2015-03-20Improved arrow in-flight and block-hit appearanceTiger Wang1-13/+2
* Fixes #1495
2015-01-16Converted ArrowEntityTiers to std::chronoTycho1-5/+5
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-3/+3
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-1/+1
2014-10-15Functions in cPluginManager get references instead of pointers.Mattes D1-5/+9
2014-09-26Removed more unessicary includesTycho1-1/+0
2014-09-01Fixed MSVC warning.madmaxoft1-2/+2
2014-08-21Protection Enchantments, some fixesJaume Aloy1-5/+5
- Protection echantments (fire, blast, feather falling, protection and projectile). It isn't finished, add secondary effects and optimize the code. - Removed some brackets. - Silk touch fixed.
2014-08-19FixesJaume Aloy1-7/+8
- Changed m_TicksLeftBurning > 0 for IsOnFire() - Tried to do the changes in BlockHandler.cpp - Removed m_Creator in ArrowEntity - Added m_Enchantments in ProjectileEntity CreatorData - Added blank lines between functions
2014-08-19Added more enchantments and some fixesJaume Aloy1-4/+18
- Removed Debug messages - Added Punch enchantment effect - Added Silk Touch enchantment - Added Unbreaking enchantment effect
2014-08-19Added some EnchantmentsJaume Aloy1-3/+23
- Bow enchantments: Infinity, Flame and Power - Sword and tools enchantments: Fire Aspect, Bane of Arthropods, Smite, Sharpness
2014-07-17Basic style fixes.madmaxoft1-2/+2
2014-07-17Normalized comments.madmaxoft1-6/+6
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-07-14Maybe improved arrow sinkingTiger Wang1-2/+2
2014-07-13Changed BroadcastSoundEffect function to take floating pos.Howaner1-3/+3
2014-07-09Fixed arrow collection animationTiger Wang1-21/+3
* Fixed piston extension non-solidness
2014-07-04Eps comparisonTiger Wang1-1/+1
2014-07-02SuggestionsTiger Wang1-8/+8
2014-07-01Vector clamping fixesTiger Wang1-4/+8
Thank you, @madmaxoft.
2014-06-30Implemented Vector3<>::Floor()Tiger Wang1-2/+3
2014-06-29SuggestionsTiger Wang1-1/+3
2014-06-26Add comment.Howaner1-0/+1
2014-06-26GameMode checkHowaner1-1/+1
2014-06-22Fixed multiple issues with projectilesTiger Wang1-24/+9
* Fixed arrows not being collectable/not truly hitting a block/not lodging into blocks/not going in far enough * Fixed projectiles not playing their block hit animation owning to being destroyed too quickly
2014-06-17derpHowaner1-3/+3
2014-06-17The same: Float, not DoubleHowaner1-1/+1
2014-06-17Float, not DoubleHowaner1-1/+1
2014-06-16Split Broadcast Sound Effect function call in multiple lines.Howaner1-2/+16
2014-06-16Fix bow sound and creative arrow pickup.Howaner1-10/+22
2014-05-30Wrong arrow commit.Howaner1-4/+0
2014-05-28Add throw sound and fix arrow server crash.Howaner1-1/+4
2014-05-28Fix Y-Position from arrow entity.Howaner1-0/+1
2014-05-09Initialise m_HasTeleported in both constructorsworktycho1-0/+1
2014-04-28Fixed projectile source filenames, indentationsarchshift1-18/+18
2014-04-27Fixed ToLua errors, added newlinesarchshift1-1/+1
2014-04-27Moved cArrowEntity out of ProjectileEntity.harchshift1-0/+193