Jump to content
  • 0

[MBF21] Can I make an actual projectile that travels along the floor?


ViolentBeetle

Question

Normal projectiles die when hit the floor. I want it to run along the floor. It's doable by treating it as a chasing monster, but it has its own limits, such as, for example, not being able to contribute to infighting and relying on normal movement.

The closest I got so far is BOUNCES flag, which almost works, but kills projectile if it tries to go up the stairs. FLOAT doesn't seem to help with the stairs either.

 

Edit: I'm making an MBF21 thing not a Decorate thing, so FLOORHUGGER is not an option.

Edited by ViolentBeetle

Share this post


Link to post

6 answers to this question

Recommended Posts

  • 0

You want +FLOORHUGGER - for example, this is part of how the Hexen Lightning spell works.

Here's a lil example from my own work, a projectile hits the ground then runs along it spitting fire.

 

Spoiler

ACTOR BHandsBlast
{
Radius 8
    Height 8
    Speed 12
    Scale 0.3
    Damage (1)
    Projectile
    SeeSound "Fwoosh"
    DeathSound "Fwoosh"
    Obituary "%o got Blazed by %k's."
    Damagetype "Fire"
    +RIPPER
    +NODAMAGETHRUST
    States
    {
        Spawn:
        DMFX DEFG 4 bright
        Goto Death
        
        Death:
        DMFX G 0 A_SpawnItemEx("FlamewallShort",0,0,0,20) 
        stop
    }
}


 

ACTOR FlamewallShort
{
    height 32
    radius 6
    renderstyle Translucent
    alpha .9
    scale 2.5
    Projectile
    Speed 15
    damage (1)
    +RIPPER
    +NODAMAGETHRUST
    +FLOORHUGGER
    Damagetype "Fire"
    states
    {
    Spawn:
    FX13 ABCDCBA 3 bright A_SpawnItemEx("Flame",0,0,0,Random(-5, 5),Random(-5, 5),Random(0, 8),0,SXF_ORIGINATOR,25,0)
    Goto Death
    
    Death:
    FX13 A 0
    stop
    }
}

 

Share this post


Link to post
  • 0

While technically floorhugger projectiles aren't supported in mbf21 you can fake it by making a bouncing projectile that falls straight to the ground. One of the new monsters in my upcoming 1.1 release of MEDB uses ground hugging projectile in such a manner.

 

Once the bouncing stops the projectile will roll on the floor. A projectile that drops straight to the ground barely bounces at all.

Edited by MObreck

Share this post


Link to post
  • 0
2 minutes ago, MObreck said:

While technically floorhugger projectiles aren't supported in mbf21 you can fake it by making a bouncing projectile that falls straight to the ground. One of the new monsters in my upcoming 1.1 release of MEDB uses ground hugging projectile in such a manner.

 

Once the bouncing stops the projectile will roll on the floor. A projectile that drops straight to the ground barely bounces at all.

 

 

Anything I can do to prevent it from dying from hitting a curb though? A projectile that only works on completely flat surface has limited applicability.

Share this post


Link to post
  • 0
13 minutes ago, ViolentBeetle said:

 

 

Anything I can do to prevent it from dying from hitting a curb though? A projectile that only works on completely flat surface has limited applicability.

 

Sadly I do not believe so. One of the limitations of that work around.

 

Looks like missed part where you already knew that too. Oops.

Edited by MObreck

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
Answer this question...

×   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...