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

Two Questions About Custom Weapons (Slade 3)

Question

I'm fairly new to doom modding, and I'm trying to figure out how to create a custom weapon. I've encountered two problems I don't know how to fix.

 

Here is the code I have so far:

 

Spoiler

fire:
        SMGF A 3 BRIGHT A_firebullets(11,9,1,2) 
        SMGF A 0 a_playsound("SMGFIRE",2)
        SMGF B 3 BRIGHT A_firebullets(11,9,1,2)  
        SMGF B 0 a_playsound("SMGFIRE",2)
        SMGG A 0 A_refire
    goto ready

 

My graphics are:

 

SMGFA0- Fire A

SMGFB0- Fire B

SMGGA0- Idle

 

1. The weapon I'm making is a submachine gun, so it has a high rate of fire. When I use a_playsound during the fire state, the sound will stop and start at the beginning every time a bullet is fired. I want the sound to overlap, similar to the plasma gun.

 

2. I'd also like to know how to use a random sprite in my fire animation. The code I have alternates between a fire A and fire B sprites, but it both doesn't look smooth and fires two bullets every time the mouse is clicked once.

 

thanks!

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

 

Usually you would use AttackSound "sound" with the sound defined in SNDINFO.

 

But have look through the tutorials in Gunlabs and also

how the weapons from Realm667 were constructed.

 

Edited by Kappes Buur

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
×