MantisBT - Zandronum
View Issue Details
0002144Zandronum[All Projects] Bugpublic2015-03-30 02:122018-09-30 21:38
Ru5tK1ng 
Dusk 
normalminoralways
closedfixed 
MicrosoftWindowsXP/Vista/7
2.0 
2.12.1 
0002144: DamageType Pain state doesn't activate A_Playsound online
Custom Damage Pain States have problems using a_playsound online but work without issue offline. In the test wad provided you start with a pistol that does 'TestDamage' and when you hit another player you activate 'Pain.TestDamage' and hear a ding. This works without a problem offline, but once online, there is no sound played. Compat_soundslots is false.

To illustrate this issue, run the wad in local mode into map01. Add a bot then fire & hit it to hear a ding. Next, run a server online and attempt the same thing. Make sure compat_soundslots is 0.
No tags attached.
? painsound.wad (100,618) 2015-03-30 02:12
/tracker/file_download.php?file_id=1436&type=bug
Issue History
2015-03-30 02:12Ru5tK1ngNew Issue
2015-03-30 02:12Ru5tK1ngFile Added: painsound.wad
2015-03-30 09:14DuskAssigned To => Dusk
2015-03-30 09:14DuskStatusnew => assigned
2015-03-30 09:14DuskProduct Version2.0-beta => 2.0
2015-03-30 09:14DuskTarget Version => 2.1
2015-03-30 10:11DuskNote Added: 0011928
2015-03-30 10:11DuskNote Edited: 0011928bug_revision_view_page.php?bugnote_id=11928#r6855
2015-03-30 10:22DuskNote Edited: 0011928bug_revision_view_page.php?bugnote_id=11928#r6856
2015-03-30 10:27DuskNote Added: 0011929
2015-03-30 10:27DuskStatusassigned => needs review
2015-03-30 17:59cobaltStatusneeds review => needs testing
2015-03-30 17:59cobaltDescription Updatedbug_revision_view_page.php?rev_id=6862#r6862
2015-03-30 17:59cobaltNote Added: 0011941
2015-04-23 20:24HypnotoadNote Added: 0012161
2015-04-23 21:45DuskStatusneeds testing => resolved
2015-04-23 21:45DuskFixed in Version => 2.1
2015-04-23 21:45DuskResolutionopen => fixed
2018-09-30 21:38Blzut3Statusresolved => closed

Notes
(0011928)
Dusk   
2015-03-30 10:11   
(edited on: 2015-03-30 10:22)
It appears the volume overflows to a rather small value when transmitted online. The testcase works fine for me if I change the volume field from 127 to 1.

Is this really a regression in 2.0?

(0011929)
Dusk   
2015-03-30 10:27   
fixed
(0011941)
cobalt   
2015-03-30 17:59   
Issue addressed by commit 4352c4467474: - fixed overflow with too high volume parameters to A_PlaySound online (fixes 2144)
Committed by Teemu Piippo [Dusk] on Monday 30 March 2015 13:26:41

Changes in files:
 docs/zandronum-history.txt | 5 +++++
 src/sv_commands.cpp | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)
(0012161)
Hypnotoad   
2015-04-23 20:24   
Can confirm the issue is fixed after testing.