summaryrefslogtreecommitdiffstats
path: root/src/Entities/ArrowEntity.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a formatting function for Vector3 (#4282)peterbell102018-09-241-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
* Deal with covered switches consistently (#4161)peterbell102018-02-051-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()
* Rename cEntity swim states (#3996)Alexander Harkness2018-01-141-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
* Changed BroadcastSoundEffect, SendSoundEffect, and CastThunderbolt parameters to vectors (#3959)Lane Kolbly2017-09-191-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
* Changed some int parameters to vector parameters (#3937)Bond-0092017-09-071-3/+3
|
* Added knockback to arrows, fixed knockback enchantment handling (#3900)Lane Kolbly2017-08-131-16/+2
| | | | * Added knockback for arrows, fixed knockback enchantment handling.
* Updated sounds and effect IDs (#3422)mathiascode2017-02-151-3/+3
|
* Initial support for the 1.11 protocol.Mattes D2016-12-161-1/+1
|
* Entities now bail out of ticks if destroyed (#3363)LogicParrot2016-09-031-0/+5
|
* Fixed RasPi builds of unit tests.Mattes D2016-08-041-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.
* Improved tamed wolf pack cooperation and projectile reactionsLogicParrot2016-01-221-1/+1
|
* Tamed wolf assists owner (attack / defence)LogicParrot2016-01-121-6/+8
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-5/+5
|
* Merge branch 'master' into PreventNewWarningstycho2015-05-291-4/+5
|\ | | | | | | | | Conflicts: src/Entities/ArrowEntity.cpp
| * AI - Sane SkeletonSafwatHalaby2015-05-281-10/+11
| |
* | Make -Werror disabling file onlytycho2015-05-191-2/+2
|/ | | | Ad fix a load of warnings
* Changed air drag units to 'interpolated ticks' per secondDevToaster2015-03-311-1/+1
|
* Modified physics for more vanilla-like behaviorDevToaster2015-03-311-0/+4
|
* Fixed trailing whitespace.Mattes D2015-03-211-1/+1
|
* Improved arrow in-flight and block-hit appearanceTiger Wang2015-03-201-13/+2
| | | | * Fixes #1495
* Converted ArrowEntityTiers to std::chronoTycho2015-01-161-5/+5
|
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-3/+3
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-1/+1
|
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-5/+9
|
* Removed more unessicary includesTycho2014-09-261-1/+0
|
* Fixed MSVC warning.madmaxoft2014-09-011-2/+2
|
* Protection Enchantments, some fixesJaume Aloy2014-08-211-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.
* FixesJaume Aloy2014-08-191-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
* Added more enchantments and some fixesJaume Aloy2014-08-191-4/+18
| | | | | | | - Removed Debug messages - Added Punch enchantment effect - Added Silk Touch enchantment - Added Unbreaking enchantment effect
* Added some EnchantmentsJaume Aloy2014-08-191-3/+23
| | | | | | - Bow enchantments: Infinity, Flame and Power - Sword and tools enchantments: Fire Aspect, Bane of Arthropods, Smite, Sharpness
* Basic style fixes.madmaxoft2014-07-171-2/+2
|
* Normalized comments.madmaxoft2014-07-171-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.
* Maybe improved arrow sinkingTiger Wang2014-07-141-2/+2
|
* Changed BroadcastSoundEffect function to take floating pos.Howaner2014-07-131-3/+3
|
* Fixed arrow collection animationTiger Wang2014-07-091-21/+3
| | | | * Fixed piston extension non-solidness
* Merge pull request #1135 from mc-server/fixesTiger Wang2014-07-091-24/+16
|\ | | | | Fixes to projectiles and the undead
| * Eps comparisonTiger Wang2014-07-041-1/+1
| |
| * SuggestionsTiger Wang2014-07-021-8/+8
| |
| * Vector clamping fixesTiger Wang2014-07-011-4/+8
| | | | | | | | Thank you, @madmaxoft.
| * Implemented Vector3<>::Floor()Tiger Wang2014-06-301-2/+3
| |
| * SuggestionsTiger Wang2014-06-291-1/+3
| |
| * Fixed multiple issues with projectilesTiger Wang2014-06-221-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
* | Merged branch 'howaner/Bow'.Mattes D2014-06-261-11/+40
|\ \ | |/ |/| | | Removed the pickup collection broadcast due to bad code.
| * Add comment.Howaner2014-06-261-0/+1
| |
| * GameMode checkHowaner2014-06-261-1/+1
| |
| * derpHowaner2014-06-171-3/+3
| |
| * The same: Float, not DoubleHowaner2014-06-171-1/+1
| |
| * Float, not DoubleHowaner2014-06-171-1/+1
| |
| * Split Broadcast Sound Effect function call in multiple lines.Howaner2014-06-161-2/+16
| |
| * Fix bow sound and creative arrow pickup.Howaner2014-06-161-10/+22
|/
* Initialise m_HasTeleported in both constructorsworktycho2014-05-091-0/+1
|
* Fixed projectile source filenames, indentationsarchshift2014-04-281-0/+193