client SA POL099beta-2010-01-02 from site download section.
my trouble is in next:
if (who.z < 0) then packet 0x54 and PlaySoundEffect() don't play sound in game client only footsteps
Code: Select all
function PlaySoundEffectEx(who,effect)
var p := CreatePacket(0x54,12);
p.setint8(1,0x01); //mode (0x00=quiet, repeating, 0x01=single normally played sound effect)
p.setint16(2,effect); // soundmodel
p.setint16(4,0); // unknown3 (speed/volume modifier? Line of sight stuff?)
p.setint16(6,who.x);
p.setint16(8,who.y);
p.setint16(10,who.z);
//broadcast("p: "+p);
p.SendPacket(who);
endfunction
set there different value but nothing. on old clients all work well of course.
i hope that anybody could say maybe just ideas of reasons