version 0.21
This commit is contained in:
parent
bd1233aaf1
commit
c8d70b992c
1717 changed files with 68882 additions and 0 deletions
7
mods/3d_armor/unified_skins/README.txt
Normal file
7
mods/3d_armor/unified_skins/README.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
A 3d character model re-texturing api used as the framework for this modpack.
|
||||
|
||||
depends: default
|
||||
|
||||
Compatible with player skins mod [skins] by Zeg9 and Player Textures [player_textures] by sdzen.
|
||||
|
||||
Note: Currently only 64x32px player skins.
|
1
mods/3d_armor/unified_skins/depends.txt
Normal file
1
mods/3d_armor/unified_skins/depends.txt
Normal file
|
@ -0,0 +1 @@
|
|||
default
|
47
mods/3d_armor/unified_skins/init.lua
Normal file
47
mods/3d_armor/unified_skins/init.lua
Normal file
|
@ -0,0 +1,47 @@
|
|||
|
||||
uniskins = {
|
||||
skin = {},
|
||||
armor = {},
|
||||
wielditem = {},
|
||||
default_skin = "character.png",
|
||||
default_texture = "uniskins_trans.png",
|
||||
}
|
||||
|
||||
uniskins.update_player_visuals = function(self, player)
|
||||
if not player then
|
||||
return
|
||||
end
|
||||
local name = player:get_player_name()
|
||||
player:set_properties({
|
||||
visual = "mesh",
|
||||
mesh = "uniskins_character.x",
|
||||
textures = {
|
||||
self.skin[name],
|
||||
self.armor[name],
|
||||
self.wielditem[name]
|
||||
},
|
||||
visual_size = {x=1, y=1},
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local name = player:get_player_name()
|
||||
uniskins.skin[name] = uniskins.default_skin
|
||||
uniskins.armor[name] = uniskins.default_texture
|
||||
uniskins.wielditem[name] = uniskins.default_texture
|
||||
if minetest.get_modpath("player_textures") then
|
||||
local filename = minetest.get_modpath("player_textures").."/textures/player_"..name
|
||||
local f = io.open(filename..".png")
|
||||
if f then
|
||||
f:close()
|
||||
uniskins.skin[name] = "player_"..name..".png"
|
||||
end
|
||||
end
|
||||
if minetest.get_modpath("skins") then
|
||||
local skin = skins.skins[name]
|
||||
if skin and skins.get_type(skin) == skins.type.MODEL then
|
||||
uniskins.skin[name] = skin..".png"
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
BIN
mods/3d_armor/unified_skins/models/uniskins_character.blend
Normal file
BIN
mods/3d_armor/unified_skins/models/uniskins_character.blend
Normal file
Binary file not shown.
9156
mods/3d_armor/unified_skins/models/uniskins_character.x
Normal file
9156
mods/3d_armor/unified_skins/models/uniskins_character.x
Normal file
File diff suppressed because it is too large
Load diff
BIN
mods/3d_armor/unified_skins/textures/uniskins_trans.png
Normal file
BIN
mods/3d_armor/unified_skins/textures/uniskins_trans.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 146 B |
Loading…
Add table
Add a link
Reference in a new issue