Jump to content

Can anyone Explain why my actors are disappearing after bouncing?


Slayer

Recommended Posts

Perhaps I misunderstand the "Projectile" flag, but can anyone explain why my "glass shards" bounce normally, but when they lose momentum, right before they stop bouncing, they actually disappear? I actually want them to hang around for a bit.

ACTOR glass_shard1    29026
{
    Gravity 1
    PROJECTILE
    -NOGRAVITY
    +BOUNCEAUTOOFFFLOORONLY
    +ALLOWBOUNCEONACTORS
    +BOUNCEONWALLS
    +BOUNCEONFLOORS
    +BOUNCEONCEILINGS
  BounceFactor 0.5
  BounceType Doom
  friction 0.8
  mass 100
  Radius 1
  Height 6
  scale .02
  renderstyle translucent
  alpha 0.45
  States
  {
   Spawn:
    GSHR A -1
    stop
  }
}

I've deleted it, but before I had a Delay() and then A_Remove to despawn all glass shards. (to clean up actor count). This worked well, but after implementing the bouncing, they just disappear way before the delay timer ever got done.

Edited by Slayer

Share this post


Link to post

I think BounceType Doom actors go to their death state when their velocity hits zero. The default actor death state is just to disappear. You could put a custom death state in there or try Hexen bounce.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...