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

DECORATE melee problem

Recommended Posts

I'm trying to make a simple, easy, monster to supplement the imp as a standard trooper. It works fine, except for the melee attack. The monster will run up to you and the frames for the melee attack will cycle through, but no sound will play, and there's no damage. I assume this is a problem with my A_MeleeAttack and the properties that go with it. Here's my DECORATE lump:

actor Chelsea 32003
{
   obituary "o% was struck down by Chelsea's firy breath"
   hitobituary "o% was ripped apart by Chelsea's unforgiving maw"
   health 60
   radius 56
   height 56
   mass 75
   speed 15
   painchance 250
   seesound "grunt/sight"
   attacksound "demon/melee"
   painsound "imp/pain"
   deathsound "demon/death"
   activesound "grunt/active"
   missiletype "doomimpball"
   missileheight 50
   meleedamage 10
   meleerange 24
   meleesound "demon/melee"
   MONSTER
   +FLOORCLIP
   +SOLID
   +SHOOTABLE
   +WINDTHRUST
   +ACTIVATEMCROSS
   +TELESTOMP
   +COUNTKILL
   +ISMONSTER
   +FASTER
   +FASTMELEE
   +JUSTHIT
   +LONGMELEERANGE
   states
   {
   Spawn:
      DOG1 ABCB 8 A_Look
      loop
   See:
      DOG1 DEF 3 A_Chase
      loop
   Missile:
      DOG1 G 6 A_FaceTarget
      DOG1 H 8 A_MissileAttack
   Melee:
      DOG1 G 6 A_FaceTarget
      DOG1 H 6 A_MeleeAttack
      DOG1 I 8
      DOG1 J 6
      goto See
   Pain:
      DOG1 K 3 
      DOG1 L 5 A_Pain
      goto See
   Death:
      DOG1 M 5
      DOG1 N 5 A_Pain
      DOG1 O 5 A_Scream
      DOG1 P 1 A_NoBlocking
      DOG1 Q -1
      stop
   }
}
I know I'm just missing something, but what?

P.S. My dog's name is Chelsea. Hehehe.

Share this post


Link to post

The melee range is too short. For normal Doom monsters it's 44. THe melee range must be at least the monster's radius, which is 56. But you should make it somewhat larger.

In any case, this monster is quite large, isn't it?

Furthermore, your missile state doesn't terminate properly and runs into the melee attack.

Share this post


Link to post

O.K, thanks.

Graf Zahl said:

Furthermore, your missile state doesn't terminate properly and runs into the melee attack.


Yeah, I realized that after I posted and fixed it.

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  
×