Jump to content
  • 0

Have a very niche Issue!


Brualtman

Question

Currently I am trying to create a cool wad but I'm running into a bit of a conundrum with this weapon I am trying to add. It's the Super Crossbow, which fits really well with my mediaeval theme. However it doesn't have any sounds, and I know why; it's because the sounds it's trying to use are in Heretic and Doom doesn't have them. The hard part is that I don't own Heretic, and don't really have means to accessing it right now so I was wondering if there was a way to replace the sound it makes when firing? I have other sounds to pull from but I am not sure how to tell the weapon where the sound is to pull from. Any help would be much appreciated! 

 

P.S. The SCB does work, it shoots, all it's sprites are correct. 

 

Here's the script just in case anyone needs it!

 

//SUPER-CROSSBOW///////////////////////////////

 

actor SuperCrossbow : Weapon 25102
{
  spawnid 33
  obituary "%o was splattered by %k's super bow."
  radius 20
  height 16
  attacksound "weapons/sshotf"
  inventory.pickupmessage "SUPER CROSSBOW"
  weapon.selectionorder 400
  weapon.ammotype "CrossbowAmmo"
  Weapon.SisterWeapon SuperCrossbowPowered
  weapon.kickback 100
  weapon.ammouse 2
  weapon.ammogive 8
  states
  {
  Ready: 
    CRB2 ABC 6 A_WeaponReady
    loop
  Deselect:
    CRB2 ABC 1 A_Lower
    loop
  Select:
    CRB2 ABC 1 A_Raise
    loop
  Fire:
    CRB2 A 3
    CRB2 D 0 A_PlaySound("weapons/bowshoot")
    CRB2 D 0 A_PlaySound("weapons/bowshoot")
    CRB2 D 0 A_FireCustomMissile("CrossbowFX1",0,2,7,0)
    CRB2 D 0 A_FireCustomMissile("CrossbowFX1",0,0,-7,0)
    CRB2 D 0 A_FireCustomMissile("CrossbowFX3",2,0,0,10)
    CRB2 D 0 A_FireCustomMissile("CrossbowFX3",-2,0,0,10)
    CRB2 D 0 A_FireCustomMissile("CrossbowFX3",2,0,0,-10)
    CRB2 D 0 A_FireCustomMissile("CrossbowFX3",-2,0,0,-10)
    CRB2 D 4
    CRB2 E 6
    CRB2 E 4 
    CRB2 F 6 
    CRB2 F 6
    CRB2 G 6 
    CRB2 G 3
    CRB2 H 1 
    CRB2 H 5 A_ReFire
    CRB2 A 4 A_ReFire
    goto Ready
  Flash:
    CRB2 I 4 bright A_Light1
    CRB2 J 3 bright A_Light2
    CRB2 J 0 bright A_Light0
    stop
  Spawn:
    WBOW B -1
    stop
  }
}

 

/////////////////////////////////////////////

Edited by Brualtman

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

This looks like DECORATE code for (G)ZDoom. Try taking a look at the pages for the A_PlaySound decorate function (it's used in this weapon definition) and the SNDINFO lump on the ZDoom wiki.

Edited by SMG_Man

Share this post


Link to post
  • 0
31 minutes ago, SMG_Man said:

This looks like DECORATE code for (G)ZDoom. Try taking a look at the pages for the A_PlaySound decorate function (it's used in this weapon definition) and the SNDINFO lump on the ZDoom wiki.

 

Yeah I've been looking into that. i'll study it over and see if maybe I can find a way to fix it, and see I know about the SNDINFO lump, but the weapon itself which I got from Realm667 did not come with any sound files, so I was trying to see if maybe I could use a different sound that was already in the pk3 instead of what it was trying to use which was that "weapon/bowshoot". Wish me luck, and thanks you for guidance!

Share this post


Link to post
  • 0

Okay Issued solved, I realized that I had to use the SNDINFO lump to associate the sound with like a variable of sorts and then where the code asks for the sound I replaced it with weapons/supercrossbowfire. 

 

Thanks for the help!

 

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