
Here is the script of the modified cultist and the fireball
Cultist
SpoilerShow
defineObject{
name = "cultist",
class = "Monster",
model = "mod_assets/models/monsters/cultist.fbx",
meshName = "goromorg_mesh",
animations = {
idle = "assets/animations/monsters/goromorg/goromorg_idle.fbx",
moveForward = "assets/animations/monsters/goromorg/goromorg_walk.fbx",
strafeLeft = "assets/animations/monsters/goromorg/goromorg_strafe_left.fbx",
strafeRight = "assets/animations/monsters/goromorg/goromorg_strafe_right.fbx",
turnLeft = "assets/animations/monsters/goromorg/goromorg_turn_left.fbx",
turnRight = "assets/animations/monsters/goromorg/goromorg_turn_right.fbx",
attack = "assets/animations/monsters/goromorg/goromorg_attack.fbx",
getHitFrontLeft = "assets/animations/monsters/goromorg/goromorg_get_hit_front_left.fbx",
getHitFrontRight = "assets/animations/monsters/goromorg/goromorg_get_hit_front_right.fbx",
getHitBack = "assets/animations/monsters/goromorg/goromorg_get_hit_back.fbx",
getHitLeft = "assets/animations/monsters/goromorg/goromorg_get_hit_left.fbx",
getHitRight = "assets/animations/monsters/goromorg/goromorg_get_hit_right.fbx",
fall = "assets/animations/monsters/goromorg/goromorg_get_hit.fbx",
},
--attackAnimSpeed = 1.7,
--moveAnimSpeed = 1.2,
--turnAnimSpeed = 1.3,
moveSound = "goromorg_walk",
footstepSound = "goromorg_footstep",
attackSound = "goromorg_attack",
hitSound = "goromorg_hit",
dieSound = "goromorg_die",
hitEffect = "hit_dust",
capsuleHeight = 0.8,
capsuleRadius = 0.25,
collisionRadius = 0.8,
health = 200,
sight = 2,
seeInvisible = false,
allAroundSight = false,
attackPower = 20,
protection = 0,
rangedAttack = "cultist_fireball",
coolDown = { 3, 4 },
movementCoolDown = 1.5,
exp = 300,
healthIncrement = 50,
brain = "Ranged",
}
name = "cultist",
class = "Monster",
model = "mod_assets/models/monsters/cultist.fbx",
meshName = "goromorg_mesh",
animations = {
idle = "assets/animations/monsters/goromorg/goromorg_idle.fbx",
moveForward = "assets/animations/monsters/goromorg/goromorg_walk.fbx",
strafeLeft = "assets/animations/monsters/goromorg/goromorg_strafe_left.fbx",
strafeRight = "assets/animations/monsters/goromorg/goromorg_strafe_right.fbx",
turnLeft = "assets/animations/monsters/goromorg/goromorg_turn_left.fbx",
turnRight = "assets/animations/monsters/goromorg/goromorg_turn_right.fbx",
attack = "assets/animations/monsters/goromorg/goromorg_attack.fbx",
getHitFrontLeft = "assets/animations/monsters/goromorg/goromorg_get_hit_front_left.fbx",
getHitFrontRight = "assets/animations/monsters/goromorg/goromorg_get_hit_front_right.fbx",
getHitBack = "assets/animations/monsters/goromorg/goromorg_get_hit_back.fbx",
getHitLeft = "assets/animations/monsters/goromorg/goromorg_get_hit_left.fbx",
getHitRight = "assets/animations/monsters/goromorg/goromorg_get_hit_right.fbx",
fall = "assets/animations/monsters/goromorg/goromorg_get_hit.fbx",
},
--attackAnimSpeed = 1.7,
--moveAnimSpeed = 1.2,
--turnAnimSpeed = 1.3,
moveSound = "goromorg_walk",
footstepSound = "goromorg_footstep",
attackSound = "goromorg_attack",
hitSound = "goromorg_hit",
dieSound = "goromorg_die",
hitEffect = "hit_dust",
capsuleHeight = 0.8,
capsuleRadius = 0.25,
collisionRadius = 0.8,
health = 200,
sight = 2,
seeInvisible = false,
allAroundSight = false,
attackPower = 20,
protection = 0,
rangedAttack = "cultist_fireball",
coolDown = { 3, 4 },
movementCoolDown = 1.5,
exp = 300,
healthIncrement = 50,
brain = "Ranged",
}
SpoilerShow
defineObject{
name = "cultist_fireball",
class = "ProjectileSpell",
particleSystem = "fireball",
hitParticleEffect = "fireball_hit",
lightColor = vec(1, 0.5, 0.25),
lightBrightness = 15,
lightRange = 7,
lightHitBrightness = 40,
lightHitRange = 10,
castShadow = true,
launchSound = "fireball_launch",
projectileSound = "fireball",
hitSound = "fireball_hit",
screenEffect = "fireball_screen",
projectileSpeed = 7.5,
attackPower = 15,
damageType = "fire",
--cameraShake = true,
tags = { "spell" },
}
name = "cultist_fireball",
class = "ProjectileSpell",
particleSystem = "fireball",
hitParticleEffect = "fireball_hit",
lightColor = vec(1, 0.5, 0.25),
lightBrightness = 15,
lightRange = 7,
lightHitBrightness = 40,
lightHitRange = 10,
castShadow = true,
launchSound = "fireball_launch",
projectileSound = "fireball",
hitSound = "fireball_hit",
screenEffect = "fireball_screen",
projectileSpeed = 7.5,
attackPower = 15,
damageType = "fire",
--cameraShake = true,
tags = { "spell" },
}