mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-06-28 14:26:18 +02:00
Add shields back as a separate mod
This commit is contained in:
@ -4,7 +4,7 @@ uniskins = {
|
||||
armor = {},
|
||||
wielditem = {},
|
||||
default_skin = "character.png",
|
||||
default_texture = nil
|
||||
default_texture = nil,
|
||||
}
|
||||
|
||||
uniskins.update_player_visuals = function(self, player)
|
||||
@ -14,13 +14,13 @@ uniskins.update_player_visuals = function(self, player)
|
||||
local name = player:get_player_name()
|
||||
local texture = "uniskins_trans.png"
|
||||
if self.wielditem[name] then
|
||||
texture = texture.."^[combine:64x64:0,0="..self.wielditem[name]
|
||||
texture = texture.."^[combine:64x80:48,64="..self.wielditem[name]
|
||||
end
|
||||
if self.skin[name] then
|
||||
texture = texture.."^[combine:64x64:0,32="..self.skin[name]
|
||||
texture = texture.."^[combine:64x80:0,32="..self.skin[name]
|
||||
end
|
||||
if self.armor[name] then
|
||||
texture = texture.."^[combine:64x64:0,0="..self.armor[name]
|
||||
texture = texture.."^[combine:64x80:0,0="..self.armor[name]
|
||||
end
|
||||
player:set_properties({
|
||||
visual = "mesh",
|
||||
|
BIN
unified_skins/models/armor_character_tmp.png
Normal file
BIN
unified_skins/models/armor_character_tmp.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Before Width: | Height: | Size: 167 B After Width: | Height: | Size: 171 B |
Reference in New Issue
Block a user