Re: [ASSETS] LOG 1 MONSTERS - Enhanced Edition
Posted: Fri Nov 28, 2014 6:43 pm
hmm. i actually get that error in the editor aswell if the tentacle is on a different level. no solve yet though.
Seems to be that the TentacleBrain component is borked somehow, the TentacleHide component seems to be working, so we prob. just need to reinvent the brain-part from a normal BrainComponent.
Edit:
I've created a quick new brain for him. It needs an additional turnAttack. Just replace the TentacleBrain with theese two components, keep the rest.
Seems to be that the TentacleBrain component is borked somehow, the TentacleHide component seems to be working, so we prob. just need to reinvent the brain-part from a normal BrainComponent.
Edit:
I've created a quick new brain for him. It needs an additional turnAttack. Just replace the TentacleBrain with theese two components, keep the rest.
Code: Select all
{
class = "Brain",
name = "brain",
sight = 2.5,
allAroundSight = true,
onInit = function(self)
self.go.brain:performAction("hide")
end,
onThink=function(self)
if (Time:currentTime()-self.go.brain.partyLastSeen)>3.0 then
self.go.brain:performAction("hide")
else
if self.go.brain.partyDiagonal then self.go.brain:wait(); return; end
if self.go.brain.partyAhead then self.go.brain:meleeAttack(); return; end
if self.go.brain.partyRight then self.go.brain:turnAttackRight(); return; end
if self.go.brain.partyLeft then self.go.brain:turnAttackLeft(); return; end
self.go.brain:turnAroundAttack()
return
end
end
},
{
class = "MonsterAttack",
name = "turnAttack",
sound = "tentacles_attack",
impactSound = "tentacles_hit",
accuracy = 15,
cooldown = 2,
attackPower = 20,
animationSpeed = 1.1,
animations = { "attack", "attackBack", "attackLeft", "attackRight" },
onDealDamage = function(self, champion, damage)
if math.random() <= 0.2 then
champion:setConditionValue("paralyzed", 10)
end
end,
},