Jump to content

Bouncing-mines-like Monster Attack Issue


Kan3

Recommended Posts

Hello

 

I'm trying to create a monster that shoots bouncing projectiles that will stop moving after their "bounce count" and will act like proximity mines afterwards (and will add poison damage at touch) that are shootable by the player.

I've obtained this code so far 

Spoiler

ACTOR PestMine
{
    Radius 96
    Height 96
    Scale 0.7
    Mass 10000
    Health 40
    SeeSound "Weapons/GrBnce"
    Damage 5
    DamageType Poison
    PoisonDamage 2, 10, 0 
    RenderStyle Add
    Alpha 1
    DontHurtShooter
    Speed 20
    DeathSound "fatso/shotx"
    BounceType DoomCompat
    +NOBLOOD
    +SHOOTABLE
    +MISSILE
    +GRENADETRAIL
    +DEHEXPLOSION
    +DONTTHRUST
    +CANBOUNCEWATER
    +DONTHURTSPECIES
    +NOBLOCKMAP
    +NOEXPLODEFLOOR
    States
    {
    Spawn:
        PESM A 0 Bright A_StopSound
        PESM ABCD 8 Bright
        Loop
    Death:
        PEFD B 8 Bright A_Explode(40, 128)
        PEFD C 6 Bright
        PEFD D 4 Bright
        Stop
    }
}

but I'm not getting exactly what I want.

For now, the projectiles, after their bounces, will never stop moving (obviously) and will start rolling "forever", while most of them (dunno why most of them) will just explode in contact with walls (some of them at first contact, some at second etc.).

How can you see, after a few attempts, I started to play with some flag and property to see what happens, and now it's a bit messy, but I've no other clue on what to do now.
Any help would be appreciated, thank you

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