Download LoG 2 Asset pack 2 here: viewtopic.php?f=22&t=9505#p91499
In scripts foldef find forest and forest statue. Use some editor for that, e.g. Notepad++ :http://notepad-plus-plus.org/
There is forest statue object definition:
Code: Select all
defineObject{
name = "forest_statue_pillar_01",
baseObject = "base_pillar",
components = {
{
class = "Model",
model = "assets/models/env/forest_statue_pillar_01.fbx",
staticShadow = true,
}
},
minimalSaveState = true,
}
In LoG 1 scripts find materials foder and materials file.
There is material definition for "gladiator_statue":
Code: Select all
defineMaterial{
name = "gladiator_statue",
diffuseMap = "assets/textures/props/gladiator_statue_dif.tga",
specularMap = "assets/textures/props/gladiator_statue_spec.tga",
normalMap = "assets/textures/props/gladiator_statue_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 20,
depthBias = 0,
}
You can use these definitions as a refference to make yours own LoG2 gladiator statue.
How to:
In general, you have to copy gladiator statue model and textures from LoG1 assets into yours "mod_assets/my_gladiator_statue/" folder.
Change normalmap "from blue to green" using Gimp or another tool.
Create script file using notepad++ and add object and material definitions. Material definition has the same structure, so you can copy it. Object definition is different, you you must adapt it.
Change paths to model and textures. e.g. from "assets/textures/env/forest_statue_dif.tga" to "mod_assets/my_gladiator_statue/my_gladiator_statue_dif.tga"
You can see gladiator statue in game, but there is wall behind. But you wanna only statue.
Open blender, import model you copied from LoG1 assetpack into your asset folder, delete wall and parts you no need. Save model.
Run game, statue is there. It's a pillar, but you can change position by changing baseObject = "base_pillar" to "base_wall_decoration" - you can experiment with it.[/color]