Code: Select all
Weapon.AmmoType1 "Cell"
Weapon.AmmoType2 "Cell"
Weapon.AmmoUse1 1
Weapon.AmmoUse2 20
Moderator: GZDoom Developers
Code: Select all
Weapon.AmmoType1 "Cell"
Weapon.AmmoType2 "Cell"
Weapon.AmmoUse1 1
Weapon.AmmoUse2 20
BWAHAHAHA.Graf Zahl wrote:There's the BLOODLESSIMPACT flag but ironically the one place where it isn't checked is the ripper code (/me fixes immediately... ;))
Hm, maybe another check to see if the alternate ammo type is the same and not bother drawing it twice might be in order?wildweasel wrote:(Odd side-effect: the ammo type appears twice on the fullscreen hud.)
Define it the same way you define a hitscan weapon. That is, the weapon's AttackSound.wildweasel wrote:I need the pipe to make a sound upon hitting the wall.

Apparently Randy never thought of the case that both are identical.wildweasel wrote:I didn't see anything in them. As far as I could tell, the examples were never replaced when I extracted the archive. Thank you for the help, though. (Odd side-effect: the ammo type appears twice on the fullscreen hud.)
A puff should play a sound like any other actor. I have no idea what went wrong. Can you post the weapon and the puff here?Another thing I need help with, though. I have a Lead Pipe weapon that I've made, that uses A_CustomPunch attacks. Under the Pufftype part, I'd guess that this is where I put in quotes the name of the actor to spawn. It seems to work fine the way I do it, but I need the pipe to make a sound upon hitting the wall. I've tried several ways (A_Pain, A_Scream, A_PlaySound) on the Puff actor to make sounds, but none of them actually play the sound I want. Do I define the impact sound in the weapon? If so, how?

You noticed correctly. The first state's code pointer is never executed.DoomRater wrote:Classes sound like work outside of DCORATE, so that'll have to be something Randy has to do. I want to see customizable classes just as much, although I'm concerned about how to flag them in engines.
@WildWeasel: try making the second state on your puff use an A_Pain state. If that works I might be onto something... something that I noticed way back in DEHACKED.