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

Action functions

Question

What is the code pointer of the "Action functions" that makes it so that when a monster dies in the middle of the open door it will never close?

That the player still goes through the body freely.

Sem título.png

Share this post


Link to post

7 answers to this question

Recommended Posts

  • 0

This has nothing to do with the body. The door simply has the action D1 Door (Blue) Open Stay. It will never close once opened, no matter what.

Share this post


Link to post
  • 0

It is for any type of door. I look for a function of the body so that all the general doors of doom do not close as if someone were alive in the middle of the door.
example:

"DOOMFORMATDOOM
action 1 = door open wait close (also monsters) "

the doors simply open and close with the body still there and unfortunately destroys the body and the ammunition ... I don't want that!

I wanted a function for the door not to close anymore with a body in the middle:

 

example:

Death:

TROO I 8

TROO J 8 A_Scream

TROO K 6

TROO L 6 A_NoBlocking

TROO M -1 WHAT TO PUT HERE?

Stop

Share this post


Link to post
  • 0

You could devise a solid actor which prevents the door from either partially or fully closing, depending on the actor's height.

 

For example:

 

ACTOR impbody 19991
{
  Health 20
  Radius 10
  Height 34
  +SOLID
  +SHOOTABLE
  +DONTGIB
   
  States
  {
    Spawn:
      TROO M -1
      Loop
  }
}

 

After shooting at the actor the door does close.

So, if you really want the door to stay open then do not shoot the actor.

Edited by Kappes Buur

Share this post


Link to post
  • 0
3 hours ago, Kappes Buur said:

 

Kappers Buur:

What is the "Action funtion" that I can invoke?
"A_SpawnItem" by any chance?

 

example:

Death:

TROO I 8

TROO J 8 A_Scream

TROO K 6 A_NoBlocking

TROO L 6 PUT HERE "A_SpawnItem ("Type")"?

Stop

Edited by kassianoaguiar

Share this post


Link to post
  • 0

Load the DECORATE script which I posted into your pwad.

In Things Mode insert the ImpBody (19991) from User defined into the door sector.

Make a linedef in front of the door and attach the Door_Close action special with walkover activation.

As the player walks over the linedef the door closes to a height given in DECORATE, in this case 34, high enough for the player to crouch under the door.

When shooting the dead imp the door will close fully.

 

However, the shooting part can be eliminated from DECORATE for the door to stay open at the given height.

 

Spoiler

FYnn9xj.png

 

Spoiler

eggKz1l.png

 

Spoiler

HSsHb5B.png

 

 

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
×