Commit Graph

23 Commits

Author SHA1 Message Date
BlockMen
11c04e984d Localize player_attached 2014-08-21 16:49:30 +02:00
BlockMen
49ad1c1bf7 Make gui part of default 2014-07-05 16:06:16 +02:00
BlockMen
18d0bdd2bb Add boats 2014-07-05 16:03:33 +02:00
BlockMen
104018d711 Add fancy inventories 2014-07-05 15:57:35 +02:00
BlockMen
15740ffd3d Add animations for third person view 2014-04-12 01:17:54 +02:00
kaeza
ba4c80644e Fix player skin changing code. 2013-12-06 22:45:17 -05:00
kaeza
4c0c7ae146 Rewrite player.lua 2013-11-09 12:09:30 -02:00
PilzAdam
fcf0816fa8 Move all common mods back to minetest_game 2013-05-18 16:05:16 +02:00
PilzAdam
d6ec56811b Use common mods 2013-03-21 18:44:36 +01:00
MirceaKitsune
e7b4b2ba57 Fix the death animation looping while the player is dead, by using a still frame instead (I don't believe the amount of detail for a full animation is needed anyway). Also call the animation Lay instead of Death, so other mods like beds can use it 2012-11-27 02:50:19 +02:00
MirceaKitsune
f2a67871d2 VanessaE suggested a sit animation, so add one to the player. Not used by default, but many mods might find this handy 2012-11-27 01:19:48 +02:00
MirceaKitsune
cb4bfa51a1 Models allow multiple materials with multiple textures, so make the player texture field a list instead 2012-11-25 21:02:01 +02:00
MirceaKitsune
7a01de2f36 Improve and optimize the player script and add better comments 2012-11-25 21:02:01 +02:00
MirceaKitsune
c7a4a68d28 Implement death animation, but it currently loops constantly after the player dies (the player gets up and falls to the ground forever) 2012-11-25 21:02:01 +02:00
MirceaKitsune
91da5d1308 Model - Get rid of the 4 walk animations and only leave one, which looks good for all directions. Also add a Walk + Mine animation, since Irrlicht doesn't support blending the two animations otherwise
Update player script to match the animations in the previous commit

Shorten the still mine animation so the hand matches the speed of the walk-mine animation

Reduce animation speed to half when sneaking
2012-11-25 21:02:01 +02:00
MirceaKitsune
39e4bf0346 Get player walking and standing animations working! The player will play the proper animation when walking or standing.
Also get the mine animation working when holding the left mouse button. Walk animations have priority over it, and sadly you can't play both at the same time

Set initial player animation to stand
2012-11-25 21:02:01 +02:00
MirceaKitsune
dce87664d2 Important improvements to the player script. Instead of setting model and texture every X seconds, only do it when the player joins (so far)
Add a function which allows registering different frame ranges for different player models

Cosmetic improvements to the player script

More progress on the player animation functions, this commit adds useles code currently
2012-11-25 21:02:01 +02:00
MirceaKitsune
b97400d71d Updated texture from Jordach, and fix the licensing confusion
I forgot frame range definitions need to be per-model, since each model could have its own animations. Specify current ones as being player.x's

Add death animation, and correct many mesh issues I didn't notice last time
2012-11-25 21:02:01 +02:00
MirceaKitsune
abaf4c5121 Remove segmentation of limbs, because I don't like how the arms appeared to shrink during some deformations. This makes the player mesh exactly like the one in MineCraft, and gives people more reasons to complain that we're copying it :P
Rename player to character, to avoid conflicting with the default player sprite

New skin by Jordach

Add licenses to readme for the model and skin

Fix bad mirroring of left arm for player model
2012-11-25 21:02:00 +02:00
MirceaKitsune
609646b9b5 At last, we have a player.
Consists of a simple standi animation currently being looped.

Compatible with any MineCraft skin, no texture included on GIT for licensing reasons.

Walk animations for the player (forward, backward, strafe left and strafe right). This commit removes other test cases from the default script, so that player.lua can be brought to what it's intended for

Punch / mine animation, and some consistency improvements to the player script
2012-11-25 21:02:00 +02:00
MirceaKitsune
04d40a5ce4 Fix attachment test script and unregistered entities. Thanks jin_xi for this 2012-11-25 21:02:00 +02:00
MirceaKitsune
24781813fa b3d, you have failed me. x model format, you're in
Entries for the newly added animation features

Update player script to work with the latest code

Add a test case for attachments. A LUA entity is attached to the player with a specified name 10 seconds after the server starts

Add a detachment test case (5 seconds after attaching)

Update function names, plus add a test case for both player to player and lua-entity to player attachments
2012-11-25 21:02:00 +02:00
MirceaKitsune
0057a87b99 Add script to turn players into meshes, ticks every 1 second
Trigger the player.lua file in init.lua

Commit the ugly and temporary test model and texture. We'll get to a real animated player mesh once the code for that is ready

Set visual_size accordingly so the player model doesn't stretch vertically (default of the sprite player)

Attempt to use the b3d model format, although it doesn't seem to work so far
2012-11-25 21:02:00 +02:00