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

Zdoom custom weapon quesiton

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.

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

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
×