summaryrefslogtreecommitdiffstats
path: root/source/Mobs (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-11-25Fixed Details Xoft gave.STRWarrior1-7/+11
Increased the range where orbs (should) track you. Blazes give 10 xp now.
2013-11-25Added cWorld::SpawnExperienceOrb function.STRWarrior1-3/+50
Most mobs now give proper Exp.
2013-11-25Implented SendExperienceOrb in ClientHandle.STRWarrior1-0/+4
2013-11-24Moved source to srcAlexander Harkness65-3488/+0
2013-11-17Blank Line addednesco1-0/+1
2013-11-15Update Giant.cppnesco1-1/+1
2013-11-14Update Giant.cppnesco1-3/+3
2013-11-12Now using a TickFollowPlayer function.STRWarrior2-46/+60
2013-11-10Bundled fixes [SEE DESC]Tiger Wang2-5/+10
* Fixed compiler warning in Monster.cpp * Future proofed particle effects * Improved pickups, made less jittery
2013-11-10Removed #include "../Root.h" since it isn't needed.STRWarrior1-1/+0
2013-11-10Removed #include "../Root.h" since it isn't needed.STRWarrior1-1/+0
2013-11-10Small code-style fixes.madmaxoft2-22/+32
2013-11-10Bundled fixes [SEE DESC]Tiger Wang2-35/+28
* Fixed pickups spawning in an incorrect position from a JukeBox * Pickups make a popping sound in Prtcl1.7 * Arrows make a *what sort of sound does an arrow make anyway‽* when hitting a block, and a popping sound when fired * Mobs again have metadata * Fixed Prtcl1.7 not using valid JSON to kick a client * Minecarts and arrows again have metadata
2013-11-10Renamed variables in cWolf.STRWarrior2-29/+29
2013-11-10Using DoWithPlayer instead of FindAndDoWithPlayer for callbacks.STRWarrior2-7/+18
You are able to dye the collar.
2013-11-10The owner object isn't stored anymore. Instead we use the name of the player.STRWarrior2-10/+24
This means only players can now have a wolf, but it fixes the bug where when you log out the wolf isn't your wolf anymore.
2013-11-10Fixes (SEE DESC)tonibm191-1/+7
Entity metadata is broadcasted. If player is in survival, his equipped item is removed. If you have green dye, and sheep is green, your equipped item won't be removed.
2013-11-10STR_Warrior was right.tonibm191-160/+1
Simplified code.
2013-11-10Fixed compilationtonibm191-3/+2
2013-11-10You can no longer color with woodtonibm191-158/+161
2013-11-10Added sheep dyeingtonibm191-2/+156
2013-11-10Using cMonster::Tick instead of super::cMonster::TickSTRWarrior1-1/+1
2013-11-10Wolves can now be owned by an entity.STRWarrior2-17/+100
They only sit when right clicked by their owner. They beg if the closest player has meat or bones in his hand. They follow their owner. They teleport to their owner if they are more then 30 blocks away. They don't attack players if they are not angry anymore. They don't move if they are sitting.
2013-11-08Fixed code style.madmaxoft1-2/+2
2013-11-08Changed variable nametonibm191-7/+6
2013-11-08Changed variable nametonibm191-2/+1
2013-11-08Now chicken drop eggstonibm191-1/+6
2013-11-08Now chickens can drop eggs.tonibm191-3/+33
They drop an egg every 5 or 10 minutes.
2013-11-05Fixed indentation.STRWarrior2-0/+2
2013-11-04Skeleton, Ghast and Blaze's projectile code is now in their respective class.STRWarrior8-68/+91
2013-11-02Skeleton.cpp doesn't have to load ProjectileEntity.h and Entity.h.STRWarrior1-3/+0
2013-11-02Skeletons, Blazes and Ghasts now shoot their projectile to the target.STRWarrior1-5/+63
2013-11-02Zombies and Skeletons don't walk into the sun anymore.STRWarrior4-0/+32
2013-10-29Changed GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cppSTRWarrior1-1/+1
2013-10-29Update to allow the light map to remain the same, but allow alteration of sky light values based on time.Samuel Barney1-3/+3
2013-10-28Now saddled horses spawn a saddle pickup when killedtonibm191-1/+4
2013-10-28Now saddle pigs spawn a saddle pickup when killedtonibm191-0/+4
2013-10-28Fixed indentation in tonibm19's code.madmaxoft1-3/+3
2013-10-28Fixed compilationtonibm191-1/+1
STR_Warrior code had an error (I copied&pasted it before)
2013-10-28Use STR_Warrior code and changed variable nametonibm191-17/+4
2013-10-27Extra linetonibm191-0/+1
2013-10-27Sheep fixes.tonibm191-4/+19
Now amount of wool you get when shearing a sheep is random. Sheeps only spawn in white color (I will add sheep dying soon).
2013-10-25cMonster: Improved doxycomments.madmaxoft1-2/+2
2013-10-24Renamed cMonster::GetSpawnRate() to GetSpawnDelay().madmaxoft2-3/+3
2013-10-22Fixed an assert in cMonstermadmaxoft1-2/+2
2013-10-20Reimplemented cMonster::FamilyFromType() as a simple switch (duh!)madmaxoft1-38/+27
2013-10-20Fixed memory leaks in cMobCensus, moved GetSpawnRate() to cMonster.madmaxoft2-0/+20
2013-10-20Fixed binary search in StringToMobType().madmaxoft1-3/+3
2013-10-20Moved all MobTypesManager functions to cMonster.madmaxoft2-7/+246
This removes some of the memory leaks and is more logical in structure. Also the functions are exported to Lua.
2013-10-20Fixed loading allowed mobs in world.madmaxoft37-49/+53
2013-10-18Fixed indentation and re-styled conditions.madmaxoft1-38/+44
2013-10-17Moved linestonibm191-16/+17
don't know if I did well
2013-10-17More fixestonibm191-3/+8
- You can only tame horses with nothing at hand - Fixed rearing
2013-10-16Improved horse saddling [SEE DESC]tonibm191-32/+32
Now it checks if horse is already saddled, and if it's, you don't lose the saddle. Also, if the horse isn't tammed, you can't saddle it.
2013-10-16Fixed compilation errors.madmaxoft1-2/+6
2013-10-15Added extra linetonibm191-0/+1
2013-10-15Fixed saddle horsetonibm191-4/+5
2013-10-15Fixed a big fail.I didtonibm191-0/+1
2013-10-15Added extra line (yes, again)tonibm191-0/+1
2013-10-15Added basic milk code.tonibm191-5/+12
2013-10-15Added extra linetonibm191-0/+1
2013-10-15Added horse saddlingtonibm191-1/+12
It uses pig code, sorry if it don't works, i'm a noob, but it should work.
2013-10-13Eight round of fixesTiger Wang2-7/+8
* Changed IsA() to *long if statement* - Removed deprecated values in Entity.h - to blazes with the plugins! * Renamed villager type enumerations to be LESS SHOUTY and more vt-y + Use vtMax for World.cpp testificate spawning
2013-10-11Sixth round of fixesTiger Wang2-4/+9
* Made horse rearing time fixed instead of random
2013-10-11Fifth round of fixesTiger Wang2-4/+15
* Enumerated Villager spawning
2013-10-11Fourth round of fixesTiger Wang1-10/+10
* Switchified WriteMobMetadata * Renamed Horse functions to be better
2013-10-11Third round of fixesTiger Wang5-10/+5
* Split WriteMetadata into three functions for common, entity, and mob * Edited a few mob sizes to Vanilla values
2013-10-09Second round of fixesTiger Wang12-6/+73
* Implemented suggestions
2013-10-08Initial round of fixesTiger Wang2-4/+4
* Fixed intentional misspelling of baby! :D * Better chested horse bool name * Fixed some weird continuity issues with my recent changes not being pushed up initially * Fixed derpy hexadecimal values
2013-10-08Initial Metadata Commit [SEE DESC]Tiger Wang15-24/+340
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
2013-09-21Linux compilation fix #2.madmaxoft1-1/+1
2013-09-21Fixed Linux compilation.madmaxoft1-1/+1
2013-09-21Fixed compilation from previous commit.madmaxoft2-2/+2
2013-09-19Fixed new monster aggressiveness issueTiger Wang2-4/+4
2013-09-18Added moar mobs!Tiger Wang17-55/+348
+ Added dragons + Added golems + Added giants + Added horses + Added some missing items + Added missing spawn egg metas
2013-09-17Fixed undead burningTiger Wang1-1/+1
(c'mon xoft, test ya code :P)
2013-09-16Exported cMonster:GetMobType() to the Lua API.madmaxoft1-1/+3
2013-09-13Added an extra line.tonibm191-0/+1
In first commit it says I removed first line
2013-09-13Fixed mobs attack range being too longtonibm191-2/+1
It was set to 5, I think 2 is better because now mobs can kill you when there is a block (or 2) between you and monster.
2013-09-10Inside cMonster::getMobFamily() : replacing Polymorphism by Map, in order to remove redundancymgueydan10-28/+8
2013-09-10Changing Bat to AMbiant creaturemgueydan1-1/+1
2013-09-08Implementing the MobSpawner (not used yet) that contains spawning rulesmgueydan1-1/+4
2013-09-07Adding a getType in Monster that return an enum instead of an int or charmgueydan1-1/+2
2013-09-07relockating mobs includes (they probably will end somewhere else in order not to recompile world each time you update a mob)mgueydan1-0/+23
2013-09-07Adding Family for monsters : Hostile/Passive/Water/Ambientmgueydan9-6/+56
2013-09-07Fixed a missing initialization in cMonster.madmaxoft1-2/+3
This should fix commit ff762a7ece6400eaeb5e21f3fea7cad00786a8d9 's all-mobs burning.
2013-09-06Moved daylight burning directly into cMonster.madmaxoft6-40/+46
2013-09-05Moved daylight burning directly into cMonster.madmaxoft6-40/+46
2013-08-27Zomb-ee and Skellingtons burning improvementsTiger Wang2-10/+14
They don't burn unless they are in direct view of the sun god or are protected by the sands of the souls of the underworld.
2013-08-19Moved entities into the Entities subfolder.madmaxoft4-4/+4
2013-08-16Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.madmaxoft7-1/+41
Also slightly improved the spawning algorithm.
2013-08-10Fixed squid crashing the server when above or below the worldmadmaxoft1-1/+6
2013-08-09Fixed squid crashing the server when above or below the worldmadmaxoft1-1/+6
2013-07-29Changed everyting to Unix line endings.Alexander Harkness12-319/+319
2013-07-07Squid: fixed a possible crash caused by access to a wrong chunkmadmaxoft@gmail.com1-4/+7
Fixes FS #411. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1665 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com49-93/+124
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-06-25Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code.madmaxoft@gmail.com1-2/+7
Should fix FS #400 and partially fix FS #381 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1626 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-22Moved physics to the cEntity class from the derivative classes (cMonster, cPickup). Added physics override to cPlayer to disable physics calculations. Fixed bug with pitch calculations on mobs.keyboard.osh@gmail.com2-127/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1400 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.com18-89/+69
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1385 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-02Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdatekeyboard.osh@gmail.com1-0/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1350 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-23Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions.keyboard.osh@gmail.com1-5/+5
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1299 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.com2-43/+45
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1294 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-03-09Pickups are now being saved into Anvil.madmaxoft@gmail.com1-2/+2
Also changed cEntity rotation datatype to double git-svn-id: http://mc-server.googlecode.com/svn/trunk@1262 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-21Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com1-1/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1222 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-02-16Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com2-2/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 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.com18-87/+97
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.com35-200/+85
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Added sounds to levers and mobsluksor111@gmail.com22-0/+47
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 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.com5-31/+66
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-12-21Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com48-267/+75
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com49-594/+574
http://forum.mc-server.org/showthread.php?tid=625 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1087 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-01Refactored the world time.madmaxoft@gmail.com6-12/+16
Now it is stored in two values - WorldAge (only incremented, plugins cannot change) and TimeOfDay (plugins can change). Since sub-tick precision is needed in Tick(), we store it both as number of seconds (double) and number of ticks (Int64) is calculated off of that. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1022 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-01Added Bats and Witches.luksor111@gmail.com4-0/+128
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1021 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-19Added spawn eggs with mobs (patch committed by Luksor)madmaxoft@gmail.com10-0/+314
git-svn-id: http://mc-server.googlecode.com/svn/trunk@979 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-06Removed a few debugging messages from the release builds.madmaxoft@gmail.com1-4/+5
( http://forum.mc-server.org/showthread.php?tid=571 ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@936 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com4-12/+12
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.com40-0/+1986
git-svn-id: http://mc-server.googlecode.com/svn/trunk@883 0a769ca7-a7f5-676a-18bf-c427514a06d6