mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-23 07:38:03 +02:00
moved mesh and skin definition to yl_npc/npc_talk
This commit is contained in:
parent
08bb8d3ea5
commit
8db72aad9d
73
config.lua
73
config.lua
@ -24,52 +24,6 @@ yl_speak_up.mesh_data["error"] = {
|
||||
texture_index = 1,
|
||||
can_show_wielded_items = false,
|
||||
}
|
||||
-- this model is used by mobs_npc
|
||||
yl_speak_up.mesh_data["mobs_character.b3d"] = {
|
||||
-- the first texture is the skin
|
||||
texture_index = 1,
|
||||
-- there is no support for capes or wielded items
|
||||
can_show_wielded_items = false,
|
||||
-- textures are applied directly
|
||||
textures_to_skin = false,
|
||||
animation = {
|
||||
-- {x = start_frame, y = end_frame, collisionbox}
|
||||
stand_still = {x = 0, y = 0, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
stand = {x = 0, y = 79, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
sit = {x = 81, y = 160, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}},
|
||||
lay = {x = 162, y = 166, collisionbox = {-0.6, 0.0, -0.6, 0.6, 0.3, 0.6}},
|
||||
walk = {x = 168, y = 187, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
mine = {x = 189, y = 198, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
walk_mine = {x = 200, y = 219, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
},
|
||||
}
|
||||
yl_speak_up.mesh_data["skinsdb_3d_armor_character_5.b3d"] = {
|
||||
-- the second texture is the skin
|
||||
texture_index = 2,
|
||||
-- they can wear and show capes and wield items
|
||||
can_show_wielded_items = true,
|
||||
-- call textures2skin in order to convert the textures (wielded items)
|
||||
textures_to_skin = true,
|
||||
animation = {
|
||||
-- {x = start_frame, y = end_frame, collisionbox}
|
||||
stand_still = {x = 0, y = 0, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
stand = {x = 0, y = 79, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
sit = {x = 81, y = 160, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.0, 0.3}},
|
||||
lay = {x = 162, y = 166, collisionbox = {-0.6, 0.0, -0.6, 0.6, 0.3, 0.6}},
|
||||
walk = {x = 168, y = 187, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
mine = {x = 189, y = 198, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
walk_mine = {x = 200, y = 219, collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3}},
|
||||
},
|
||||
|
||||
}
|
||||
yl_speak_up.mesh_data["mobs_sheep.b3d"] = {
|
||||
texture_index = 1,
|
||||
}
|
||||
yl_speak_up.mesh_data["mobs_cow.b3d"] = {
|
||||
texture_index = 1,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
-- diffrent mob types may want to wear diffrent skins - even if they share the
|
||||
@ -78,36 +32,11 @@ yl_speak_up.mob_skins = {}
|
||||
-- some models support capes
|
||||
yl_speak_up.mob_capes = {}
|
||||
|
||||
-- mobs_redo usually uses 64 x 32 textures:
|
||||
yl_speak_up.mob_skins["mobs_npc:npc"] = {
|
||||
"mobs_npc.png", "mobs_npc2.png", "mobs_npc3.png", "mobs_npc4.png", "mobs_npc_baby.png"}
|
||||
yl_speak_up.mob_skins["mobs_npc:igor"] = {
|
||||
"mobs_igor.png", "mobs_igor2.png", "mobs_igor3.png", "mobs_igor4.png",
|
||||
"mobs_igor5.png", "mobs_igor6.png", "mobs_igor7.png", "mobs_igor8.png"}
|
||||
yl_speak_up.mob_skins["mobs_npc:trader"] = {
|
||||
"mobs_trader.png", "mobs_trader2.png", "mobs_trader3.png"}
|
||||
|
||||
yl_speak_up.mob_skins["mobs_animal:sheep_white"] = {
|
||||
"mobs_sheep_base.png^(mobs_sheep_wool.png^[colorize:#abababc0)"}
|
||||
yl_speak_up.mob_skins["mobs_animal:sheep_red"] = {
|
||||
"mobs_sheep_base.png^(mobs_sheep_wool.png^[colorize:#ff0000a0)"}
|
||||
yl_speak_up.mob_skins["mobs_animal:cow"] = {
|
||||
"mobs_cow.png", "mobs_cow2.png"}
|
||||
|
||||
-- this here uses 64 x 64 textures:
|
||||
yl_speak_up.mob_skins["yl_speak_up:human"] = {
|
||||
"yl_speak_up_main_default.png"}
|
||||
-- which capes can an NPC wear?
|
||||
yl_speak_up.mob_capes["yl_speak_up:human"] = {
|
||||
"yl_npc_cape_default.png"}
|
||||
|
||||
|
||||
-- some mobs (in particular from mobs_redo) can switch between follow (their owner),
|
||||
-- stand and walking when they're right-clicked; emulate this behaviour for NPC in
|
||||
-- this list
|
||||
yl_speak_up.emulate_orders_on_rightclick = {
|
||||
"mobs_npc:npc", "mobs_npc:igor", "mobs_npc:trader",
|
||||
"mobs_animal:sheep_white", "mobs_animal:sheep_red", "mobs_animal:cow"}
|
||||
yl_speak_up.emulate_orders_on_rightclick = {}
|
||||
|
||||
|
||||
-- some properties from external NPC can be edited and changed (they have the self. prefix),
|
||||
|
Loading…
Reference in New Issue
Block a user