sound don't work undergroud

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

sound don't work undergroud

Post by atreiu »

hello folks

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
i had try to play with p.setint16(4,0); // unknown3 (speed/volume modifier? Line of sight stuff?)
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 :shame:
Post Reply