Here's the full code.
Code: Select all
defineMaterial{
name = "longbow_ghost",
diffuseMap = "assets/textures/items/longbow_dif.tga",
specularMap = "assets/textures/items/longbow_spec.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Additive",
textureAddressMode = "Wrap",
glossiness = 20,
depthBias = 0,
}
defineObject{
name = "longbow_ghost",
baseObject = "base_item",
material = "longbow_ghost",
components = {
{
class = "Model",
model = "assets/models/items/longbow.fbx",
},
{
class = "Item",
uiName = "Ghost Longbow",
description = "An ethereal bow.",
gfxIndex = 165,
gfxIndexPowerAttack = 98,
impactSound = "impact_blunt",
weight = 1.6,
traits = { "missile_weapon" },
},
{
class = "RangedAttack",
attackPower = 16,
cooldown = 4.5,
attackSound = "swipe_bow",
ammo = "arrow",
},
},
tags = { "weapon", "weapon_missile" },
}