Looping sound keeps playing in network game

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
ArcheKruz
 
Posts: 63
Joined: Wed Oct 31, 2012 8:17 am
Location: Hong Kong

Looping sound keeps playing in network game

#1

Post by ArcheKruz » Sun Jun 09, 2013 7:12 pm

I am having this issue where the looping sound from a weapon keeps playing even when the fire button is released while in a network game. I made sure that the sound is stopped at certain points of the code, and it seems to work fine when playing in a low latency environment or when testing it locally with bots. It's when the mod is played in a network game where ping gets higher then 100 when the problem starts to appear.

Here's the decorate code : http://pastebin.com/KfNeQQUf

What am I missing?

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

RE: Looping sound keeps playing in network game

#2

Post by Ænima » Sun Jun 09, 2013 7:16 pm

I'd put one of these ...

Code: Select all

SSTG H 0 A_StopSound(CHAN_WEAPON)
... at the very beginning of your Ready state. As a failsafe, kinda. Couldn't hurt.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Post Reply