Compare commits

...

5 Commits

Author SHA1 Message Date
Aaron Suen b94cae0d4a Work around MT #12180 (black wield hand) 2022-04-22 01:33:09 -04:00
Aaron Suen c00413817a Fix screenshot aspect ratio 2022-01-28 11:05:12 -05:00
Aaron Suen 8f334ce1a3 CDB dev_state 2021-12-26 14:10:08 -05:00
Aaron Suen 61e448979d Add todo items 2021-11-30 09:29:49 -05:00
Aaron Suen 3ea8148909 Fix wieldhand case-insensitivity 2021-08-18 08:31:54 -04:00
4 changed files with 11 additions and 3 deletions

View File

@ -21,6 +21,7 @@ return {
pkg = "nc_skins",
version = stamp .. "-$Format:%h$",
type = "mod",
dev_state = "ACTIVELY_DEVELOPED",
title = "NodeCore Skins",
short_description = "Custom player skins for NodeCore",
tags = {"complex_installation", "multiplayer", "player_effects", "decorative"},

10
TODO
View File

@ -1,9 +1,15 @@
------------------------------------------------------------------------
Switch to dynamic media for all skins?
Optionally detect and apply new skins periodically at runtime?
- Optionally detect and apply new skins periodically at runtime?
Optional HTTP fetch API for new players and updates?
Allow players to change skins at runtime?
- How do we control which set of skins per player?
Allow accessories?
- Extra custom surfaces via ent attachments
- Custom obj models?
------------------------------------------------------------------------

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -18,13 +18,14 @@ for pname, texture in pairs(api.all_loaded_skins()) do
use_texture_alpha = "clip",
wield_scale = {x = 2, y = 2, z = 2},
virtual_item = true,
paramtype = "light",
on_punch = minetest.remove_node
})
end
minetest.register_on_joinplayer(function(player)
local pname = player:get_player_name()
local hand = hands[pname]
local hand = hands[pname:lower()]
if not hand then return end
minetest.after(0, function()
player = minetest.get_player_by_name(pname)