[Help] Monster's Firing Projectiles

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Masterdoomer
Posts: 11
Joined: Thu Sep 27, 2012 12:06 am

[Help] Monster's Firing Projectiles

Post by Masterdoomer »

So I got the cultist monster and I wanted to modifying him to where its like a lower class of a goromorg. So i modified his stats and made it were instead of firing different spells, I made were he fires a fireball only. I made a custom spell called cultist_fireball which its just a normal fireball with different stats. When i tested him it said that the spell cultist_fireball is unknown. I tested the fireball on a spawner and it worked fine. When the cultist fires it though it says it is unknown. I really need help :|
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",
}
Fireball
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" },
}
User avatar
Brodie301
Posts: 286
Joined: Sun Apr 08, 2012 6:00 pm
Location: Mississippi, USA

Re: [Help] Monster's Firing Projectiles

Post by Brodie301 »

The FORCE is with me!!!
Masterdoomer
Posts: 11
Joined: Thu Sep 27, 2012 12:06 am

Re: [Help] Monster's Firing Projectiles

Post by Masterdoomer »

Brodie301 wrote:Try this:
viewtopic.php?f=14&t=4085#p42582
This worked! :D thanks Brodie
Post Reply