summaryrefslogtreecommitdiffstats
path: root/src/Mobs/AggressiveMonster.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-09-26adding endermite (#5460)Debucquoy Anthony tonitch1-3/+58
* First Draft of adding endermite * Update src/Mobs/Endermite.h Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> * Adding Protocols + SpawnEgg TODO: don't forget to put the endermite in core plugin for the summon command * Adding endermite to monster.ini * Adding 5% change of spawning endermite when throwing enderpearl * Spawn endermite at last position instead of Hit Position + .cache to .gitignore * fixup! Spawn endermite at last position instead of Hit Position + .cache to .gitignore * destroy endermite if 2 min, not if name is set * Syntax * Adding Enderman targeting endermite + fixing syntax * Fixing compile error + return error [but crash on enderman spawn] * Fix crash but enderman doesn't target * Enderman targeting endermite finished * checking style because i'm a noob at git... * fixup! checking style because i'm a noob at git... * Added endermite egg meta to docs * Final touches Removed unnecesary imports fixed callback to run only in sight distance and actually check sigtlines * Fixed error after not pulling branch --------- Co-authored-by: x12xx12x <44411062+12xx12@users.noreply.github.com> Co-authored-by: Debucquoy <debucqquoy.anthony@gmail.com>
2021-10-02Only nether-native mobs can see through lavaRorkh1-1/+1
2021-04-12Update entity sizesTiger Wang1-1/+1
2020-12-21Monsters: improve targetingTiger Wang1-16/+9
* Replace DoWithNearestPlayer with bounding box search (avoid iterating through all players in world). * Do line-of-sight checks from eye-to-eye. + Added LOS and LOS lost timer to target lost checks, in addition to distance.
2020-04-16Using Super.Mattes D1-4/+4
2020-03-22Add ambient mob sounds (#4521)Mat1-2/+2
2020-03-19Improvements to knockback (#4504)Mat1-1/+3
* Improvements to knockback * SetSpeed for explosions * Improve code consistency
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-1/+0
Add check for number of empty lines between functions and fix the corresponding failures
2017-05-11Tracer replacement (#3704)Mattes D1-7/+10
* Replaced cTracer usage with cLineBlockTracer. * Exported new cLineBlockTracer utility functions to Lua API.
2016-10-12Spectators added (#2852)bibo381-4/+7
2016-09-03Entities now bail out of ticks if destroyed (#3363)LogicParrot1-0/+5
2016-02-03cMonster::m_Target safety across worldsLogicParrot1-6/+6
2016-01-21Spiders now friendly at daylight, new cChunk functionsLogicParrot1-3/+3
2016-01-12Fix mob attack intervalLogicParrot1-4/+2
2015-12-24PF - "Special blocks" handlingSafwat Halaby1-2/+2
2015-12-13Fixed mobs attacking Creative Mode playersSafwat Halaby1-9/+1
2015-11-08fix cavespider poisoning even if attack is in cooldownGargaj1-2/+4
make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style fix cavespider poisoning even if attack is in cooldown make attack function more responsive fix cavespider poisoning even if attack is in cooldown make attack function more responsive Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack code style Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'master' into cavespider-attack Merge branch 'cavespider-attack' of github.com:Gargaj/cuberite into cavespider-attack
2015-11-07don't attack if deadGargaj1-1/+1
2015-08-22Removed unused functionTiger Wang1-18/+0
* Fixes #2444
2015-05-28AI - Sane SkeletonSafwatHalaby1-1/+2
2015-05-24Made -Weverything an error.tycho1-4/+4
2015-05-23Fixed creeper not exploding when 1 block higher than playerSafwatHalaby1-2/+4
2015-05-17Pathfinder - approximated paths when original destination unreachableSafwatHalaby1-1/+0
2015-05-01A* Pathfinding and better monster AIwiseoldman951-5/+2
2015-03-13Monsters will now attack. Additional checks have been added when generating spawn.tumultenrx1-3/+2
Monsters will now attack. Additional checks have been added when generating spawn.
2015-01-16Converted Monster to std::chronoTycho1-1/+1
2015-01-11Initial convertion of a_Dt to std::chronoTycho1-3/+3
also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
2014-12-05BasicStyle: Added missing braces to control statements.Mattes D1-0/+2
2014-10-23En masse NULL -> nullptr replaceTiger Wang1-3/+3
2014-10-20En masse NULL -> nullptr replaceTiger Wang1-3/+3
2014-09-17Added first test to show the object can be createdTycho1-1/+1
2014-07-17Basic style fixes.madmaxoft1-1/+1
2014-06-17Cave spider now poisons its victim, added IsPawn function to Entityarchshift1-4/+6
2014-04-27Fixed warnings.madmaxoft1-2/+2
2014-04-27Redstone simulator now directly accesses cChunkTiger Wang1-3/+2
* Redstone simulator performance improvements * Added return values to some functions * Minor fixes
2014-04-27Added static const, initialized fields.archshift1-1/+1
2014-04-26Further refactored, Reverted Minecart changearchshift1-2/+2
Other small changes.
2014-04-26Moved huge conditional out of InStateChasing(), improving readabilityarchshift1-1/+16
Squashed a warning.
2014-02-12Simplified Attack() tracingTiger Wang1-1/+6
2014-02-11Fixed #627Tiger Wang1-2/+9
- Attack() is now called from cAggressive instead of cMonster * Monsters can no longer attack through walls * Should fix last remnants of player damage after teleporting (that both STR and bearbin contributed fixes to :P)
2014-01-25Attack() is no longer always calledTiger Wang1-1/+1
2014-01-24Large reworking of mob code [SEE DESC]Tiger Wang1-33/+32
+ Implemented better pathfinding - Removed lots of unused variables, functions, etc. * Changed some variable types * Other miscellaneous fixes, and also completes the previous PRs
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-04Skeleton, Ghast and Blaze's projectile code is now in their respective class.STRWarrior1-1/+1
2013-10-29Changed GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cppSTRWarrior1-1/+1
2013-10-20Fixed loading allowed mobs in world.madmaxoft1-2/+2
2013-09-10Inside cMonster::getMobFamily() : replacing Polymorphism by Map, in order to remove redundancymgueydan1-9/+0
2013-09-07Adding Family for monsters : Hostile/Passive/Water/Ambientmgueydan1-0/+7
2013-08-19Moved entities into the Entities subfolder.madmaxoft1-1/+1
2013-08-16Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.madmaxoft1-0/+1
Also slightly improved the spawning algorithm.
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-2/+2
Fixes FS #297 and part of FS #403. Added sizes to all entities. Moved all damage-related functions from cPawn to cEntity API change: renamed cPawn:TeleportTo() to cEntity:TeleportToCoords() git-svn-id: http://mc-server.googlecode.com/svn/trunk@1635 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-13Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com1-9/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1385 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-22Implemented BroadcastMovementUpdate function. Moved m_Pos,m_Rot,m_Speed to private members and made sure that all classes uses the public functions to access these members.keyboard.osh@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1294 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-22MTRand reference is now passed as a Tick() parameter so that it isn't created and destroyed over and over again. All entities will handle physics (empty callback for now)madmaxoft@gmail.com1-10/+9
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1096 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-22Reduced most mobs' constructors to oneliners by passing parameters to superclassesmadmaxoft@gmail.com1-2/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Added more constants into eEntityType; made them a compulsory parameter to the constructor, so that all entities have proper type.madmaxoft@gmail.com1-21/+41
Also added a few utility functions to cEntity for distinguishing the types (IsPlayer(), IsPickup() etc.) git-svn-id: http://mc-server.googlecode.com/svn/trunk@1092 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-23Source files cleanup: Mobs-related files in a separate subfolder, renamed.madmaxoft@gmail.com1-4/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@883 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-77/+77
git-svn-id: http://mc-server.googlecode.com/svn/trunk@606 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-03-09cClientHandles have a unique ID now to distinguish themfaketruth1-1/+1
cAuthenticator uses unique client ID for authentication Changed the kick function used by cAuthenticator to take a client ID instead of name, so the correct user is kicked Using callback reference instead of pointer in GetChunkData and affiliates GetChunkData returns false when failed, and true when succeeded Renamed entity type enums to something prettier Exposed some functions to Lua git-svn-id: http://mc-server.googlecode.com/svn/trunk@388 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-0/+3
git-svn-id: http://mc-server.googlecode.com/svn/trunk@188 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-26 - Linux compatible fixes including updated makefilemtilden@gmail.com1-1/+3
- Mersenne Twister still says uint32 but it's now signed for compatibility with random uses needing negative values - Server seed is sent to clients, but needs to be able to be signed long long later on for authentic reasons - Protocol Version is required to match to ensure client compatibility, this should probably have a settings.ini check as well as store the value there git-svn-id: http://mc-server.googlecode.com/svn/trunk@121 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-12-25- Fixed Bug #99 -> Mobs no longer bother you in creative modelapayo94@gmail.com1-0/+73
- refactored many things in the Monster system git-svn-id: http://mc-server.googlecode.com/svn/trunk@112 0a769ca7-a7f5-676a-18bf-c427514a06d6