Skip to content

Commit 9596d00

Browse files
committed
Player model: Remove vertical stretch of body and limbs, remove cape
Previously, body and limbs were stretched vertically by 1.125, creating rectangular pixels on side faces. Head was unstretched. Remove stretch of body and limbs, leaving the head unchanged. No other change would excessively shorten the model, so also scale up the model slightly, by * 1.05, such that the reduction factor for height is equal to the increasing factor for width. This minimises the changes to height and width. Remove cape support. Update the collisionbox to match. Add missing license.txt.
1 parent 49cc4c7 commit 9596d00

File tree

5 files changed

+57
-6
lines changed

5 files changed

+57
-6
lines changed

mods/player_api/README.txt

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Minetest Game mod: player_api
2-
============================
2+
=============================
33
See license.txt for license information.
44

55
Provides an API to allow multiple mods to set player models and textures.
@@ -10,11 +10,11 @@ Authors of source code
1010
Originally by celeron55, Perttu Ahola <celeron55@gmail.com> (LGPL 2.1)
1111
Various Minetest developers and contributors (LGPL 2.1)
1212

13-
Authors of media (textures, models and sounds)
14-
----------------------------------------------
13+
Authors of media (textures and models)
14+
--------------------------------------
1515

16-
MirceaKitsune (CC BY-SA 3.0):
17-
character.x
16+
stujones11 (CC BY-SA 3.0):
17+
character.* -- Derived from a model by MirceaKitsune (CC BY-SA 3.0)
1818

1919
Jordach (CC BY-SA 3.0):
2020
character.png

mods/player_api/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ player_api.register_model("character.b3d", {
1313
walk_mine = {x = 200, y = 219},
1414
sit = {x = 81, y = 160},
1515
},
16-
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.77, 0.3},
16+
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
1717
stepheight = 0.6,
1818
})
1919

mods/player_api/license.txt

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
License of source code
2+
----------------------
3+
4+
GNU Lesser General Public License, version 2.1
5+
Copyright (C) 2011-2017 celeron55, Perttu Ahola <celeron55@gmail.com>
6+
Copyright (C) 2011-2017 Various Minetest developers and contributors
7+
8+
This program is free software; you can redistribute it and/or modify it under the terms
9+
of the GNU Lesser General Public License as published by the Free Software Foundation;
10+
either version 2.1 of the License, or (at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13+
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14+
See the GNU Lesser General Public License for more details:
15+
https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
16+
17+
18+
Licenses of media (textures, models and sounds)
19+
-----------------------------------------------
20+
21+
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
22+
Copyright (C) 2017 stujones11
23+
Copyright (C) 2012-2017 Jordach
24+
25+
You are free to:
26+
Share — copy and redistribute the material in any medium or format.
27+
Adapt — remix, transform, and build upon the material for any purpose, even commercially.
28+
The licensor cannot revoke these freedoms as long as you follow the license terms.
29+
30+
Under the following terms:
31+
32+
Attribution — You must give appropriate credit, provide a link to the license, and
33+
indicate if changes were made. You may do so in any reasonable manner, but not in any way
34+
that suggests the licensor endorses you or your use.
35+
36+
ShareAlike — If you remix, transform, or build upon the material, you must distribute
37+
your contributions under the same license as the original.
38+
39+
No additional restrictions — You may not apply legal terms or technological measures that
40+
legally restrict others from doing anything the license permits.
41+
42+
Notices:
43+
44+
You do not have to comply with the license for elements of the material in the public
45+
domain or where your use is permitted by an applicable exception or limitation.
46+
No warranties are given. The license may not give you all of the permissions necessary
47+
for your intended use. For example, other rights such as publicity, privacy, or moral
48+
rights may limit how you use the material.
49+
50+
For more details:
51+
http://creativecommons.org/licenses/by-sa/3.0/

mods/player_api/models/character.b3d

-13.1 KB
Binary file not shown.
54.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)