bullet puffs

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

bullet puffs

Post by ant1991331 »

how do i make bullet puffs play the SeeSound all the time when spawned like the Tomed Staff from heretic?????? (im using bullet impact sounds)
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

im quite serious bout this, its like making bullet impact sounds (which increases realism)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

If you want to add this to Doom's original puff you have to use DEHACKED. If it is for one of your own DECORATE puffs use A_PlaySound.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

when i do this it only plays the sound when a 'thing' that was attacked has the NOBLOOD flag
User avatar
Enjay
 
 
Posts: 27123
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

This may be of use
Randy wrote:If you give a bullet puff a see sound, that sound will be played when an actor is hit. If you give it an attack sound, then that sound will be played when something else is hit. The puffs in Heretic and Hexen take advantage of this.
However, I prefer to give the bullet puff a pain sound and then give one of the early frames a pain code pointer (all using dehacked). Using an early frame means you won't get a noise when punching a wall because the punch doesn't use the first couple of frames in the puff sequence. This method does, however, make the revenant rocket trail noisy too.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

so....basiclly i put in the painsound instead of the seesound and the code should be....

States:
{
Spawn:
PUFF A 5 Bright
PUFF B 5 A_Pain
PUFF CD 5
Stop
}

right???
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

In DECORATE you don't even need the painsound. You can use A_PlaySound directly.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

that didnt work unless you shot an actor that is invulnrable or has the +NOBLOOD flag set
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Your puff also needs +PUFFONACTORS in that case.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

which does........
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Make the puff visible on actors.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

i have found the way of making puffs make noises on impact...

ACTOR BulletPuff2 : BulletPuff
{
PainSound "misc/impact" //ignore
SeeSound "misc/impact" //ignore this too
DeathSound "misc/impact" //the source of this
+PUFFONACTORS
States
{
Spawn:
PUFF A 0
Goto Death
Death:
PUFF A 5 Bright A_Scream
PUFF BCD 5
Stop
}
}

for all you people who want impact sounds.....
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

That screams "UNECESSARY HACK"

Code: Select all

ACTOR BulletPuff2 : BulletPuff
{
+PUFFONACTORS
States
{
Spawn:
PUFF A 0
PUFF A 5 A_Playsound("misc/impact")
PUFF BCD 5
Stop
}
} 
Last edited by TheDarkArchon on Mon Jul 18, 2005 5:19 am, edited 1 time in total.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

that dont work, mate
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Fixed.
Locked

Return to “Editing (Archive)”