summaryrefslogtreecommitdiffstats
path: root/source/Mobs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implented SendExperienceOrb in ClientHandle.STRWarrior2013-11-251-0/+4
|
* Merge branch 'master' of git://github.com/nesco/MCServer.madmaxoft2013-11-191-2/+2
|\
| * Blank Line addednesco2013-11-171-0/+1
| |
| * Update Giant.cppnesco2013-11-151-1/+1
| |
| * Update Giant.cppnesco2013-11-141-3/+3
|/
* Merge remote-tracking branch 'origin/WolfUpdate'madmaxoft2013-11-132-28/+36
|\ | | | | | | | | Conflicts: source/Mobs/Wolf.h
| * Now using a TickFollowPlayer function.STRWarrior2013-11-122-46/+60
| |
| * Removed #include "../Root.h" since it isn't needed.STRWarrior2013-11-101-1/+0
| |
* | Merge remote-tracking branch 'origin/fixes'.madmaxoft2013-11-133-50/+60
|\ \
| * | Bundled fixes [SEE DESC]Tiger Wang2013-11-102-5/+10
| | | | | | | | | | | | | | | | | | * Fixed compiler warning in Monster.cpp * Future proofed particle effects * Improved pickups, made less jittery
| * | Bundled fixes [SEE DESC]Tiger Wang2013-11-102-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
* | | Merge pull request #330 from tonibm19/patch-1Mattes D2013-11-101-6/+9
|\ \ \ | | | | | | | | Added sheep dyeing
| * | | Fixes (SEE DESC)tonibm192013-11-101-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.
| * | | STR_Warrior was right.tonibm192013-11-101-160/+1
| | | | | | | | | | | | Simplified code.
| * | | Fixed compilationtonibm192013-11-101-3/+2
| | | |
| * | | You can no longer color with woodtonibm192013-11-101-158/+161
| | | |
| * | | Added sheep dyeingtonibm192013-11-101-2/+156
| |/ /
* | | Removed #include "../Root.h" since it isn't needed.STRWarrior2013-11-101-1/+0
| | |
* | | Small code-style fixes.madmaxoft2013-11-102-22/+32
| |/ |/|
* | Renamed variables in cWolf.STRWarrior2013-11-102-29/+29
| |
* | Using DoWithPlayer instead of FindAndDoWithPlayer for callbacks.STRWarrior2013-11-102-7/+18
| | | | | | | | You are able to dye the collar.
* | The owner object isn't stored anymore. Instead we use the name of the player.STRWarrior2013-11-102-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.
* | Using cMonster::Tick instead of super::cMonster::TickSTRWarrior2013-11-101-1/+1
| |
* | Wolves can now be owned by an entity.STRWarrior2013-11-102-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.
* Fixed code style.madmaxoft2013-11-081-2/+2
|
* Changed variable nametonibm192013-11-081-7/+6
|
* Changed variable nametonibm192013-11-081-2/+1
|
* Now chicken drop eggstonibm192013-11-081-1/+6
|
* Now chickens can drop eggs.tonibm192013-11-081-3/+33
| | | They drop an egg every 5 or 10 minutes.
* Merge pull request #307 from mc-server/MobImprovementsMattes D2013-11-0510-10/+122
|\ | | | | Mob projectiles
| * Fixed indentation.STRWarrior2013-11-052-0/+2
| |
| * Skeleton, Ghast and Blaze's projectile code is now in their respective class.STRWarrior2013-11-048-68/+91
| |
| * Skeleton.cpp doesn't have to load ProjectileEntity.h and Entity.h.STRWarrior2013-11-021-3/+0
| |
| * Skeletons, Blazes and Ghasts now shoot their projectile to the target.STRWarrior2013-11-021-5/+63
| |
| * Zombies and Skeletons don't walk into the sun anymore.STRWarrior2013-11-024-0/+32
| |
* | Merge pull request #292 from SamJBarney/MobSpawningMattes D2013-10-301-3/+3
|\ \ | | | | | | Mob Spawning based on light values
| * | Update to allow the light map to remain the same, but allow alteration of sky light values based on time.Samuel Barney2013-10-291-3/+3
| | |
* | | Merge pull request #299 from tonibm19/masterMattes D2013-10-292-1/+8
|\ \ \ | |_|/ |/| | Saddles are dropped, chicken spawn out of thrown eggs.
| * | Now saddled horses spawn a saddle pickup when killedtonibm192013-10-281-1/+4
| | |
| * | Now saddle pigs spawn a saddle pickup when killedtonibm192013-10-281-0/+4
| |/
* / Changed GameMode() == 1 to IsGameModeCreative in AggressiveMonster.cpp and ClientHandle.cppSTRWarrior2013-10-291-1/+1
|/
* Fixed indentation in tonibm19's code.madmaxoft2013-10-281-3/+3
|
* Fixed compilationtonibm192013-10-281-1/+1
| | | STR_Warrior code had an error (I copied&pasted it before)
* Use STR_Warrior code and changed variable nametonibm192013-10-281-17/+4
|
* Extra linetonibm192013-10-271-0/+1
|
* Sheep fixes.tonibm192013-10-271-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).
* cMonster: Improved doxycomments.madmaxoft2013-10-251-2/+2
|
* Renamed cMonster::GetSpawnRate() to GetSpawnDelay().madmaxoft2013-10-242-3/+3
|
* Fixed an assert in cMonstermadmaxoft2013-10-221-2/+2
|
* Reimplemented cMonster::FamilyFromType() as a simple switch (duh!)madmaxoft2013-10-201-38/+27
|
* Fixed memory leaks in cMobCensus, moved GetSpawnRate() to cMonster.madmaxoft2013-10-202-0/+20
|
* Fixed binary search in StringToMobType().madmaxoft2013-10-201-3/+3
|
* Moved all MobTypesManager functions to cMonster.madmaxoft2013-10-202-7/+246
| | | | This removes some of the memory leaks and is more logical in structure. Also the functions are exported to Lua.
* Fixed loading allowed mobs in world.madmaxoft2013-10-2037-49/+53
|
* Fixed indentation and re-styled conditions.madmaxoft2013-10-181-38/+44
|
* Merge pull request #259 from tonibm19/patch-2Mattes D2013-10-181-30/+38
|\ | | | | Fixed horse saddle
| * Moved linestonibm192013-10-171-16/+17
| | | | | | don't know if I did well
| * More fixestonibm192013-10-171-3/+8
| | | | | | | | - You can only tame horses with nothing at hand - Fixed rearing
| * Improved horse saddling [SEE DESC]tonibm192013-10-161-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.
| * Added extra linetonibm192013-10-151-0/+1
| |
| * Fixed saddle horsetonibm192013-10-151-4/+5
| |
* | Merge pull request #253 from SamJBarney/masterMattes D2013-10-1811-9/+70
|\ \ | | | | | | Merge of Mob Spawning code by mgueydan
| * \ Merge branch 'MobSpawning' of https://github.com/mgueydan/MCServer into MobSpawningSamuel Barney2013-10-1411-9/+70
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: source/Mobs/Bat.h source/Mobs/Monster.h source/World.cpp
| | * | Inside cMonster::getMobFamily() : replacing Polymorphism by Map, in order to remove redundancymgueydan2013-09-1010-28/+8
| | | |
| | * | Changing Bat to AMbiant creaturemgueydan2013-09-101-1/+1
| | | |
| | * | Implementing the MobSpawner (not used yet) that contains spawning rulesmgueydan2013-09-081-1/+4
| | | |
| | * | Adding a getType in Monster that return an enum instead of an int or charmgueydan2013-09-071-1/+2
| | | |
| | * | relockating mobs includes (they probably will end somewhere else in order not to recompile world each time you update a mob)mgueydan2013-09-071-0/+23
| | | |
| | * | Adding Family for monsters : Hostile/Passive/Water/Ambientmgueydan2013-09-079-6/+56
| | | |
* | | | Fixed compilation errors.madmaxoft2013-10-161-2/+6
| |_|/ |/| |
* | | Fixed a big fail.I didtonibm192013-10-151-0/+1
| | |
* | | Added extra line (yes, again)tonibm192013-10-151-0/+1
| | |
* | | Added basic milk code.tonibm192013-10-151-5/+12
| | |
* | | Added extra linetonibm192013-10-151-0/+1
| | |
* | | Added horse saddlingtonibm192013-10-151-1/+12
|/ / | | | | It uses pig code, sorry if it don't works, i'm a noob, but it should work.
* | Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata.madmaxoft2013-10-1329-39/+434
|\ \
| * | Eight round of fixesTiger Wang2013-10-132-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
| * | Sixth round of fixesTiger Wang2013-10-112-4/+9
| | | | | | | | | | | | * Made horse rearing time fixed instead of random
| * | Fifth round of fixesTiger Wang2013-10-112-4/+15
| | | | | | | | | | | | * Enumerated Villager spawning
| * | Fourth round of fixesTiger Wang2013-10-111-10/+10
| | | | | | | | | | | | | | | * Switchified WriteMobMetadata * Renamed Horse functions to be better
| * | Third round of fixesTiger Wang2013-10-115-10/+5
| | | | | | | | | | | | | | | * Split WriteMetadata into three functions for common, entity, and mob * Edited a few mob sizes to Vanilla values
| * | Second round of fixesTiger Wang2013-10-0912-6/+73
| | | | | | | | | | | | * Implemented suggestions
| * | Initial round of fixesTiger Wang2013-10-082-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
| * | Initial Metadata Commit [SEE DESC]Tiger Wang2013-10-0815-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
* | | Linux compilation fix #2.madmaxoft2013-09-211-1/+1
| | |
* | | Fixed Linux compilation.madmaxoft2013-09-211-1/+1
| | |
* | | Fixed compilation from previous commit.madmaxoft2013-09-212-2/+2
|/ /
* | Fixed new monster aggressiveness issueTiger Wang2013-09-192-4/+4
| |
* | Added moar mobs!Tiger Wang2013-09-1817-55/+348
| | | | | | | | | | | | | | | | | | + Added dragons + Added golems + Added giants + Added horses + Added some missing items + Added missing spawn egg metas
* | Fixed undead burningTiger Wang2013-09-171-1/+1
| | | | | | | | (c'mon xoft, test ya code :P)
* | Exported cMonster:GetMobType() to the Lua API.madmaxoft2013-09-161-1/+3
| |
* | Added an extra line.tonibm192013-09-131-0/+1
| | | | | | In first commit it says I removed first line
* | Fixed mobs attack range being too longtonibm192013-09-131-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.
* Fixed a missing initialization in cMonster.madmaxoft2013-09-071-2/+3
| | | | This should fix commit ff762a7ece6400eaeb5e21f3fea7cad00786a8d9 's all-mobs burning.
* Moved daylight burning directly into cMonster.madmaxoft2013-09-056-40/+46
|
* Zomb-ee and Skellingtons burning improvementsTiger Wang2013-08-272-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.
* Moved entities into the Entities subfolder.madmaxoft2013-08-194-4/+4
|
* Replaced E_ENTITY_TYPE_XXX with cMonster::mtXXX.madmaxoft2013-08-167-1/+41
| | | | Also slightly improved the spawning algorithm.
* Fixed squid crashing the server when above or below the worldmadmaxoft2013-08-101-1/+6
|
* Changed everyting to Unix line endings.Alexander Harkness2013-07-2912-319/+319
|
* Squid: fixed a possible crash caused by access to a wrong chunkmadmaxoft@gmail.com2013-07-071-4/+7
| | | | | | Fixes FS #411. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1665 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com2013-07-0149-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
* Unified the way mobs are spawned (egg vs natural). Fixed deadlocks in mob moving. Fixed mob destroying code.madmaxoft@gmail.com2013-06-251-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
* Moved 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.com2013-04-222-127/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1400 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick()madmaxoft@gmail.com2013-04-1318-89/+69
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1385 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added support for head yaw tracking and packet sending and fixed bug in BroadcastMovementUpdatekeyboard.osh@gmail.com2013-04-021-0/+1
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1350 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added helper functions AddSpeed, AddSpeedX, AddSpeedY, AddSpeedZ, AddPosition, AddPosX, AddPosY, AddPosZ. Made sure that all entites use these helper functions.keyboard.osh@gmail.com2013-03-231-5/+5
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1299 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Implemented 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.com2013-03-222-43/+45
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1294 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Pickups are now being saved into Anvil.madmaxoft@gmail.com2013-03-091-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
* Moved the Speed member into cEntity class instead of its descendants.madmaxoft@gmail.com2013-02-211-1/+0
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1222 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed all E_ITEM_ symbols equivalent to E_BLOCK_, and all obsolete item and block symbols.madmaxoft@gmail.com2013-02-162-2/+2
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1218 0a769ca7-a7f5-676a-18bf-c427514a06d6
* MTRand 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.com2012-12-2218-87/+97
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1096 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Reduced most mobs' constructors to oneliners by passing parameters to superclassesmadmaxoft@gmail.com2012-12-2235-200/+85
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1095 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added sounds to levers and mobsluksor111@gmail.com2012-12-2122-0/+47
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1093 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added more constants into eEntityType; made them a compulsory parameter to the constructor, so that all entities have proper type.madmaxoft@gmail.com2012-12-215-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
* Reworked the IsA() / GetClass() framework to actually be useful. Added GetParentClass().madmaxoft@gmail.com2012-12-2148-267/+75
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1090 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com2012-12-2149-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
* Refactored the world time.madmaxoft@gmail.com2012-11-016-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
* Added Bats and Witches.luksor111@gmail.com2012-11-014-0/+128
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@1021 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Added spawn eggs with mobs (patch committed by Luksor)madmaxoft@gmail.com2012-10-1910-0/+314
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@979 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Removed a few debugging messages from the release builds.madmaxoft@gmail.com2012-10-061-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
* Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com2012-09-244-12/+12
| | | | git-svn-id: http://mc-server.googlecode.com/svn/trunk@887 0a769ca7-a7f5-676a-18bf-c427514a06d6
* Source files cleanup: Mobs-related files in a separate subfolder, renamed.madmaxoft@gmail.com2012-09-2340-0/+1986
git-svn-id: http://mc-server.googlecode.com/svn/trunk@883 0a769ca7-a7f5-676a-18bf-c427514a06d6