Jump to content
  • 0

Zdoom custom weapon quesiton


hardcore_gamer

Question

I have downloaded the weapon Dual laser from realm 667 and I think it's neat, but I want to add an explosion effect whenever a laser projectile hits something. I have my own sprites and sounds I would like to apply as well.

 

Problem is I have no idea how to make the explosion spawn. Does anyone know what commands/scripting I need to add to the decorate file to make this work?

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Easy.

Add

A_Explode

to any of the frames in the Death state.

As for sounds:

$random Kaboom { KABOOM1 KABOOM2 KABOOM3 }

KABOOM1 KABOOM1
KABOOM2 KABOOM2
KABOOM3 KABOOM3

should do it.

If the the Death state of the projectile which the weapon fires, use your sprites in there.

Edited by Voros

Share this post


Link to post
  • 0
6 hours ago, Voros said:

Easy.

Add


A_Explode

to any of the frames in the Death state.

As for sounds:


$random Kaboom { KABOOM1 KABOOM2 KABOOM3 }

KABOOM1 KABOOM1
KABOOM2 KABOOM2
KABOOM3 KABOOM3

should do it.

If the the Death state of the projectile which the weapon fires, use your sprites in there.

 

Ah it worked! Now the weapon feels far more powerful! Thanks.

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