im trying to take a weapon from this pack http://www.nexusmods.com/legendofgrimrock2/mods/48/?
i have already made de definition
Code: Select all
defineObject{
name = "katana",
baseObject = "base_item",
components = {
{
class = "Model",
model = "mod_assets/models/items/dm_weapon_samurai_sword.fbx",
},
{
class ="Item",
uiName = "Katana",
gfxAtlas = "mod_assets/textures/dm_icoatlas.tga",
gfxIndex = 12,
GfxIndexPowerAttack = 158,
weight = 1.5,
impactSound = "impact_blade",
traits = { "sword", "light_weapon" },
description = "An expertly forged katana."
},
{
class = "MeleeAttack",
attackPower = 25,
accuracy = 5,
swipe = "horizontal",
attackSound = "swipe_light",
cooldown = 3.0,
baseDamageStat = "strenth",
damageType = "physical",
requirements = {"light_weapons" ,3},
powerAttackTemplate = "flurry",
gameEffect = "",
},
}
}
but know im having this problem
the item its show this way http://prntscr.com/8l6r8n on the ground
but its ok when i take it or he was on inventory http://prntscr.com/8l6s1s http://prntscr.com/8l6sac
what do i do?
i have tried do the materials this way
Code: Select all
defineMaterial{
name = "katana",
diffuseMap = "mod_assets/textures/items/dm_samurai_sword_dif.tga",
specularMap = "mod_assets/textures/items/dm_samurai_sword_spec.tga",
normalMap = "mod_assets/textures/items/normal/dm_samurai_sword_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 40,
depthBias = 0,
}