1
0
Commit Graph

105 Commits

Author SHA1 Message Date
madmaxoft
9bdc94053e Added cEntity:GetYaw() and cEntity:SetYaw().
This is the preferred way to get / set rotation, GetRotation() and SetRotation is obsoleted due to bad name.
2013-11-03 11:59:05 +01:00
madmaxoft
7dc96f0441 Added cPlayer::GetEffectiveGameMode(). 2013-11-03 11:59:05 +01:00
Tiger Wang
f38375a2ec Fixed bow damage in creative
Also reverted indenting change
2013-11-02 16:01:40 +00:00
Tiger Wang
77b3db7e25 Multiple fixes
* Fixed #282
* Fixed bow not taking damage
* Enhanced Player.cpp code
2013-11-02 14:08:00 +00:00
tonibm19
e96c1aebfe Using tabs 2013-10-29 16:44:45 +01:00
tonibm19
8a6511d329 fixed indentation 2013-10-28 21:45:49 +01:00
tonibm19
b26acdb9db extra line 2013-10-28 21:41:43 +01:00
tonibm19
669beef2de attempt at fixing indentation 2013-10-28 21:37:45 +01:00
tonibm19
b182f25324 Extra line 2013-10-28 21:00:14 +01:00
tonibm19
1841d77952 Fixed indentation 2013-10-28 20:58:50 +01:00
tonibm19
8c9fa9cf35 Added random chicken spawn when throwing an egg 2013-10-28 20:57:04 +01:00
madmaxoft
9e9198e090 cIniFile doesn't store filename internally anymore. 2013-10-25 11:15:44 +02:00
madmaxoft
99d369d837 cPickup cleanup. 2013-10-24 16:44:25 +02:00
madmaxoft
625c5f86de Fixed cPickup's constructor's parameter naming. 2013-10-24 15:05:23 +02:00
madmaxoft
eca6955a2d Cleanup in cPlayer. 2013-10-24 12:24:40 +02:00
madmaxoft
d359c5a2fe Unified cPlayer's Heal() function with cEntity's. 2013-10-24 12:24:39 +02:00
Tiger Wang
4d2c810c64 Pickups now have collection delay when vomited
Implements FS#394.
2013-10-24 00:30:20 +01:00
madmaxoft
e62cac07c0 Merge branch 'metadata' of git://github.com/tigerw/MCServer into tigerw-metadata. 2013-10-13 18:26:45 +02:00
Tiger Wang
d8d2f35e9d Eight round of fixes
* 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-13 12:47:55 +01:00
Tiger Wang
fe6fa23a97 Second round of fixes
* Implemented suggestions
2013-10-09 21:02:59 +01:00
madmaxoft
55999ee118 Moved cMakeDir::MakeDir to cFile::CreateFolder.
And exported to Lua.
2013-10-09 09:57:48 +02:00
Tiger Wang
7401fc000d Initial round of fixes
* 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-08 22:21:55 +01:00
Tiger Wang
5db6213f34 Initial Metadata Commit [SEE DESC]
+ 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-10-08 19:20:49 +01:00
madmaxoft
a4cbe9fbb1 Cleaned up cEntity's enums.
Several were obsoleted and unused, others weren't supposed to be exported to the Lua API.
2013-10-08 19:49:33 +02:00
madmaxoft
e5d5896a24 Fixed a typo in cEntity doxycomments. 2013-09-27 16:34:01 +02:00
madmaxoft
4a00d26da9 Fixed a few compiler warnings 2013-09-22 21:43:00 +02:00
Mattes D
63c627f68f Merge pull request #186 from tigerw/bugfixes
One feature and a few changes
2013-09-22 12:31:53 -07:00
Tiger Wang
dad3648102 Removed some unneeded includes 2013-09-22 19:48:59 +01:00
madmaxoft
5cfc108e83 Merge branch 'bugfixes' of git://github.com/tigerw/MCServer into tigerw-bugfixes 2013-09-20 22:02:11 +02:00
Tiger Wang
57dfdd3205 Implemented xoft's suggestions 2013-09-19 21:21:56 +01:00
madmaxoft
18d795d8da Fixed a crash in cEntity when the entity was at BlockY == 0. 2013-09-19 21:35:58 +02:00
Tiger Wang
198ac1892c Fixed pickups 2013-09-18 22:20:08 +01:00
Tiger Wang
9711fd7970 Fixed friction for entities
Due to a misplaced else, other entities weren't getting friction
2013-09-16 19:19:25 +01:00
Matyas Dolak
7e0f56ccce Attempt at fixing linux crash on player login.
Ref.: http://forum.mc-server.org/showthread.php?tid=1244
2013-09-16 15:23:16 +02:00
madmaxoft
5cde7d8a29 Merge branch 'pickups' of git://github.com/tigerw/MCServer into tigerw-pickups
Conflicts:
	source/BlockID.cpp
	source/Entities/Entity.cpp
2013-09-15 20:49:08 +02:00
Tiger Wang
11bbfbc98a Added break 2013-09-15 12:15:27 +01:00
Tiger Wang
47119b3027 Even better pickup physics 2013-09-13 19:54:50 +01:00
Tiger Wang
22b8f3a2e0 Even more fixes [SEE DESC]
* Fixed minecarts breaking completely due to stuff
* Rails are now non solid again
+ Added IsRail inline bool
- Removed Herobrine
2013-09-12 23:57:02 +01:00
Tiger Wang
a39564a46a Fixed water speed issues 2013-09-12 23:31:26 +01:00
Tiger Wang
8163ca9549 Implemented xoft's suggestions again 2013-09-12 10:25:13 +01:00
Tiger Wang
a1d5d25525 Implemented xoft's suggestions
I totally didn't copy this from the fire simulator...

(I did, but I changed it quite a bit :P)
2013-09-11 22:10:29 +01:00
Mattes D
85804d085d Merge pull request #159 from tigerw/bugfix
Multiple fixes and features
2013-09-11 12:19:39 -07:00
Tiger Wang
3a1def2c90 More changes [SEE DESC]
* Improved (again) pumpkin direction handling
* Fixed spacing in Entity.cpp
2013-09-11 20:07:51 +01:00
Tiger Wang
e9321bc715 Better player gamemode detection 2013-09-11 18:56:03 +01:00
Tiger Wang
277b26b4c2 Fixed two bugs 2013-09-11 18:51:27 +01:00
Tiger Wang
cb167f78e3 Added player void damage 2013-09-10 23:02:35 +01:00
Tiger Wang
c8f8597774 Added void damage 2013-09-10 23:01:02 +01:00
Tiger Wang
010bc94a34 Entities now maintain speed outside of world 2013-09-10 22:51:07 +01:00
Tiger Wang
57c17a02db A few Minecart fixes
* Removed unneeded flatrail setpos
* Fixed health checking
2013-09-09 18:55:42 +01:00
madmaxoft
5945166a98 Merge branch 'boats' of git://github.com/tigerw/MCServer. 2013-09-09 11:13:14 +02:00