PDA

View Full Version : [2.50.2] Glitched Sound Playback with Spin/Hurricane Spin Conflict



ZoriaRPG
11-28-2015, 09:19 AM
The spin attack plays a sound effect as soon as the charge period is completed. However, I'm having a weird issue where it just keeps trying to play it again and again. Having the Spin attack and hurricane spin charge time be the same is what causes this.

https://dl.dropboxusercontent.com/u/9395043/Images/Temp%20junk/Broken%20Spin%20SFX.mp4

Reported by Lunaria on PZC.

Tamamo
12-16-2015, 05:33 PM
Yup that would happen.
Here's the culprit too...


// Increase charging while holding down button.
if(spins==0 && charging<magiccharge)
charging++;

// Once a charging threshold is reached, play the sound.
if(charging==normalcharge)
{
paymagiccost(itemid);
sfx(WAV_ZN1CHARGE,pan(int(x)));
}
else
{
itemid = current_item_id(attack==wHammer ? itype_quakescroll2 : itype_spinscroll2);

if(itemid>-1 && charging==magiccharge && checkmagiccost(itemid))
{
paymagiccost(itemid);
charging++; // charging>magiccharge signifies a successful supercharge.
sfx(WAV_ZN1CHARGE2,pan(int(x)));
}
}