SpoilerShow
Code: Select all
defineObject{
name = "spider_ceiling",
class = "Monster",
model = "mod_assets/models/monsters/spider_ceiling_up1.fbx",
meshName = "spider_mesh",
animations = {
idle = "mod_assets/animations/spider_idle_ceiling.fbx",
moveForward = "mod_assets/animations/spider_walk_ceiling.fbx",
turnLeft = "mod_assets/animations/spider_turn_left_ceiling.fbx",
turnRight = "mod_assets/animations/spider_turn_right_ceiling.fbx",
attack = "mod_assets/animations/spider_bite_ceiling.fbx",
getHitFrontLeft = "mod_assets/animations/spider_get_hit_front_left_ceiling.fbx",
getHitFrontRight = "mod_assets/animations/spider_get_hit_front_right_ceiling.fbx",
getHitBack = "mod_assets/animations/spider_get_hit_back_ceiling.fbx",
getHitLeft = "mod_assets/animations/spider_get_hit_left_ceiling.fbx",
getHitRight = "mod_assets/animations/spider_get_hit_right_ceiling.fbx",
fall = "mod_assets/animations/spider_get_hit_front_left_ceiling.fbx",
},
moveSound = "spider_walk",
attackSound = "spider_attack",
hitSound = "spider_hit",
dieSound = "spider_die",
hitEffect = "hit_goo",
capsuleHeight = 0.2,
capsuleRadius = 0.8,
collisionRadius = 0.6,
health = 160,
sight = 3,
attackPower = 23,
accuracy = 10,
movementCoolDown = 0.00,
noRecoilInterval = { .5, .5 },
exp = 175,
healthIncrement = 30,
attackPowerIncrement = 5,
brain = "Melee",
onDealDamage = function(self, champion, damage)
if math.random() <= 0.3 then
champion:setConditionCumulative("poison", 30)
end
end,
}