How to use the lindworm?
Posted: Wed Mar 11, 2015 11:47 pm
does anyone succeed to use the lindworm as a basic melee monster or shooting monster?
I have try melee brain, but it don't hurt, he can't even be killed.
With a ogre brain, same thing and no charge.
I have tried with a magma golem brain and a xeloroid brain, only the ranged attack works.
seems that the line is here to prevent player to go close to the monster. But when it is activated, the ranged attack don't work anymore.
what is the use of?
so far, my unkillable lindworm fireball shooter with the magma golem brain (god modeOn):
I ve put a groundPound attack, because the brain needs it, or it will always give error in the console.
some of the animations are desactivated.
I have try melee brain, but it don't hurt, he can't even be killed.
With a ogre brain, same thing and no charge.
I have tried with a magma golem brain and a xeloroid brain, only the ranged attack works.
seems that the line
SpoilerShow
shape = "cross",
what is the use of
Code: Select all
juggernaut = true,
so far, my unkillable lindworm fireball shooter with the magma golem brain (god modeOn):
I ve put a groundPound attack, because the brain needs it, or it will always give error in the console.
some of the animations are desactivated.
SpoilerShow
Code: Select all
defineObject{
name = "lindworm_melee",
baseObject = "base_monster",
components = {
{
class = "Model",
model = "assets/models/monsters/lindworm.fbx",
storeSourceData = true,
},
{
class = "Animation",
animations = {
idle = "assets/animations/monsters/lindworm/lindworm_idle.fbx",
moveForward = "assets/animations/monsters/lindworm/lindworm_walk.fbx",
turnLeft = "assets/animations/monsters/lindworm/lindworm_turn_left.fbx",
turnRight = "assets/animations/monsters/lindworm/lindworm_turn_right.fbx",
attack = "assets/animations/monsters/lindworm/lindworm_attack.fbx",
attackFrontLeft = "assets/animations/monsters/lindworm/lindworm_attack_front_left.fbx",
attackFrontRight = "assets/animations/monsters/lindworm/lindworm_attack_front_right.fbx",
rangedAttack = "assets/animations/monsters/lindworm/lindworm_ranged_attack.fbx",
wingAttack = "assets/animations/monsters/lindworm/lindworm_wing_attack.fbx",
getHitFrontLeft = "assets/animations/monsters/lindworm/lindworm_get_hit_front_left.fbx",
getHitFrontRight = "assets/animations/monsters/lindworm/lindworm_get_hit_front_right.fbx",
getHitBack = "assets/animations/monsters/lindworm/lindworm_get_hit_back.fbx",
getHitLeft = "assets/animations/monsters/lindworm/lindworm_get_hit_left.fbx",
getHitRight = "assets/animations/monsters/lindworm/lindworm_get_hit_right.fbx",
-- fall = "assets/animations/monsters/lindworm/lindworm_get_hit_front_left.fbx",
-- knockback = "assets/animations/monsters/lindworm/lindworm_knockback.fbx",
-- charge = "assets/animations/monsters/lindworm/lindworm_dash.fbx",
roar = "assets/animations/monsters/lindworm/lindworm_roar.fbx",
-- summon = "assets/animations/monsters/lindworm/lindworm_summon.fbx",
-- intro = "assets/animations/monsters/lindworm/lindworm_intro.fbx",
death = "assets/animations/monsters/lindworm/lindworm_death.fbx", },
currentLevelOnly = true,
},
{
class = "Monster",
meshName = "lindworm_mesh",
footstepSound = "ogre_footstep",
hitSound = "lindworm_hit",
dieSound = "lindworm_die",
hitEffect = "hit_dust",
-- deathEffect = "lindworm_explode",
capsuleHeight = 0.8,
capsuleRadius = 0.25,
collisionRadius = 3.5,
collisionHeight = 5,
health = 30,
protection = 10,
exp = 1000,
immunities = { "assassination", "sleep", "frozen", "blinded", "knockback", "burning" },
resistances = {
fire = "immune",
shock = "resist",
frost = "resist",
poison = "resist",
},
-- shape = "cross",
juggernaut = true,
onInit = function(self)
self:setMonsterFlag("CantDie", true)
end,
},
{
class = "MonsterMove",
name = "move",
sound = "lindworm_walk",
cooldown = 0.1,
},
{
class = "MonsterTurn",
name = "turn",
sound = "lindworm_walk",
},
{
class = "MagmaGolemBrain",
name = "brain",
sight = 30,
morale = 100,
seeInvisible = true,
allAroundSight = true,
},
{
class = "MonsterAttack",
name = "basicAttack",
animation = "attack",
attackPower = 80,
pierce = 5,
accuracy = 30,
woundChance = 60,
reach = 2,
cooldown = 4,
sound = "lindworm_attack",
--impactSound = "ogre_impact",
cameraShake = true,
screenEffect = "damage_screen",
},
{
class = "MonsterAttack",
name = "turnAttack",
animation = "wingAttack",
attackPower = 90,
cooldown = 5,
sound = "lindworm_attack",
accuracy = 70,
woundChance = 40,
cameraShake = true,
cameraShakeIntensity = 0.7,
screenEffect = "damage_screen",
},
{
class = "MonsterAttack",
name = "groundPound",
animation = "roar",
cooldown = 8,
repeatChance = 0,
sound = "magma_golem_ground_pound",
onAttack = function(self)
local x,y = self.go.x,self.go.y
local dx,dy = getForward(self.go.facing)
x = x + dx
y = y + dy
spawn("wizard_explosion", self.go.level, x, y, 0, self.go.elevation)
party.party:shakeCamera(0.7, 0.3)
end,
},
{
class = "MonsterAttack",
name = "rangedAttack",
attackType = "projectile",
attackPower = 50,
cooldown = 4,
animation = "rangedAttack",
sound = "magma_golem_ranged_attack",
shootProjectile = "magma_meteor",
},
},
}

