Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Doom_master1122

Cant get missle attacks to work

Recommended Posts

I'm trying to get a missile attack going on one of my DECORATE monsters and it doesnt work unless its a melee attack. He is supposed to throw a bouncing hammer it shows up but only if im close to him then back away really quick
Yeah i know i overwrote the SPOS sprites. dunno why i did it but
anyway

actor Constructdude 10005
{
  spawnid 159
  obituary "%o was hit in the head by a hammer."
  health 150
  radius 20
  height 56
  mass 100
  speed 11
  painchance 200
  meleedamage 6
  MONSTER
  +FLOORCLIP
  +MISSILEEVENMORE
  Missiletype Hammer
  Missileheight 16
  states
  {
  Spawn:
    SPOS AB 10 A_Look
    loop
  See:
    SPOS AABBCCDD 4 A_Chase
    loop
  Melee:
  Missle:
    SPOS E 10 A_FaceTarget
    SPOS F 5 A_ComboAttack
    SPOS E 8
    goto See
  Pain:
    SPOS G 3
    SPOS G 3 A_Pain
    goto See
  Death:
    SPOS H 5
    SPOS I 5 A_Scream
    SPOS J 5 A_NoBlocking
    SPOS K 5
    SPOS L 5
    SPOS M -1
    stop
  XDeath:
    SPOS N 5 A_XScream
    SPOS O 5 A_NoBlocking
    SPOS PQRST 5
    SPOS U -1
    stop
  Raise:
    SARG KJIH 5
    goto See
  }
}

Then my hammer
ACTOR Hammer
{
  height 8
  radius 6
  damage 5
  speed 10 
  renderstyle normal
  alpha 1
  PROJECTILE
  +RANDOMIZE
  +HEXENBOUNCE 
  -NOGRAVITY
  +NOEXPLODEFLOOR
  states
  {
  Spawn:
    HAMR A 4 bright
    loop
  Death:
    HAMR A -1 bright

any one see the problem why its not going properly?

Share this post


Link to post

it may be the part where you left the Melee attack without frames, and the engine could be thinking that the missile attack is actually a melee attack:

Melee:
Missle:

You can leave out the Melee: stage entirely, but leaving it without any frames will cause problems.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×