Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
ZeroCheckMate

Questions about Custom monsters

Question

Hello.


There was a problem while making the monster.


As you can see from the video posted with this code, direct contact with the monster does no harm to the monster.


I think it's because of the heat box, but I don't know any information about this.


How can a monster cause close-up damage to a player?

 

ACTOR Fairyofadvance 25028
{
   Health 2500
   Speed 25
   Radius 64
   Height 352
   PainChance 200
   MeleeDamage 512
   Monster
   +LOOKALLAROUND
   +FLOORCLIP 
   SEESOUND "fotasee"
   PAINSOUND "fotapain"
   DeathSound "fotadeth" 
   Obituary "Death.........."
   Scale 0.3
  States
  {
  Spawn:
    FOTA A 1 A_Look
    Loop
  See:
    FOTA AAAAAAAA 4 A_Chase
    FOTA A 0 A_PlaySoundEx("Sound/StayPuft/Stomp","Weapon")
    FOTA A 0 Radius_quake(3,10,0,64,0)        
    FOTA BBBBBBBB 4 A_Chase
    FOTA B 0 A_PlaySoundEx("Sound/StayPuft/Stomp","Item")
    FOTA B 0 Radius_quake(3,10,0,64,0)
    Loop
  melee:
    FOTA A 1 A_MeleeAttack
    goto see
  Pain:
    FOTA A 1 A_Pain
    Goto See
  Death: 
    FOTA C 4 A_NoBlocking
    FOTA C 4 A_Scream
    Stop
    }
}

[English sentences may not be correct. Please excuse me on this point.]

Video.zip

Edited by ZeroCheckMate

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

a simple and effective way is to make use of the a_explode in the chase state, it will hurt when any actor approaches the monster something like this:

Spoiler

See:

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 4 A_Chase

FOTA A 0 A_Explode(100, 128)

FOTA A 0 A_PlaySoundEx("Sound/StayPuft/Stomp","Weapon")

FOTA A 0 Radius_quake(3,10,0,64,0)

 

(i put it every 4 tics to make sure that at all times when you approach it will hurt you)

https://zdoom.org/wiki/A_Explode

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
×