Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before posting this, I looked around a bit to see if someone else had this problem...but I couldn't find anything. So here goes.
I've coded a few monsters before (everything for personal use, btw.) but this one doesn't want to shoot a projectile, even though all my others do. When it comes to firing a projectile he does the animation just fine...just that nothing comes out....even though the monster calls for it in the missile state and it's correctly written.
Here's the code. Maybe I'm missing something?
Spoiler:
Missile:
MONS H 6 A_FaceTarget
MONS I 5 A_FaceTarget
MONS J 0 A_CustomMissile ("TriFireball",0,0,0)
MONS J 0 A_CustomMissile ("TriFireball",0,0,8)
MONS J 12 A_CustomMissile ("TriFireball",0,0,-8)
Goto See
Um, bah, it's the HammerFireball. I changed the name last night and didn't update it. My mistake. (I use 2 wads of the same one...the actual one and the test one.)
Alright, no longer late at night and I can actually read stuff...
The first number is the height offset and measures from the bottom of the actor, so 0 means it spawns on the ground and blows up immediately unless you've got some other floor-behaviour flag on the projectile. Since monsters tend to aim at a standing player at height 32, all default Doom monsters have 32 as their projectile height offset.
Also, you might want to replace Explosionradius/-damage with an [wiki]A_Explode[/wiki] call in the projectile's death state.
Do you actually have the sprites in your wad, and "monster/impshotx" defined in a [wiki]SNDINFO[/wiki] lump? That's about the only other thing I can think of that might be wrong, but it should only affect your ability to tell if the fireball is exploding at the monster's feet the way it's set up now.
The sound thing was actually me trying to use the same sound for the imp's frieball, but I realized out it's imp/shotx, lol. And true on the A_Explode, I completely missed that. Still no fireball. -_-
I set up the value to 56 to see if it'd spawn over his head but nothing. Tried 16 to see if it'd spawn at its knees..nothing. And yes, the sprites are in the wad. Which is what bothers me so much. I have no idea what could the problem be.
Try having the monster fire a DoomImpBall, and then try having the fireball replace the DoomImpBall... at least then you should be able to tell where the problem's coming from.
Can you post the entire decorate code so I/we can look at it ?
As a matter of fact can you post a small wad with the projectile, its sprites and DECORATE code ?